nexthop
Use nexthop to add or modify a node in an explicit path, and configure the attributes of the node.
Use undo nexthop to delete a node in an explicit path.
Syntax
nexthop [ index index-number ] ip-address [ exclude | include [ loose | strict ] ]
undo nexthop index index-number
Default
An explicit path does not include any nodes.
Views
Explicit path view
Predefined user roles
network-admin
Parameters
index index-number: Specifies an index for the node in the explicit path, in the range of 1 to 65535. If you do not specify an index, MPLS TE automatically calculates an index for the node, the value of which is the current maximum index value plus 100.
ip-address: Specifies a node by its IP address in dotted decimal notation.
exclude: Excludes the specified node from the explicit path.
include: Includes the specified node on the explicit path.
loose: Specifies the node as a loose node, which means the specified node and its previous hop can be indirectly connected.
strict: Specifies the node as a strict node, which means the node and its previous hop must be directly connected.
Usage guidelines
The IP address specified in this command can be one of the following:
Link IP address—IP address of an interface on the device, identifying a link.
Device LSR ID—Identifies the device.
The address of a strict node must be a link IP address. The address of a loose node can be a link IP address or the device LSR ID.
CSPF excludes the links or devices specified by exclude from path calculation, and uses the links specified by include in ascending order of indexes to establish a CRLSP.
When you execute the nexthop command, follow these guidelines:
If you specify an existing index, the command modifies the IP address or attribute of the node identified by that index.
If you specify neither include nor exclude, the include keyword is used by default.
If you specify neither loose nor strict, the strict keyword is used by default.
Examples
# Exclude IP address 10.0.0.125 from MPLS TE explicit path path1.
<Sysname> system-view [Sysname] explicit-path path1 [Sysname-explicit-path-path1] next-hop 10.0.0.125 exclude
Related commands
display explicit-path