< Home

add hop

Function

The add hop command adds a specified node on an MPLS TE explicit path.

Format

add hop ip-address1 [ include [ [ loose | strict ] | [ incoming | outgoing ] ] * | exclude ] { after | before } ip-address2

Parameters

Parameter Description Value
ip-address1 Specifies the IP address of the added node. The value is in dotted decimal notation.
include [ [ loose | strict ] | [ incoming | outgoing ] ] * Specifies the node with an IP address ip-address1 on the explicit path.
  • strict: indicates that the node is added in strict mode. The node of ip-address1 is directly connected to the node of ip-address2.
  • loose: indicates that the node is added in loose mode. The node of ip-address1 may not be directly connected to the node of ip-address2.
  • incoming: indicates that the ip-address1 is the IP address of an inbound interface of a new-added node.
  • outgoing: indicates that the ip-address1 is the IP address of an outbound interface of a new-added node.
By default, an explicit path is added in include strict mode.
exclude Excludes the node of ip-address1 from the explicit path. -
after Indicates that the node of ip-address1 is added after the node of ip-address2. -
before Indicates that the node of ip-address1 is added before the node of ip-address2. -
ip-address2 Specifies the IP address of an interface or the Router ID of a node on the explicit path. The value is in dotted decimal notation.

Views

Explicit path view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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

  • The add hop command is used to add a node to the explicit path.
  • The modify hop command is used to delete a node from the explicit path and replace the node with a specified node.
  • The delete hop command is used to delete a node from the explicit path.

Prerequisites

The next hop command must have been run to specify a next-hop IP address before the add hop command is run.

Follow-up Procedure

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

Precautions

A node can be added to an explicit path using the add hop command only when the following conditions are met:
  • ip-address2 is the IP address of a node that exists on the explicit path.
  • If an explicit path over which a TE tunnel has been established is modified, the make-before-break mechanism is triggered, and a CR-LSP is reestablished without traffic loss.

Example

# Exclude the next hop of 10.2.2.2 after 10.1.1.1 from the explicit path named p1.

<HUAWEI> system-view
[HUAWEI] mpls
[HUAWEI-mpls] mpls te
[HUAWEI-mpls] quit
[HUAWEI] explicit-path p1
[HUAWEI-explicit-path-p1] next hop 10.1.1.1
[HUAWEI-explicit-path-p1] add hop 10.2.2.2 exclude after 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >