Pages

Sunday, January 9, 2011

BGP IPv6

Basic Configuration for BGP IPv6


IPv6 configuration for BGP is similar to IPv4. However, additional command are needed to establish the neighbor relationship between routers. We use address family ipv6 and neighbor activate command to activate neighbor in BGP ipv6.

Example

R1 and R2 are the eBGP peer and the link between R1 and R2 is in 2001::/64 network. R1 advertised  its loopback networks (2002::0/64 and 2003::/64) to R2.  Followings are the configurations of R1 and R2.





R1

ipv6 unicast-routing
// enable IPv6 routing
!
router bgp 100
 no synchronization
 bgp router-id 1.1.1.1
 bgp log-neighbor-changes
 neighbor 2222::1 remote-as 200
 neighbor 2222::1 ebgp-multihop 2
 neighbor 2222::1 update-source Loopback0
 no auto-summary
 !
 address-family ipv6
  neighbor 2222::1 activate
  network 2002::/64
  network 2003::/64
 exit-address-family


R2

ipv6 unicast-routing
!
router bgp 200
 no synchronization
 bgp router-id 2.2.2.2
 bgp log-neighbor-changes
 neighbor 2111::1 remote-as 100
 neighbor 2111::1 ebgp-multihop 2
 neighbor 2111::1 update-source Loopback0
 no auto-summary
 !
 address-family ipv6
  neighbor 2111::1 activate 
// if route-map is needed, put route-map command under ipv6 address family
 exit-address-family


Verify configuration

R2#sh ip bgp summary
BGP router identifier 2.2.2.2, local AS number 200
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2111::1         4   100       8       7        1    0    0 00:03:39        0


R2#sh ipv6 route
IPv6 Routing Table - 8 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route, M - MIPv6
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
       D - EIGRP, EX - EIGRP external
C   2001::/64 [0/0]
     via ::, FastEthernet0/0
L   2001::2/128 [0/0]
     via ::, FastEthernet0/0
B   2002::/64 [20/0]
     via 2111::1
B   2003::/64 [20/0]
     via 2111::1
S   2111::1/128 [1/0]
     via 2001::1
C   2222::/64 [0/0]
     via ::, Loopback0
L   2222::1/128 [0/0]
     via ::, Loopback0
L   FF00::/8 [0/0]
     via ::, Null0
R2#


R2#ping 2002::1 source lo0

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2002::1, timeout is 2 seconds:
Packet sent with a source address of 2222::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/27/72 ms
R2#

No comments:

Post a Comment