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.
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. |
- |
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.<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
<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