Les Forums

Les Forums

Les forums sont fermés. Ils restent présent pour consultation et archivage.
Vous pouvez désormais poser vos questions directement dans les commentaires en bas de chaque page du site.
Alors n'hésitez pas à participer

Communication inter-vlan avec un routeur

Bonjour,

J'ai mis en place une architecture 1 routeur + 1 switch + 3 pcs (chacun dans un VLAN). Je rencontre un problème, les pcs d'un Vlan ne communiquent pas avec ceux des autres VLANs.
Je ne peux pinger le routeur.

Merci pour votre analyse :

Configuration routeur :

!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!

interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 1 native
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 10
ip address 192.168.2.254 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1Q 20
ip address 192.168.3.254 255.255.255.0
!
interface FastEthernet0/0.4
encapsulation dot1Q 30
ip address 192.168.4.254 255.255.255.0
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
no ip address
shutdown
!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
!
!

!
line con 0
line vty 0 4
login
!
!
!
end


Configuration switch :

!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/5
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/6
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/7
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface Vlan1
no ip address
shutdown
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
end

Les pcs sont configurés correctement avec l'a@IP qui vont bien.

Merci de votre aide
bonjour,

tout d'abord quelques questions pour comprendre ton architecture :

quel type de materiel as tu branché ? routeur serie ? switch serie ?
version des IOS 12.1 et 12.2 mais revision ?
comment ton routeur est il branché au switch ? (j'en déduis en voyant la conf que
Fa 0/0 du routeur est connecté au Fa 0/1 du switch par un lien trunk)

Si tel est bien le cas, tu as oublié sur l'interface Fa 0/1 du switch de lui dire quel type de lien trunk il faut utiliser ISL ? DOT1Q ?
APRES switchport mode trunk il faut lui dire
switchport trunk encap dot1q (par defaut chez cisco mode ISL)
switchport trunk allowed vlan all (autorisation de passage pour tous les vlans et pas seulement le 1)

enfin sache que cisco a annoncé un bug sur ce type de configuration sur certaines versions d'IOS (bug ID CSCds42715.)
en esperant que cela peut t'aider
bon courage
tib
Bonjour,

J'ai trouvé mon erreur,j'avais oublié de mentionner sur le switch pour le port supportant le trunk la commande :
switchport trunk allowed vlan 2,3.

En gros j'ai pas taggué les num vlan.
thank you! 🙂