Activate IPv6 Address Family for Dynamic BGP Neighbors Using User Defined VRF

To configure multi-protocol BGP for exchanging IPv6 prefixes over IPv4 BGP Sessions for Dynamic BGP Neighbors using user defined VRF, do the following:

  1. Access global configuration mode.
     device# configure terminal 
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Specify the autonomous system in which your device resides.
    device(config-bgp-router)# local-as 1000
  4. Navigate into the Peer Group context.
    device(config-bgp-router)# neighbor pgMain peer-group
    	%Warning: Please activate Peer-group for IPv6 address-family
  5. Specify the autonomous system in which the remote dynamic BGP neighbors reside. Assign the remote-as to the peer-group.
    device(config-bgp-router)# neighbor pgMain remote-as 1001
  6. Navigate to the IPv4 Unicast Address Family context of the user defined VRF.
    device(config-bgp-router)# address-family ipv4 unicast vrf red
    device(config-bgp-ipv4u-vrf)#
  7. Specify the IPv4 address range assigned to the dynamic BGP neighbors and assign that range to the peer group.
    device(config-bgp-ipv4u-vrf)# listen-range 10.0.2.0/24 peer-group pgMain 
  8. Exit out of the IPv4 Address Family context.
    device(config-bgp-ipv4u-vrf)# exit
    device(config-bgp-router)# 
  9. Navigate to the IPv6 Unicast Address Family context of the user defined VRF. This enables IPv6 address family for the VRF.
    device(config-bgp-router)# address-family ipv6 unicast vrf red
    device(config-bgp-ipv6u-vrf)#
  10. Exit out of the IPv6 Address Family context.
    device(config-bgp-ipv6u-vrf)# exit
    device(config-bgp-router)# 
  11. Configure the IPv6 address family.
    device(config-bgp-router)# address-family ipv6 unicast
    device(config-bgp-ipv6u)#
  12. Activate the IPv6 Address Family for the peer group.
    device(config-bgp-ipv6u)# neighbor pgMain activate

Example

The following is a consolidation of tasks to perform to activate IPv6 address family for a BGP peer using default VRF.

router bgp
local-as 1000
neighbor pgMain peer-group
neighbor pgMain remote-as 1001
address-family ipv4 unicast vrf red
listen-range 192.0.2.0/24 peer-group pgMain
address-family ipv6 unicast vrf red
address-family ipv6 unicast 
neighbor pgMain activate