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.
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. |
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.