Wednesday 26 September 2012

IPv6 BGP section(route advertising and aggregation)


R4 Config

 ipv6 unicast-routing
!
interface FastEthernet0/1
 ipv6 address 2001:46::4/64
!
router bgp 1
 no synchronization
 bgp router-id 4.4.4.4
 bgp log-neighbor-changes
 neighbor 2001:46::6 remote-as 6
 no neighbor 2001:46::6 activate
 no auto-summary
 !
 address-family ipv6
  neighbor 2001:46::6 activate
  no synchronization
 exit-address-family

R6 Config

ipv6 unicast-routing
!
interface Loopback0
 ipv6 address 2001:6:0:6::6/64
!
interface Loopback1
 ipv6 address 2001:6:0:60::6/58
!
interface FastEthernet0/0
 ipv6 address 2001:46::6/64
!
router bgp 6
 no synchronization
 bgp router-id 6.6.6.6
 bgp log-neighbor-changes
 neighbor 2001:46::4 remote-as 1
 no neighbor 2001:46::4 activate
 no auto-summary
 !
 address-family ipv6
  neighbor 2001:46::4 activate
  network 2001:6:0:6::/64
  network 2001:6:0:60::/58
  aggregate-address 2001:6::/57 summary-only
 exit-address-family


Verification


R6 is advertising 2001:6:0:6::/64 and 2001:6:0:60::/58.
But those prefixes are suppressed when aggregate with 2001:6:0:60::/57 since those are fall with the aggregate prefix.

R4#show bgp ipv6 unicast

   Network          Next Hop            Metric LocPrf Weight Path
*> 2001:6::/57      2001:46::6               0             0 6 i

R6#show bgp ipv6 unicast

   Network          Next Hop            Metric LocPrf Weight Path
*> 2001:6::/57      ::                                 32768 i
s> 2001:6:0:6::/64  ::                       0         32768 i
s> 2001:6:0:60::/58 ::                       0         32768 i

No comments:

Post a Comment