GNS3 Commandes [PDF]

  • 0 0 0
  • Gefällt Ihnen dieses papier und der download? Sie können Ihre eigene PDF-Datei in wenigen Minuten kostenlos online veröffentlichen! Anmelden
Datei wird geladen, bitte warten...
Zitiervorschau

!!!!!!!!A la fin de chaque configuration, écrire "do write" pour la sauvegarder !!!!!!!!!! 1) Configuration des adresses IP des différentes interfaces sur chaque machine PE-BAFOUSSAM : config t interface f0/0 ip address 10.1.14.1 255.255.255.0 no shutdown (Pour allumer l'interface à configurer) exit (Pour sortir de l'interface précédent) interface lo0 ip address 10.2.2.2 255.255.255.0 do write P-DLA : config t interface f0/0 ip address 10.1.15.1 255.255.255.0 no shutdown exit interface f1/0 ip address 10.1.13.2 255.255.255.0 no shutdown exit interface f2/0 ip address 10.1.14.2 255.255.255.0 no shutdown exit interface lo0 ip address 20.3.3.3 255.255.255.0 do write PE-DLA : config t interface f1/0 ip address 10.1.15.2 255.255.255.0 no shutdown exit interface lo0 ip address 10.3.3.3 255.255.255.0 do write P-YDE : config t interface f0/0 ip address 10.1.13.1 255.255.255.0 no shutdown exit interface f0/1 ip address 10.1.12.2 255.255.255.0 no shutdown exit interface lo0 ip address 20.1.1.1 255.255.255.0 do write PE-YDE :

config t interface f0/0 ip address 10.1.12.1 255.255.255.0 no shutdown exit interface lo0 ip address 10.1.1.1 255.255.255.0 do write NB: il n'est pas nécessaire d'ajouter "no shutdown" et "do write" pour les interfaces loopback car elles sont activées automatiquement Pour vérifier que tout est bien configuré, taper "do show ip interface brief" sur chaque routeur. 2) Configuration OSPF PE-YDE : router ospf 123 router-id 1.1.1.1 do write interface f0/0 ip ospf 123 area 0 exit interface lo0 ip ospf 123 area 0 do write P-YDE : router ospf 123 router-id 2.2.2.2 do write interface f0/0 ip ospf 123 area 0 exit interface f0/1 ip ospf 123 area 0 exit interface lo0 ip ospf 123 area 0 do write P-DLA : router ospf 123 router-id 3.3.3.3 do write interface f0/0 ip ospf 123 area 0 no shutdown exit interface f1/0 ip ospf 123 area 0 no shutdown exit interface f2/0 ip ospf 123 area 0 no shutdown exit interface lo0 ip ospf 123 area 0 do write

PE-DLA router ospf 123 router-id 4.4.4.4 do write interface f1/0 ip ospf 123 area 0 no shutdown interface lo0 ip ospf 123 area 0 do write PE-BAFOUSSAM : router ospf 123 router-id 5.5.5.5 do write interface f0/0 ip ospf 123 area 0 no shutdown interface lo0 ip ospf area 0 do write 3) Désactiver les interfaces loopback Sur tous les 5 routeurs, on saisit: router ospf 123 passive-interface lo0 do write 4) Changer la métrique Sur tous les 5 routeurs également, saisir: auto-cost reference-band 1000 do clear ip ospf process Confirmation? yes Pour vérifier que la configuration est bonne, taper "do show ip ospf interface brief" et "do show ip ospf neighbor" sur chaque routeur. 5) Configuration MPLS Dans chaque routeur, saisir: ip cef mpls label protocol ldp mpls ldp router-id loopback 0 router ospf 123 mpls ldp autoconfig do write Pour vérifier que tout est OK, taper "do show mpls ldp neighbor" pour voir les voisins; "do show mpls forwarding-table" pour regarder la table LFIB; "do show ip route" pour regarder la table de routage; "do show ip cef" pour regarder la table FIB et ce, sur chaque routeur.

6) Configuration BGP !RR P YDE router bgp 1000 bgp router-id 2.2.2.2 no bgp default ipv4-unicast neighbor 10.1.1.1 remote-as 1000 neighbor 10.1.1.1 update-source lo0 neighbor 10.2.2.2 remote-as 1000 neighbor 10.2.2.2 update-source lo0 neighbor 10.3.3.3 remote-as 1000 neighbor 10.3.3.3 update-source lo0 neighbor 20.3.3.3 remote-as 1000 neighbor 20.3.3.3 update-source lo0 address-family vpnv4 unicast neighbor 10.1.1.1 activate neighbor 10.2.2.2 activate neighbor 10.3.3.3 activate neighbor 20.3.3.3 activate neighbor 10.1.1.1 route-reflector neighbor 10.2.2.2 route-reflector neighbor 10.3.3.3 route-reflector neighbor 20.3.3.3 route-reflector P-DLA (qui est aussi un Route Reflector) : router bgp 1000 bgp router-id 3.3.3.3 no bgp default ipv4-unicast neighbor ABC peer-group neighbor ABC remote-as 1000 neighbor ABC update-source lo0 neighbor 10.1.1.1 peer-group ABC neighbor 10.2.2.2 peer-group ABC neighbor 10.3.3.3 peer-group ABC neighbor 20.1.1.1 peer-group ABC address-family vpnv4 unicast neighbor ABC route-reflector neighbor 10.1.1.1 activate neighbor 10.2.2.2 activate neighbor 10.3.3.3 activate neighbor 20.1.1.1 activate PE-YDE : router bgp 1000 no bgp default ipv4-unicast bgp router-id 1.1.1.1 neighbor 20.1.1.1 remote-as 1000 neighbor 20.3.3.3 remote-as 1000 address-family vpnv4 unicast neighbor 20.1.1.1 activate neighbor 20.3.3.3 activate PE-DLA : router bgp 1000 no bgp default ipv4-unicast bgp router-id 4.4.4.4 neighbor 20.1.1.1 remote-as 1000 neighbor 20.3.3.3 remote-as 1000 address-family vpnv4 unicast

neighbor 20.1.1.1 activate neighbor 20.3.3.3 activate PE-BAFOUSSAM : router bgp 1000 no bgp default ipv4-unicast bgp router-id 5.5.5.5 neighbor 20.1.1.1 remote-as 1000 neighbor 20.3.3.3 remote-as 1000 address-family vpnv4 unicast neighbor 20.1.1.1 activate neighbor 20.3.3.3 activate Pour vérifier, on tape: "do show bgp all summary". 7) Configuration des adresses loopback sur les CE !CE-YDE interface lo0 ip address 192.168.30.1 255.255.255.0 exit interface lo1 ip address 192.168.40.1 255.255.255.0 exit interface lo2 ip address 172.16.34.1 255.255.255.0 exit interface f0/0 ip address 200.10.4.42 255.255.255.252 do write !CE-DLA interface lo0 ip address 192.168.50.1 255.255.255.0 exit interface lo1 ip address 192.168.60.1 255.255.255.0 exit interface lo2 ip address 172.16.67.1 255.255.255.0 exit interface f0/0 ip address 200.10.4.46 255.255.255.252 do write !CE-BAF interface lo0 ip address 192.168.10.1 255.255.255.0 exit interface lo1 ip address 192.168.20.1 255.255.255.0 exit interface lo2 ip address 172.16.12.1 255.255.255.0 exit interface f0/1 ip address 200.10.4.50 255.255.255.252 no shutdown do write

!PE-YDE int f1/0 ip address 200.10.4.41 255.255.255.252 no shutdown do write !PE-DLA int f0/0 ip address 200.10.4.45 255.255.255.252 no shutdown do write !PE-BAF int f0/1 ip address 200.10.4.49 255.255.255.252 no shutdown do write 8) Configuration vrf !PE-YDE ip vrf alpha+_yde rd 65001 :1 route-target export 65001 :1 route-target import 65001 :2 route-target import 65001 :3 interface f1/0 ip vrf forwarding alpha+_yde do write !PE-DLA ip vrf alpha+_dla rd 65001 :1 route-target import 65001 :1 route-target export 65001 :2 interface f0/0 ip vrf forwarding alpha+_dla do write !PE-BAF ip vrf alpha+_baf rd 65001 :1 route-target import 65001 :1 route-target export 65001 :3 interface f0/1 ip vrf forwarding alpha+_baf do write Vérifications !PE-YDE ping vrf alpha+_yde 200.10.4.42 !CE-YDE ping 200.10.4.41 !PE-DLA

ping vrf alpha+_dla 200.10.4.46 !CE-DLA ping 200.10.4.45 !PE-BAF ping vrf alpha+_baf 200.10.4.50 !CE-BAF ping 200.10.4.49 !PE-YDE router bgp 1000 address-family ipv4 vrf alpha+_yde neighbor 200.10.4.42 remote-as 65001 neighbor 200.10.4.42 activate do write !CE-YDE router bgp 65001 address-family ipv4 neighbor 200.10.4.41 remote-as 1000 neighbor 200.10.4.41 activate do write !PE-DLA router bgp 1000 address-family ipv4 vrf alpha+_dla neighbor 200.10.4.46 remote-as 65001 neighbor 200.10.4.46 activate do write !CE-DLA router bgp 65001 address-family ipv4 neighbor 200.10.4.45 remote-as 1000 neighbor 200.10.4.45 activate do write !PE-BAF router bgp 1000 address-family ipv4 vrf alpha+_baf neighbor 200.10.4.50 remote-as 65001 neighbor 200.10.4.50 activate do write !CE-BAF router bgp 65001 address-family ipv4 neighbor 200.10.4.49 remote-as 1000 neighbor 200.10.4.49 activate do write Dans chaque CE, on saisit (Dans l'interface de bgp puis address-family) redistribute connect do write Puis, on part dans chaque PE.

!PE-YDE do ping vrf alpha+_yde 192.168.30.1 do ping vrf alpha+_yde 192.168.40.1 do ping vrf alpha+_yde 172.16.34.1 !PE-DLA do ping vrf alpha+_dla 192.168.50.1 do ping vrf alpha+_dla 192.168.60.1 do ping vrf alpha+_dla 172.16.67.1 !PE-BAF do ping vrf alpha+_baf 192.168.10.1 do ping vrf alpha+_baf 192.168.20.1 do ping vrf alpha+_baf 172.16.12.1 Taper dans n'importe quel PE: show bgp all Taper dans n'importe quel CE: show ip bgp Pour éviter les boucles dans BGP, il faudra taper dans chaque CE: !CE-YDE router bgp 65001 address-family ipv4 neighbor 200.10.4.41 allowas-in do clear ip bgp * soft do write !CE-DLA router bgp 65001 address-family ipv4 neighbor 200.10.4.45 allowas-in do clear ip bgp * soft do write !CE-BAF router bgp 65001 address-family ipv4 neighbor 200.10.4.49 allowas-in do clear ip bgp * soft do write Puis saisir dans chaque PE: int lo0 ip ospf network point-to-point do write Ensuite, saisir dans chaque CE: router bgp 65001 address-family ipv4 neighbor 200.10.4.41 default-originate do clear ip bgp* soft do write Puis, pour vérifier que Douala communique avec Bafoussam et vice-versa:

!CE-DLA traceroute 192.168.10.1 num traceroute 192.168.20.1 num traceroute 172.16.12.1 num !CE-BAF traceroute 192.168.50.1 num traceroute 192.168.60.1 num traceroute 172.16.67.1 num