next hop

Function

The next hop command specifies the next-hop address on an explicit path, allowing a path to be established along the nodes in the order in which they are configured.

The undo next hop command deletes a specified next-hop address on an explicit path.

By default, no next-hop address on an explicit path is specified.

Format

next hop ip-address [ include [ [ strict | loose ] | [ incoming | outgoing ] ] * | exclude ]

undo next hop ip-address

Parameters

Parameter Description Value
ip-address

IP address.

The value is in dotted decimal notation.

include

Specify included address.

-

strict

Strict ER-HOP.

-

loose

Loose ER-HOP.

-

incoming

Incoming interface.

-

outgoing

Outgoing interface.

-

exclude

Exclude the address.

-

Views

Explicit path view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

The next hop command is used to plan nodes for an explicit path.

Configuration Impact

The following commands are used to adjust nodes on an explicit path:

  • The modify hop command is used to change a node on the explicit path.
  • The delete hop command is used to delete a node from the explicit path.
  • The add hop command is used to add a node to the explicit path.

Follow-up Procedure

Run the display explicit-path command to view information about the explicit path.

Precautions

IP addresses configured using the next hop ip-address include command and the next hop ip-address exclude command must be different.

The include and strict parameters are used by default, meaning the tunnel must pass through a specified node.

If a loose next-hop IP address is specified in this command, configure incoming or outgoing, which prevents a failure to compute an expected explicit path.

Example

# Exclude the IP address of 10.0.0.125 from an MPLS TE explicit path.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] explicit-path p1
[*HUAWEI-explicit-path-p1] next hop 10.0.0.125 exclude
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >