< Home

peer enable (BGP-EVPN address family view)

Function

The peer enable command enables a device to exchange route information with a peer or peer group in the address family view.

The undo peer enable command disables a device from exchanging route information with a peer or peer group.

By default, only the peers of the BGP-IPv4 unicast address family are automatically enabled.

Format

peer { group-name | ipv4-address } enable

undo peer { group-name | ipv4-address } 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.
ipv4-address Specifies the IPv4 address of a peer. The value is in dotted decimal notation.

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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

Prerequisites

The peer as-number command has been run to create a peer or peer group.

Example

# Configure a peer and enable the peer in the BGP-EVPN address family view.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] peer 1.1.1.2 as-number 100
[HUAWEI-bgp] l2vpn-family evpn
[HUAWEI-bgp-af-evpn] peer 1.1.1.2 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >