Configuring BGP4+ peer groups

A peer group can be created and neighbor IPv6 addresses can be associated with the peer group. The peer group is then activated in the IPv6 address family configuration mode.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the local-as command to configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 1000
  4. Enter the neighbor peer-group command to create a peer group.
    device(config-bgp-router)# neighbor mypeergroup1 peer-group 
  5. Enter the neighbor remote-as command, specifying a peer group, to specify the ASN of the peer group.
    device(config-bgp-router)# neighbor mypeergroup1 remote-as 11
  6. Enter the neighbor peer-group command to associate a neighbor with the peer group.
    device(config-bgp-router)# neighbor 2001:2018:8192::125 peer-group mypeergroup1
  7. Enter the neighbor peer-group command to associate another neighbor with the peer group.
    device(config-bgp-router)# neighbor 2001:2018:8192::124 peer-group mypeergroup1
  8. Enter the address-family ipv6 unicast command to enter IPv6 address family configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  9. Enter the neighbor activate command to establish an IPv6 BGP session with the peer group.
    device(config-bgp-ipv6u)# neighbor mypeergroup1 activate

The following example creates a peer group, specifying two neighbors to belong to the peer group, and activates the peer group.

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