The peer upe command configures a BGP EVPN peer as the UPE.
The undo peer upe command restores the default configuration.
By default, no BGP EVPN peer is specified as the UPE.
Usage Scenario
In an EVPN HoVPN scenario, run the peer upe command to specify a device as a UPE. After a UPE is specified on the SPE using the peer upe command, the SPE does not send a specific route to the UPE. If the peer route-policy export command is run on the SPE to configure routing policies for the UPE and certain specific routes can pass the filtration of routing policies, these specific routes can be sent to the UPE.
After you run the peer upe command on an SPE to specify a device as a UPE, the SPE can change the next hops of routes received from the UPE to itself and reflect these routes to the NPE.Prerequisites
A BGP EVPN peer has been created and the BGP-EVPN address family view has been enabled.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 2001:DB8:1::1 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 2001:DB8:1::1 enable [*HUAWEI-bgp-af-evpn] peer 2001:DB8:1::1 upe
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.2 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer 10.1.1.2 enable [*HUAWEI-bgp-af-evpn] peer 10.1.1.2 upe