The group command creates a peer group.
The undo group command deletes a peer group.
By default, no peer group is configured.
| Parameter | Description | Value |
|---|---|---|
| group-name | Specifies the name of the peer group. | The name is a string of 1 to 47 characters without any space. It is case-sensitive. |
| external | Creates the EBGP peer groups. | - |
| internal | Creates the IBGP peer groups. | - |
BGP view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view
Usage Scenario
A peer group is a group of peers with the same routing policies. After a peer is added to a peer group, it inherits the configurations of this peer group. Peers in a peer group inherit the configurations of the peer group. When the configurations of the peer group are changed, the configurations of these peers are changed accordingly.
On a large-scale BGP network, there are a large number of peers and many of them have the same policies. To configure these peers, you have to repeatedly use some commands. In such a case, configuring peer groups can simplify configurations. If the configurations for several peers are the same, these peers can be added to a created and configured peer group. The peers in the peer group then inherit the configurations of the peer group.
Configuration Impact
If the group command is run more than once, the latest configuration does not override the previous one.
After the group command is run, the system creates a specific type of BGP peer groups.
Precautions
If the type (IBGP or EBGP) of peer group is not specified, an IBGP peer group is created by default.
Deleting a peer group closes the connections on the peers that have no AS numbers in the peer group. Before deleting a peer group, you are recommended to delete these peers or configure AS numbers for these peers.