To configure multi-protocol BGP for exchanging IPv6 prefixes over IPv4 BGP Sessions for a BGP peer group using user defined VRF, do the following:
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# peer-group ipv6prefix-over-ipv4peer
Note
When the IPv6 address family is already activated under a peer-group and the command peer-group ipv6prefix-over-ipv4peer is executed, the Neighbor NLRI Negotiation capabilities are modified from IPv4 Unicast Routes to IPv4 and IPv6 Unicast Routes. This will reset the existing BGP IPv4 connections, those that are mapped to a peer-group and have IPv6 address family enabled.
This reset also happens when IPv6 Address Family is already activated under a peer-group, and CLI peer-group ipv6prefix-over-ipv4peer is being disabled.
device(config-bgp-router)# neighbor pgMain peer-group %Warning: Please activate Peer-group for IPv6 address-family
device(config-bgp-router)# neighbor pgMain remote-as 1001
device(config-bgp-router)# address-family ipv4 unicast vrf red device(config-bgp-ipv4u-vrf)#
device(config-bgp-ipv4u-vrf)# neighbor 192.0.2.10 peer-group pgMain
device(config-bgp-ipv4u-vrf)# exit device(config-bgp-router)#
device(config-bgp-router)# address-family ipv6 unicast vrf red device(config-bgp-ipv6u-vrf)#
device(config-bgp-ipv6u-vrf)# exit device(config-bgp-router)#
device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)#
device(config-bgp-ipv6u)# neighbor pgMain activate
The following is a consolidation of tasks to perform to activate IPv6 address family for a BGP peer using user defined VRF.
router bgp local-as 1000 peer-group ipv6prefix-over-ipv4peer neighbor pgMain peer-group neighbor pgMain remote-as 1001 address-family ipv4 unicast vrf red neighbor 192.0.2.10 peer-group pgMain address-family ipv6 unicast vrf red address-family ipv6 unicast neighbor pgMain activate