Hello@tesfama,
Configure the BGP number. BGP is enabled, and the BGP view is displayed.
The peer next-hop-local command is usually configured on the ASBR (Autonomous System Boundary Router). When a device learns a route through an EBGP neighbor and forwards it to other IBGP neighbors, the next hop is not modified by default. However, the next hop of the route sent by its EBGP neighbor is the peer address of its EBGP neighbor. The local peer belongs to it. After an IBGP neighbor in the AS domain receives such a route, the route cannot be activated because the next hop is unreachable. Therefore, the peer next-hop-local command needs to be configured on the ASBR for the IBGP neighbor so that the next hop of the route sent to the IBGP neighbor is its own address. After the IBGP neighbor receives such a route (because IGP is configured in the domain) ) It is found that the next hop is reachable, and the route is the active route.
After the peer next-hop-local command is executed, the device sets the next-hop attribute to its own IP address when advertising the route to the IBGP peer (group). For more details, please refer to
https://support.huawei.com/hedex/hdx.do?docid=EDOC1100109721&id=EN-US_CLIREF_0172379931&lang=en
Glad to help you! Any further questions, let us know.