peer enable (BGP-VPNv4 address family view)(group)

Function

The peer enable command enables a BGP device to exchange routes with a specified peer group in the address family view.

The undo peer enable command disables a BGP device from exchanging routes with a specified peer group.

By default, only the peer in the BGP IPv4 unicast address family view is automatically enabled.

Format

peer group-name enable

undo peer group-name enable

Parameters

Parameter Description Value
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.

Views

BGP-VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

By default, only peers in the BGP IPv4 unicast address family are automatically enabled. After the peer as-number command is used in the BGP view, the system automatically runs the peer enable command to enable a peer. In other address family view, however, a peer must be enabled manually.

After the undo default ipv4-unicast command is run, the peer enable command needs to be run in the BGP view or the BGP-IPv4 unicast address family view to enable the IPv4 unicast address family for the created BGP peer.

Configuration Impact

Enabling or disabling a BGP peer in an address family, for example, running the peer enable command or the undo peer enable command in a VPNv4 address family, causes teardown and re-establishment of the BGP connection of the peer in other address families.

Precautions

To run the command in the BGP VPN instance IPv4 address family view or BGP VPN instance IPv6 address family view, ensure that the related BGP peers and BGP peer groups have been configured in the BGP VPN instance.

If the peer enable command is run in the BGP public network address family view and a peer relationship has been established between the local device and the peer in another address family, all peers that have established peer relationships with the local device will be disconnected and re-established, causing route flapping. Therefore, exercise caution when running this command.

Example

# Enable a BGP device to exchange routes with a specified peer group.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[~HUAWEI-bgp] group a internal
[~HUAWEI-bgp] ipv4-family vpnv4
[~HUAWEI-bgp-af-vpnv4] peer a enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >