Configuring an IPv6 Multiprotocol BGP Peer Group and advertising a route example.
Scenario
Configure R1 & R2 for IPv6 Multiprotocol BGP using a Peer Group and
advertising R1 & R2′s loopbacks.
Simple two router network for demonstration purposes.
R1<—->FR<—–>R2
Configuration
r1
ipv6 unicast-routing
interface Loopback99
no ip address
ipv6 address 2001:DB8:1111::1/48
interface Serial2/0
ipv6 address 2001:DB8:0:CC00::1/48
router bgp 65100
no bgp default ipv4-unicast
neighbor group1 peer-group
neighbor 2001:DB8:0:CC00::2 remote-as 65100
neighbor 2001:DB8:0:CC00::2 peer-group group1
address-family ipv6
neighbor group1 activate
neighbor 2001:DB8:0:CC00::2 peer-group group1
network 2001:DB8:1111::1/48
exit-address-family
r2
ipv6 unicast-routing
interface Loopback99
no ip address
ipv6 address 2001:DB8:1111::2/48
interface Serial2/0
ipv6 address 2001:DB8:0:CC00::2/48
router bgp 65100
no bgp default ipv4-unicast
neighbor group1 peer-group
neighbor 2001:DB8:0:CC00::1 remote-as 65100
neighbor 2001:DB8:0:CC00::1 peer-group group1
address-family ipv6
neighbor group1 activate
neighbor 2001:DB8:0:CC00::1 peer-group group1
network 2001:DB8:1111::2/48
exit-address-family
Verification
R1#sh ipv6 int br
Serial2/0 [up/up]
FE80::C804:12FF:FEDC:8
2001:DB8:0:CC00::1
Loopback99 [up/up]
FE80::C804:12FF:FEDC:8
2001:DB8:1111::1
R2#sh ipv int b
Serial2/0 [up/up]
FE80::C805:12FF:FEDC:8
2001:DB8:0:CC00::2
Loopback99 [up/up]
FE80::C805:12FF:FEDC:8
2001:DB8:1111::2
R1#
sh bgp ipv6 unicast sum
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2001:DB8:0:CC00::2
4 65100 6 6 2 0 0 00:02:17 1
R2#
sh bgp ipv6 unicast sum
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2001:DB8:0:CC00::1
4 65100 6 6 2 0 0 00:02:41 1
R1#
sh bgp ipv6 unicast neighbors 2001:DB8:0:CC00::2 advertised-routes
BGP table version is 2, local router ID is 1.1.1.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
*> 2001:DB8:1111::1/48
:: 0 32768 i
R2#
sh bgp ipv6 uni nei 2001:DB8:0:CC00::1 adver
BGP table version is 2, local router ID is 2.2.2.2
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
*> 2001:DB8:1111::2/48
:: 0 32768 i
R1#
sh bgp ipv6 unicast neighbors 2001:DB8:0:CC00::2 routes
BGP table version is 2, local router ID is 1.1.1.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
* i2001:DB8:1111::1/48
2001:DB8:0:CC00::2
0 100 0 i
R2#
sh bgp ipv6 uni nei 2001:DB8:0:CC00::1 routes
BGP table version is 2, local router ID is 2.2.2.2
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
* i2001:DB8:1111::2/48
2001:DB8:0:CC00::1
0 100 0 i
Troubleshooting
R2#deb bgp ipv6 unicast updates
R2#clear bgp ipv6 unicast * soft
R2#
00:22:50: BGP(1): 2001:DB8:0:CC00::1 send UPDATE (format) 2001:DB8:1111::2/48, next 2001:DB8:0:CC00::2, metric 0, path
00:22:50: BGP(1): updgrp 1 – 2001:DB8:0:CC00::1 enqueued 1 updates, average/maximum size (bytes) 75/75
00:22:50: BGP(1): 2001:DB8:0:CC00::1 rcvd UPDATE w/ attr: nexthop 2001:DB8:0:CC00::1, origin i, localpref 100, metric 0
00:22:50: BGP(1): 2001:DB8:0:CC00::1 rcvd 2001:DB8:1111::/48
Everything is as expected.
More info: Cisco IOS IPv6 Configuration Guide, Release 12.4 Implementing Multiprotocol BGP for IPv6
http://www.cisco.com/en/US/docs/ios/ipv6/configuration/guide/ip6-mptcl_bgp.html#wp1027258