Create a BGP Peer Group with IPv4 and IPv6 Peers

A BGP peer group can contain both IPv4 and IPv6 peers.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Create a peer group.
    device(config-bgp-router)# neighbor p1 peer-group
    This example shows the neighbor command, the peer group name (p1), and the peer-group keyword.
  4. Specify the autonomous system number (ASN) of the peer group.
    device(config-bgp-router)# neighbor p1 remote-as 11
    This example associates ASN 11 to the new peer group.
  5. Associate an IPv6 neighbor with the peer group.
    device(config-bgp-router)# neighbor 2001:2018:8192::124 peer-group p1
    This example shows the neighbor command, the IPv6 address of the neighbor, the peer-group keyword, and the name of the peer group (p1).
  6. Associate an IPv4 neighbor with the peer group.
    device(config-bgp-router)# neighbor 10.0.0.1 peer-group p1
    This example shows the neighbor command, the IPv4 address of the neighbor, the peer-group keyword, and the name of the peer group (p1).
  7. Repeat steps 5 and 6 as needed to associate more neighbors with the peer group.
  8. Access IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  9. Activate an IPv6 BGP session with the new peer group.
    device(config-bgp-ipv6u)# neighbor p1 activate

Example

The following example summarizes the commands in this procedure.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor p1 peer-group
device(config-bgp-router)# neighbor p1 remote-as 11
device(config-bgp-router)# neighbor 2001:2018:8192::124 peer-group p1
device(config-bgp-router)# neighbor 10.0.0.1 peer-group p1
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor p1 activate