The root-ip use-next-hop command configures a leaf node to use the next hop of a BGP EVPN route as the root node IP address.
The undo root-ip use-next-hop command restores the default configuration.
By default, a leaf node does not use the next hop of a BGP EVPN route as the root node IP address.
Usage Scenario
In a cross-IGP-area EVPN E-LAN scenario, you must run the root-ip use-next-hop command on a leaf node to configure the next hop of a BGP EVPN route as the root node IP address, which is used as the IP address of the ABR on the area border. Without this configuration, EVPN cannot use an mLDP P2MP tunnel for service transmission.
<HUAWEI> system-view [~HUAWEI] evpn vpn-instance evpn1 bd-mode [*HUAWEI-evpn-instance-evpn1] inclusive-provider-tunnel [*HUAWEI-evpn-instance-evpn1-inclusive] leaf [*HUAWEI-evpn-instance-evpn1-inclusive-leaf] root-ip 2.2.2.2 use-next-hop