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.
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.
<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