es track evpn-peer (Interface view)

Function

The es track evpn-peer command enables BGP EVPN peer status tracking.

The undo es track evpn-peer command disables BGP EVPN peer status tracking.

By default, BGP EVPN peer status tracking is not enabled.

Format

es track evpn-peer peer-address

undo es track evpn-peer peer-address

Parameters

Parameter Description Value
peer-address

Specifies the IPv4 address of a peer.

The value is in dotted decimal notation.

Views

Eth-Trunk interface view, PW-VE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

On an EVPN where a CE is multi-homed to PEs, after a PE restarts due to a fault or other reasons, traffic may be lost. To resolve this issue, run the es track evpn-peer command on PE's interface connecting to CE. This configuration allows PE to trigger a delay timer for ES route advertisement after PE recovers and PE's interface connecting to CE goes Up. After the delay timer is triggered, PE tracks the status of its BGP peers. If the BGP peer relationships both go Up within the timer-specified delay, PE sends ES routes to the peers. If the timer-specified delay elapses, PE sends ES routes only to the peer with which the BGP peer relationship is Up. After PE generates and sends ES routes, PE performs DF election based on all the received ES routes.

Configuration Impact

If the es track evpn-peer command is run, the delay timer for DF election loses effect.

Example

# Enable Eth-Trunk 1 to track the status of BGP peer 1.1.1.1.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 1.1.1.1 as-number 100
[*HUAWEI-bgp] l2vpn-family evpn
[*HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable
[*HUAWEI-bgp-af-evpn] quit
[*HUAWEI-bgp] quit
[*HUAWEI] interface Eth-Trunk 1
[*HUAWEI-Eth-Trunk1] es track evpn-peer 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >