This command creates a BGP peer group and adds a peer group neighbor.
ip-address | An IPv4 or IPv6 address to add to a peer group. IPv4 addresses are specified in dotted-quad format; IPv6 addresses are specified in colon-separated format. |
groupID | Specifies a BGP peer group name as a character string. If an invalid IP address is specified (for example, 256.1.1.1), it will be read as a group name. |
None.
BGP Router Configuration.
The neighbor groupID peer-group command creates a peer group. BGP peers can then be added to that group. After this command is issued, peers are added to the group using the neighbor ip-address peer-group command. All members of the peer group must be of the same peer type: IBGP, EBGP or EBGP confederation.
Peer group commands are policy related. If a peer is in a peer group, and both the peer and peer group have policy configured, the peer group‘s policy takes precedence for route export. The peer‘s policy takes precedence for route import.
The following example configures peer group abc with peers 1.2.3.4 and 4.3.2.1 added to it.
System(su-config)->router bgp 65151 System(su-config-bgp)->bgp router-id 1.1.1.1 System(su-config-bgp)->neighbor 1.2.3.4 remote-as 65151 System(su-config-bgp)->neighbor 4.3.2.1 remote-as 65151 System(su-config-bgp)->neighbor abc peer-group System(su-config-bgp)->neighbor 1.2.3.4 peer group abc System(su-config-bgp)->neighbor 4.3.2.1 peer-group abc