Create a BGP4 Peer Group

  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. 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 10.2.2.2 peer-group mypeergroup1
    This example shows the neighbor command, the IP 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.

The following example summarizes the commands in this procedure

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 10.2.2.2 peer-group mypeergroup1