modify hop

Function

The modify hop command is used to modify an existing hop in an explicit path.

By default, no node is modified in an explicit path.

Format

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

modify hop ip-address1 to { hop ip-address2 [ exclude | include [ [ strict | loose ] | [ incoming | outgoing ] ] * ] | sid label label-value type { adjacency | prefix } }

Parameters

Parameter Description Value
ip-address1

Specifies the hop ip address.

The value is in dotted decimal notation.

ip-address2

Specifies the IPv4 address, if configure next hop as strict mode, please specify interface address.

The value is in dotted decimal notation.

exclude

Prevents a CR-LSP set up on an explicit path from passing through a specified link or node.

-

include

Requires a CR-LSP set up on an explicit path to pass through a specified link or node.

-

strict

Indicates the strict explicit path, requiring a specified node to be connected directly to its previous hop.

-

loose

Indicates the loose explicit path, allowing a specified node to be connected indirectly to its previous hop.

-

incoming

Indicates the inbound interface.

-

outgoing

Indicates the outbound interface.

-

to

Specifies a range.

-

sid

SID value.

-

label label-value

Specifies the label value.

The value is an integer ranging from 16 to 1048575.

type

Specifies the type of segment identifier.

-

adjacency

Specifies the Adjacency SID.

-

prefix

Specifies the Prefix SID.

-

Views

Explicit path view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

Usage Scenario

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

Precautions

When you run this command to modify an existing hop in an explicit path, the IP address of another hop that already exists in the explicit path cannot be used.

Binding SID label type cannot be mixed with the IP type. When the IP address is changed to the SID type, the number of hops of the SID type cannot exceed 10. In addition, ensure that the RSVP-TE Tunnel interface on the local device uses the explicit path and cannot be changed to the label type.

Example

# Change a node with the IP address of 10.0.0.125 to another node with the IP address of 10.0.0.200.
<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
[*HUAWEI-explicit-path-p1] modify hop 10.0.0.125 10.0.0.200 exclude
# Change the IP address 10.0.0.125 in the MPLS TE explicit path to the prefix label type whose label value is 123.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] explicit-path p1
[*HUAWEI-explicit-path-p1] modify hop 10.0.0.125 to sid label 123 type prefix
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >