nexthop weight (OSPFv3 view)

Function

The nexthop weight command sets the priority for equal-cost routes.

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

By default, the value of weight-value is 255, and equal-cost routes load balance traffic.

Format

nexthop neighbor-id { interface-name | interface-type interface-number } weight value

undo nexthop neighbor-id { interface-name | interface-type interface-number }

Parameters

Parameter Description Value
neighbor-id

Specifies the router ID of a neighbor.

The value is in dotted decimal notation.

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

weight value

Specifies a priority for the next hop. The smaller the value, the higher the priority.

The value is an integer ranging from 1 to 254.

Views

OSPFv3 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

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

If the number of equal-cost routes on a network is greater than the value set using the maximum load-balancing command and specified equal-cost routes need to be used for load balancing, run the nexthop command to a high priority for these routes.

Example

# Set the priority for OSPFv3 equal-cost routes.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] quit
[*HUAWEI] ospfv3 1
[*HUAWEI-ospfv3-1] nexthop 10.0.0.3 GigabitEthernet0/1/0 weight 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >