No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
nexthop (OSPFv3)

nexthop (OSPFv3)


The nexthop command sets the preference for equal-cost routes.

The undo nexthop command cancels the preference of equal-cost routes.

By default, the preference is not set for equal-cost routes. That is, equal-cost routes forward packets at the same time for load balancing.


nexthop router-id interface-type interface-number weight value

undo nexthop router-id interface-type interface-number


Parameter Description Value
router-id Specifies the router ID of a neighbor. It is in dotted decimal notation.
interface-type interface-number Specifies the type and number of an interface. -
weight value Specifies the weight of the next hop. The smaller the weight is, the higher the route preference is. It is an integer ranging from 1 to 254.


OSPFv3 view

Default Level

2: Configuration level

Usage Guidelines

After OSPFv3 calculates equal-cost routes, you can run the nexthop command to select the route with the highest preference from the equal-cost routes as the next hop. OSPFv3 selects a next hop from these equal-cost routes according to the weight. The smaller the weight is, the higher the route preference is.


# Set the preference for equal-cost routes in OSPFv3.

<HUAWEI> system-view
[~HUAWEI] interface vlanif 10
[*HUAWEI-Vlanif10] quit
[*HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] nexthop vlanif 10 weight 240
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 88899

Downloads: 405

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next