< Home

Configuring the Next_Hop Attribute

By setting the Next_Hop attribute, you can flexibly control BGP4+ route selection.

Procedure

  • Modify the next hop when advertising a route to an IBGP peer.
    1. Access the system view.

      system-view

    2. Access the BGP view.

      bgp { as-number-plain | as-number-dot }

    3. Access the BGP IPv6 unicast address family view.

      ipv6-family unicast

    4. Configure the local address as the next hop when routes are advertised.

      peer ipv6-address next-hop-local

      In some networking environments, to ensure that the IBGP neighbors find the correct next hop, configure the next hop address as its own address when routes are advertised to the IBGP peers.

      If BGP load balancing is configured, the local router changes the next hop address to its own address when advertising routes to the IBGP peer groups, regardless of whether the peer next-hop-local command is used.

  • Enable next-hop iteration based on the routing policy.
    1. Access the system view.

      system-view

    2. Access the BGP view.

      bgp { as-number-plain | as-number-dot }

    3. Access the BGP IPv6 unicast address family view.

      ipv6-family unicast

    4. Enable next-hop iteration based on the specified routing policy.

      nexthop recursive-lookup route-policy route-policy-name

      By default, the next-hop iteration based on the specified routing policy is disabled.

      The next-hop iteration based on the specified routing policy can control the iterated route according to certain conditions. The route that fails to pass the policy is ignored.

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