Create a BGP4+ Peer Group

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Enable exchanging IPv6 prefixes over IPv4 for BGP.
    device(config-bgp-router)# peer-group ipv6prefix-over-ipv4peer 
    Note

    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.

    This enables the exchanging of IPv6 addresses over IPv4 BGP sessions. This configuration only applies to those BGP neighbors who are members of a peer group.
  4. Create a peer group.
    device(config-bgp-router)# neighbor mypeergroup1 peer-group 
    This example shows the neighbor command, the peer group name (mypeergroup1), and the peer-group keyword.
  5. Specify the autonomous system number (ASN) of the peer group.
    device(config-bgp-router)# neighbor mypeergroup1 remote-as 11
    This example associates ASN 11 to the new peer group.
  6. Associate a neighbor with the peer group.
    device(config-bgp-router)# neighbor 192.168.10.125 peer-group mypeergroup1

    This example shows the neighbor command, the IPv4 address of the neighbor, the peer-group keyword, and the name of the peer group (mypeergroup1).

  7. Repeat Step 6 as needed to associate more neighbors with the peer group.
  8. Optional: To associate an IPv6 neighbor with the peer group, use the following command.
    device(config-bgp-router)# neighbor 2001:2018:8192::125 peer-group mypeergroup1

    This example shows the neighbor command, the IPv6 address of the neighbor, the peer-group keyword, and the name of the peer group (mypeergroup1).

  9. Access IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  10. Activate an IPv6 BGP session with the new peer group.
    device(config-bgp-ipv6u)# neighbor mypeergroup1 activate

The following example summarizes the commands in this procedure

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# peer-group ipv6prefix-over-ipv4peer
device(config-bgp-router)# neighbor mypeergroup1 peer-group
device(config-bgp-router)# neighbor mypeergroup1 remote-as 11
device(config-bgp-router)# neighbor 192.168.10.125 peer-group mypeergroup1
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor mypeergroup1 activate