The peer group enable command enables a peer to be added to a peer group in the BGP VPN instance address family.
The undo peer group enable command disables a peer from being added to a peer group in the BGP VPN instance address family.
By default, a peer is disabled from being added to a peer group in the BGP VPN instance address family.
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
It is in dotted decimal notation. |
group-name |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
A large number of BGP peers may exist on a large-scale BGP network. Among these BGP peers, many of them may use the same policies and have the same command configurations. In this situation, you can use peer groups to simplify configurations. Specifically, when configuring multiple peers in the same way, you can create and configure a peer group, and add multiple peers to the peer group. Then, all peers in the peer group will inherit the configurations of the peer group. The peer group enable command enables a peer to be added to a peer group in the BGP VPN instance address family. After being added to a peer group, a peer automatically inherits the configurations of the peer group.
Prerequisites
BGP peers and BGP peer groups have been configured in the BGP VPN instance view.
Precautions
Peers in the same peer group can have different import and export routing policies.
The undo peer group enable command provides the same function as the undo peer enable command.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv6-family [*HUAWEI-vpn-instance-vpn1-af-ipv6] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vpn1 [*HUAWEI-bgp-instance-vpn1] group yy internal [*HUAWEI-bgp-instance-vpn1] peer 1.1.11 group yy [*HUAWEI-bgp-instance-vpn1] quit [*HUAWEI-bgp] ipv6-family vpn-instance vpn1 [*HUAWEI-bgp-6-vpn1] peer yy enable [*HUAWEI-bgp-6-vpn1] peer 1.1.11 group yy enable