peer enable (BGP-IPv6 MVPN address family view)

Function

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

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

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

Format

peer ipv4-address enable

peer ipv6-address enable

undo peer ipv4-address enable

undo peer ipv6-address enable

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

The address is in dotted decimal notation.

ipv6-address

Specifies the address of the IPv6 peer to be displayed.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP-IPv6 MVPN 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

If the peer enable command is run for a peer in the BGP public address family view when the peer has established peer relationships with other peers in other address families, these peer relationships will be disconnected and reestablished, which may cause route flapping. Therefore, exercise caution when running this command.

Example

# Enable a device to exchange routes with the peer 10.1.1.2 in the BGP-IPv6 MVPN address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.2 as-number 100
[*HUAWEI-bgp] ipv6-family mvpn
[*HUAWEI-bgp-af-mvpnv6] peer 10.1.1.2 enable
# Enable a device to exchange routes with the peer 1::1 in the BGP-IPv6 MVPN address family.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1::1 as-number 200
[*HUAWEI-bgp] ipv6-family mvpn
[*HUAWEI-bgp-af-mvpnv6] peer 1::1 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >