Setting the Next_Hop Attribute

MBGP route selection can be flexibly controlled by setting the Next_Hop attribute.

Context

Different from that in IGP, the next-hop address in MBGP may not be the IP address of a peer router.

Procedure

  • Configure a device to change the next-hop address when it advertises a route to an IBGP peer.

    Perform the following steps on the IBGP router:

    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number

      The BGP view is displayed.

    3. Run ipv4-family multicast

      The BGP-IPv4 multicast address family view is displayed.

    4. Run peer { peer-address | group-name } next-hop-local

      The local address is configured as the next-hop address for route advertisement.

      To ensure that an IBGP peer can find the correct next hop, configure the local device to change the next-hop address of a route to be its own address when the local device advertises the route to its IBGP peer.

      If MBGP load balancing is configured, the local router changes the next-hop address to be its own address when advertising routes to IBGP peer groups, regardless of whether the peer { group-name | peer-address } next-hop-local command is configured.

    5. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >