The peer group command adds a peer to a peer group.
The undo peer group command deletes a peer from a peer group and all configurations of the peer.
By default, no peer is created.
Usage Scenario
On a large-scale MBGP network, there are a large number of peers and many of them have the same routing policies. To configure these peers, you have to repeatedly use some commands. In such a case, configuring peer groups can simplify configurations. If you intend to perform the same configuration on several peers, create and configure a peer group. Then, add the peers to the peer group. The peers will inherit the configurations of the peer group.
Peers with different AS numbers can be added to the same peer group. If a peer has an AS number, the peer keeps its own AS number after being added to a peer group. If a peer has no AS number but the peer group to which the peer will be added has an AS number, the peer inherits the AS number of the peer group after being added to the peer group. The members of a peer group can be configured with different route receiving and advertising policies.Configuration Impact
After the peer group command is run, MBGP peers are added to a specified peer group.
Precautions
If a peer group has no AS number, all peers that are added to the peer group keep their own AS numbers. If a peer group has an AS number, the peers added to the peer group must have the same AS number with the peer group.
The members of a peer group can be configured with different route receiving and advertising policies. The undo peer group command has the same function with the undo peer command and the undo peer enable command.