The peer upe command configures a BGP EVPN peer group as the UPE.
The undo peer upe command restores the default configuration.
By default, no BGP EVPN peer group 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 group has been created and the BGP-EVPN address family view has been enabled.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] group gp1 internal [*HUAWEI-bgp] peer 1.1.1.2 as-number 100 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer gp1 enable [*HUAWEI-bgp-af-evpn] peer 1.1.1.2 group gp1 [*HUAWEI-bgp-af-evpn] peer gp1 upe