Configuration du routage inter-lan - switch Cisco - TRI INFO

Techniques des Réseaux Informatiques

Breaking

&width=339&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false' style='border: none; overflow: hidden; background: #fff; width: 339px; height: 200px;'>
&width=339&height=255&colorscheme=light&show_faces=true&show_border=false&stream=false&header=false' style='border: none; overflow: hidden; background: #fff; width: 339px; height: 200px;'>

Saturday 3 August 2019

Configuration du routage inter-lan - switch Cisco

Comment configurer le routage intervlan sur un switch de niveau 3 ?

https://africanedevelopment.org/wp-content/uploads/2019/01/cisco.jpg

Le routage doit tout d'abord être activé sur le switch. On vérifie ensuite l'affichage de la table de routage.
Switch(config)#ip routing
Switch(config)#end
Switch#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

Switch#

Création et configuration des vlans

Switch(config)#vlan 2,3,4,100
Switch(config-vlan)#ex
Switch(config)#interface vlan 2
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config)#interface vlan 3
Switch(config-if)#ip address 192.168.3.1 255.255.255.0
Switch(config)#interface vlan 4
Switch(config-if)#desc secretariat
Switch(config-if)#ip address 192.168.4.1 255.255.255.0
Switch(config)#interface vlan 100
Switch(config-if)#desc interco
Switch(config-if)#ip address 192.168.100.254 255.255.255.0
Switch(config-if)#^Z
Switch#

Configuration de la route par défaut

Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.1
Switch(config-if)#^Z

Vérification: commande d'affichage de la table de routage

Switch#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 192.168.1.1 to network 0.0.0.0

C 192.168.4.0/24 is directly connected, Vlan4
C 192.168.1.0/24 is directly connected, Vlan100
C 192.168.2.0/24 is directly connected, Vlan2
C 192.168.3.0/24 is directly connected, Vlan3
S* 0.0.0.0/0 [1/0] via 192.168.1.1
Switch#
Les autres switchs sont connectés au commutateur de niveau 3 avec des liens trunk des deux cotés.

Les autres techniques qui concernent le routage (acl, dhcp, ospf, ...) s'appliquent dans le cas ci-dessus aux interfaces logiques vlan au lieu de s'appliquer aux interfaces physiques.

No comments:

Post a Comment

Post Top Ad