Usage Scenario
After you configure the association between bit error events and the adjustment of EVPN route local preference or MED values, PE can detect the bit error event encountered by the tunnel between itself and the peer and reduces the local preference or increases the MED values of the BGP EVPN routes that it advertises to the peer. As a result, the peer preferentially selects the routes advertised by another PE and switches traffic to the backup path. After the bit error event is over, PE restores the local preference or MED values of the routes advertised to the peer. Consequently, the peer preferentially selects the routes advertised by PE and switches traffic back to the primary path.
Configuration Impact
If a bit error event has occurred before you configure the association between bit error events and EVPN route local preference or MED values, the PE may select a backup path to transmit traffic after you configure the nexthop recursive-lookup bit-error-detection command.
Precautions
After you configure the association between bit error events and the adjustment of EVPN route local preference or MED values, the local preference or MED value of the route changes if the tunnel to which the route recurses encounters a bit error event. However, only routes meeting the routing policy can be advertised with adjusted local preference or MED values. Pay special attention to routing policy configuration when configuring the association between bit error events and the adjustment of EVPN route local preference or MED values. If the routing policy is not appropriately configured, routes may fail to be advertised after having their local preference or MED values changed.