Configuring BGP4 peer groups
A peer group can be created and neighbor IPv4 addresses can be associated with the
peer group.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
router bgpcommand to enable BGP routing. - Enter the
local-ascommand to configure the autonomous system number (ASN) in which your device resides. - Enter the
neighborpeer-group-name peer-group command to create a peer group. - Enter the
neighborpeer-group-name remote-as command to specify the ASN of the peer group. - Enter the
neighborip-address peer-group command to associate a neighbor with the peer group. - Enter the
neighborip-address peer-group command to associate another neighbor with the peer group.
The following example creates a peer group and specifies two neighbors to belong to 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 10.2.2.2 peer-group mypeergroup1 device(config-bgp-router)# neighbor 10.3.3.3 peer-group mypeergroup1