Przygotowuję się do CCNP Route i labuję rozgłaszanie tras ipv6 przez BGP ipv4. Topologia prosta 2 routery połączone bezpośrednio. W zasadzie przykład praktycznie z Offical Cert Guide. Konfigi jak poniżej:
Kod: Zaznacz cały
R1
ipv6 unicast-routing
!
interface Loopback0
ip address 172.16.0.1 255.255.255.0
!
interface Loopback1
no ip address
ipv6 address 2000:1::1/64
!
interface FastEthernet1/0
ip address 10.0.0.1 255.255.255.0
duplex auto
speed auto
ipv6 address 2000:2::1/64
!
router bgp 1
bgp log-neighbor-changes
neighbor 10.0.0.2 remote-as 2
!
address-family ipv4
neighbor 10.0.0.2 activate
no auto-summary
no synchronization
network 172.16.0.0 mask 255.255.255.0
exit-address-family
!
address-family ipv6
neighbor 10.0.0.2 activate
neighbor 10.0.0.2 route-map IPV6-NEXT-HOP out
network 2000:1::/64
exit-address-family
!
route-map IPV6-NEXT-HOP permit 10
set ipv6 next-hop 2000:2::1
Kod: Zaznacz cały
R2
ipv6 unicast-routing
!
interface Loopback0
no ip address
ipv6 address 2000:A::1/64
!
interface FastEthernet1/0
ip address 10.0.0.2 255.255.255.0
duplex auto
speed auto
ipv6 address 2000:2::2/64
!
router bgp 2
bgp log-neighbor-changes
neighbor 10.0.0.1 remote-as 1
!
address-family ipv4
neighbor 10.0.0.1 activate
neighbor 10.0.0.1 soft-reconfiguration inbound
no auto-summary
no synchronization
exit-address-family
!
address-family ipv6
neighbor 10.0.0.1 activate
neighbor 10.0.0.1 soft-reconfiguration inbound
neighbor 10.0.0.1 route-map IPV6-NEXT-HOP out
network 2000:A::/64
exit-address-family
!
no ip http server
no ip http secure-server
!
route-map IPV6-NEXT-HOP permit 10
set ipv6 next-hop 2000:2::2
Kod: Zaznacz cały
R1#show bgp ipv6 unicast summary
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
10.0.0.2 4 2 250 272 2 0 0 00:12:43 0
Kod: Zaznacz cały
R1#show bgp ipv6 unicast neighbors 10.0.0.2 advertised-routes
BGP table version is 2, local router ID is 172.16.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 2000:1::/64 :: 0 32768 i
A w R2:
Kod: Zaznacz cały
R2#show bgp ipv6 unicast neighbors 10.0.0.1 received-routes
Total number of prefixes 0