< Home

modify hop

Function

The modify hop command modifies the IP address of a hop on an explicit path.

Format

modify hop ip-address1 ip-address2 [ include [ [ loose | strict ] | [ incoming | outgoing ] ] * | exclude ]

Parameters

Parameter Description Value
ip-address1 ip-address2 Changes ip-address1 to ip-address2 on an explicit path. The value is in dotted decimal notation.
include [ [ loose | strict ] | [ incoming | outgoing ] ] * Indicates that the explicit path must pass through the modified node on the explicit path.
  • strict: indicates the strict explicit path. The modified node must be directly connected to the previous node.
  • loose: indicates the loose explicit path. The modified node can be not directly connected to the previous node.
  • incoming: indicates that the ip-address2 is the IP address of an inbound interface of the modified node.
  • outgoing: indicates that the ip-address2 is the IP address of an outbound interface of the modified node.
By default, a node is added to an explicit path in include strict mode.
exclude Indicates that the LSP set up along an explicit path excludes the modified link or node. -

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

A next-hop IP address has been configured using the next hop command.

Follow-up Procedure

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

Precautions

A node can be modified on an explicit path using the modify hop command only when the following conditions are met:
  • ip-address2 must not be a next-hop IP address of an existing node 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

# Modify IP address of a node along the explicit path from 10.1.1.9 to 10.2.2.9.

<HUAWEI> system-view
[HUAWEI] explicit-path p1
[HUAWEI-explicit-path-p1] next hop 10.1.1.9
[HUAWEI-explicit-path-p1] modify hop 10.1.1.9 10.2.2.9
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >