In questo documento viene fornita una configurazione di esempio di come ridistribuire una route predefinita BGP (Border Gateway Protocol) in EIGRPv6 (Enhanced Interior Gateway Routing Protocol) utilizzando la ridistribuzione reciproca tra EIGRPv6 e IPv6 BGP.
Prima di provare la configurazione, verificare che siano soddisfatti i seguenti requisiti:
Conoscenze base di EIGRPv6
Conoscenze base di BGP IPv6
Conoscenza di base dell'indirizzamento IPv6
Le configurazioni di questo documento si basano sul router Cisco serie 7200 con software Cisco IOS® versione 15.0(1).
Per ulteriori informazioni sulle convenzioni usate, consultare il documento Cisco sulle convenzioni nei suggerimenti tecnici.
In questo esempio, i router R2 e R1 comunicano tra loro utilizzando IPv6 eBGP. I router R1 e R3 utilizzano EIGRPv6. Il percorso predefinito viene creato nel router R2 tramite il comando neighbors default-originate. Per ridistribuire reciprocamente le route IPv6 eBGP in EIGRPv6, utilizzare il comando redistribute bgp con le metriche EIGRP. Analogamente, per ridistribuire le route EIGRPv6 in IPv6BGP, utilizzare il comando redistribute eigrp AS number in modalità di configurazione famiglia di indirizzi.
Nota: per ulteriori informazioni sui comandi menzionati in questo documento, usare lo strumento di ricerca dei comandi (solo utenti registrati).
Nel documento viene usata questa impostazione di rete:
Nel documento vengono usate queste configurazioni:
Router R1 |
---|
R1#show run Building configuration... ! version 15.0 ! hostname R1 ! ipv6 unicast-routing ipv6 cef ! ! interface Loopback10 no ip address ipv6 address BB10::10/128 ! interface Loopback20 no ip address ipv6 address BB20::20/128 ! interface Loopback30 no ip address ipv6 address BB30::30/128 ipv6 eigrp 1 ! interface Serial1/0 no ip address ipv6 address 3030:1:1:1::11/64 serial restart-delay 0 ! interface Serial1/1 no ip address ipv6 address 4040:1:1:1::10/64 ipv6 eigrp 1 serial restart-delay 0 ! ! router bgp 505 no synchronization bgp router-id 1.1.1.1 bgp log-neighbor-changes neighbor 3030:1:1:1::10 remote-as 500 no auto-summary ! address-family ipv6 redistribute eigrp 1 !--- EIGRP is redistributed in to BGP. no synchronization network BB10::10/128 network BB20::20/128 neighbor 3030:1:1:1::10 activate exit-address-family ! ! ipv6 router eigrp 1 eigrp router-id 1.1.1.1 redistribute bgp 505 metric 100 1 255 1 1500 !--- EIGRP for IPv6 has a shutdown feature. !--- Make sure that the routing process is in "no shut" mode !--- in order to start running the protocol. !--- BGP is redistributed with EIGRP default metrics. ! end |
Router R2 |
---|
R2#show run Building configuration... ! hostname R2 ! ipv6 unicast-routing ipv6 cef ! ! interface Loopback10 no ip address ipv6 address AB10::10/128 ! interface Loopback20 no ip address ipv6 address AB20::20/128 ! interface Serial1/0 no ip address ipv6 address 3030:1:1:1::10/64 serial restart-delay 0 ! router bgp 500 no synchronization bgp router-id 2.2.2.2 bgp log-neighbor-changes neighbor 3030:1:1:1::11 remote-as 505 neighbor 3030:1:1:1::11 default-originate no auto-summary ! address-family ipv6 no synchronization network AB10::10/128 network AB20::20/128 neighbor 3030:1:1:1::11 activate neighbor 3030:1:1:1::11 default-originate exit-address-family ! end !--- Originates default route to the !--- neighbor 3030:1:1:1::11. |
Router R3 |
---|
R3#show run ! version 15.0 ! hostname R3 ! ipv6 unicast-routing ipv6 cef ! interface Loopback10 no ip address ipv6 address CC10::10/128 ipv6 eigrp 1 ! interface Loopback20 no ip address ipv6 address CC20::20/128 ipv6 eigrp 1 ! interface Serial1/0 no ip address ipv6 address 4040:1:1:1::11/64 ipv6 eigrp 1 serial restart-delay 0 ! ! ipv6 router eigrp 1 eigrp router-id 3.3.3.3 ! end |
Fare riferimento a questa sezione per verificare che la configurazione funzioni correttamente.
Lo strumento Output Interpreter (solo utenti registrati) (OIT) supporta alcuni comandi show. Usare l'OIT per visualizzare un'analisi dell'output del comando show.
Per verificare che il router R3 riceva la route predefinita BGP IPv6 ridistribuita, utilizzare il comando show ipv6 route eigrp nel router R3.
show ipv6 route eigrp |
---|
Nel router R3 R3#show ipv6 route eigrp IPv6 Routing Table - default - 9 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary D - EIGRP, EX - EIGRP external, ND - Neighbor Discovery O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 EX ::/0 [170/26112256] via FE80::C806:16FF:FE08:0, Serial1/0 EX AB10::10/128 [170/26112256] via FE80::C806:16FF:FE08:0, Serial1/0 EX AB20::20/128 [170/26112256] via FE80::C806:16FF:FE08:0, Serial1/0 D BB30::30/128 [90/2297856] via FE80::C806:16FF:FE08:0, Serial1/0 !--- The above output shows that the default route !--- is redistributed in EIGRP. EX indicates EIGRP external routes. |
Per verificare che le route EIGRPv6 vengano ridistribuite correttamente nel router R2, utilizzare il comando show ipv6 route bgp nel router R2.
show ipv6 route bgp |
---|
Nel router R2 R2#show ipv6 route bgp IPv6 Routing Table - default - 9 entries Codes: C - Connected, L - Local, S - Static, U - Per-user Static route B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary D - EIGRP, EX - EIGRP external, ND - Neighbor Discovery O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 B BB10::10/128 [20/0] via FE80::C806:16FF:FE08:0, Serial1/0 B BB20::20/128 [20/0] via FE80::C806:16FF:FE08:0, Serial1/0 B CC10::10/128 [20/2297856] via FE80::C806:16FF:FE08:0, Serial1/0 B CC20::20/128 [20/2297856] via FE80::C806:16FF:FE08:0, Serial1/0 !--- The above output shows that the eigrp routes !--- are redistributed in to BGP. |
Verificare la raggiungibilità tra i router R2 e R3 utilizzando il comando ping.
ping |
---|
Dal router R2: R2#ping CC10::10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to CC10::10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/40/96 ms R2#ping CC20::20 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to CC20::20, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/44/100 msDal router R3: R3#ping AA10::10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to AA10::10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/33/92 ms R3#ping AA20::20 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to AA20::20, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/33/92 ms !--- The above ping responses shows that R1 and R3 are able !--- to communicate with each other. |
Revisione | Data di pubblicazione | Commenti |
---|---|---|
1.0 |
25-Jun-2012 |
Versione iniziale |