The peer next-hop-invariable command enables a BGP EVPN speaker to keep the next hops of routes unchanged when the speaker advertises these routes to EBGP EVPN peers and to apply the original next hops of locally imported routes when the speaker advertises these routes to IBGP EVPN peers.
The undo peer next-hop-invariable command restores the default configuration.
By default, the function of keeping the next hops of routes unchanged is not enabled.
Usage Scenario
By default:
Prerequisites
The specified peer has been enabled in the BGP-EVPN address family view.
Precautions
If a device needs to advertise routes to its IBGP peer, the peer next-hop-invariable and peer next-hop-local commands are mutually exclusive on the device.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.9 as-number 200 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 1.1.1.9 enable [*HUAWEI-bgp-af-evpn] peer 1.1.1.9 next-hop-invariable