Cette tâche configure les entrées de route statique dans SEFOS et vérifie que le trafic est accessible sur les réseaux.
Voir la section Routing Feature Topology pour connaître la topologie de cette tâche.
Voir la section Configure Initial Settings.
SEFOS-1# configure terminal SEFOS-1(config)# set gvrp disable SEFOS-1(config)# set gmrp disable SEFOS-1(config)# end SEFOS-1# show vlan device info Vlan device configurations -------------------------- Vlan Status : Enabled Vlan Oper status : Enabled Gvrp status : Disabled Gmrp status : Disabled Gvrp Oper status : Disabled Gmrp Oper status : Disabled
Les commandes set gvrp disable et set gmrp disable permettent de désactiver ces protocoles. La commande show vlan device info permet d'afficher les informations de configuration du VLAN.
Voir la section Routing Feature Topology.
SEFOS-1# configure terminal SEFOS-1(config)# interface vlan 1 SEFOS-1(config-if)# no ip address SEFOS-1(config-if)# exit SEFOS-1(config)# vlan 10 SEFOS-1(config-vlan)# exit SEFOS-1(config)# interface range xl-ethernet 0/25-26 SEFOS-1(config-if-range)# switchport access vlan 10 SEFOS-1(config-if-range)# no shutdown SEFOS-1(config-if-range)# exit SEFOS-1(config)# interface vlan 10 SEFOS-1(config-if)# shut SEFOS-1(config-if)# ip address 10.0.0.201 255.255.255.0 SEFOS-1(config-if)# no shutdown SEFOS-1(config-if)# end
L'adresse IP par défaut de VLAN 1 est 10.0.0.1, tandis que celle de VLAN 10 est 10.0.0.201. Vous devez donc supprimer l'adresse IP de VLAN 1 avant de pouvoir ajouter celle de VLAN 10.
SEFOS-1# ping 10.0.0.169
SEFOS-1# ping 10.0.0.152
# ping 10.0.201 10.0.201 is alive # ping 10.0.0.152 10.0.0.152 is alive #
Voir la section Routing Feature Topology.
SEFOS-2# configure terminal SEFOS-2(config)# interface vlan 1 SEFOS-2(config-if)# no ip address SEFOS-2(config-if)# exit SEFOS-2(config)# vlan 40 SEFOS-2(config-vlan)# exit SEFOS-2(config)# interface range xl-ethernet 0/25-26 SEFOS-2(config-if-range)# shutdown SEFOS-2(config-if-range)# switchport access vlan 40 SEFOS-2(config-if-range)# no shutdown SEFOS-2(config-if-range)# exit SEFOS-2(config)# interface vlan 40 SEFOS-2(config-if)# shutdown SEFOS-2(config-if)# ip address 40.0.0.200 255.255.255.0 SEFOS-2(config-if)# no shutdown SEFOS-2(config-if)# end SEFOS-2#
SEFOS-2# ping 40.0.0.110 SEFOS-2# ping 40.0.0.118
Utilisez les ports 1 à 2 sur les deux commutateurs.
SEFOS-1# configure terminal SEFOS-1(config)# interface range xl-ethernet 0/1-2 SEFOS-1(config-if-range)# switchport access vlan 20 SEFOS-1(config-if-range)# no shutdown SEFOS-1(config-if-range)# exit SEFOS-1(config)# interface vlan 20 SEFOS-1(config-if)# shutdown SEFOS-1(config-if)# ip address 20.0.0.201 255.255.255.0 SEFOS-1(config-if)# no shutdown SEFOS-1(config-if)# end SEFOS-1#
SEFOS-2# configure terminal SEFOS-2(config)# interface range xl-ethernet 0/1-2 SEFOS-2(config-if-range)# switchport access vlan 20 SEFOS-2(config-if-range)# no shutdown SEFOS-2(config-if-range)# exit SEFOS-2(config)# interface vlan 20 SEFOS-2(config-if)# shutdown SEFOS-2(config-if)# ip address 20.0.0.200 255.255.255.0 SEFOS-2(config-if)# no shutdown SEFOS-2(config-if)# end SEFOS-2# ping 20.0.0.201
Vous pouvez maintenant utiliser cette configuration comme point de départ pour les différentes configurations de routeur.
SEFOS-1# write startup-config Building configuration _ [OK]
SEFOS-2# write startup-config Building configuration _ [OK]
Les commutateurs démarrent avec la configuration enregistrée lors de la réinitialisation.
SEFOS-1# show ip route Codes: C - connected, S - static, R - rip, B - bgp, O - ospf C 10.0.0.0/24 is directly connected, vlan10 C 20.0.0.0/24 is directly connected, vlan20 SEFOS-1#
SEFOS-2# show ip route Codes: C - connected, S - static, R - rip, B - bgp, O - ospf C 20.0.0.0/24 is directly connected, vlan20 C 40.0.0.0/24 is directly connected, vlan40 SEFOS-2#
S'il n'existe aucune route connue entre SEFOS-1 et l'hôte B, l'envoi de la commande ping de l'hôte A vers l'hôte B échoue.
SEFOS-1# configure terminal SEFOS-1(config)# ip route 40.0.0.0 255.255.255.0 20.0.0.200 SEFOS-1(config)# end
SEFOS-2# configure terminal SEFOS-2(config)# ip route 10.0.0.0 255.255.255.0 20.0.0.201 SEFOS-2(config)# end
SEFOS-1# show ip route Codes: C - connected, S - static, R - rip, B - bgp, O - ospf C 10.0.0.0/24 is directly connected, vlan10 C 20.0.0.0/24 is directly connected, vlan20 S 40.0.0.0/24 [-1] via 20.0.0.200
SEFOS-2# show ip route Codes: C - connected, S - static, R - rip, B - bgp, O - ospf S 10.0.0.0/24 [-1] via 20.0.0.201 C 20.0.0.0/24 is directly connected, vlan20 C 40.0.0.0/24 is directly connected, vlan40