The add hop command adds a specified node to an MPLS TE explicit path.
By default, no node is add to an explicit path.
add hop ip-address1 [ exclude | include [ [ strict | loose ] | [ incoming | outgoing ] ] * ] { after | before } ip-address2
add hop ip-address1 [ exclude | include [ [ strict | loose ] | [ incoming | outgoing ] ] * ] { after | before } { hop ip-address2 | index indexValue | sid label contrastLabel index indexValue }
Parameter | Description | Value |
---|---|---|
ip-address1 |
Specifies an IPv4 address. If the strict mode is configured for the next hop, specify an interface address. |
The value is in dotted decimal notation. |
exclude |
Excludes the ip-address1 node from an explicit path. |
- |
include |
Includes the ip-address1 node on an explicit path. |
- |
strict |
Indicates the strict explicit path. The added ip-address1 node and the ip-address2 node must be directly connected. |
- |
loose |
Indicates the loose explicit path. The ip-address1 node and the ip-address2 node can be directly or indirectly connected. |
- |
incoming |
Indicates the inbound interface. |
- |
outgoing |
Indicates the outbound interface. |
- |
after |
Adds the ip-address1 node after the node ip-address2 node. |
- |
before |
Adds the ip-address1 node before the ip-address2 node. |
- |
ip-address2 |
Hop ip address. |
The value is in dotted decimal notation. |
index indexValue |
Index value. |
The value is an integer ranging from 1 to 96. |
sid |
SID value. |
- |
label contrastLabel |
Label value. |
The value is an integer ranging from 16 to 1048575. |
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls te [*HUAWEI-mpls] quit [*HUAWEI] explicit-path p1 [*HUAWEI-explicit-path-p1] next hop 10.3.10.5 [*HUAWEI-explicit-path-p1] add hop 10.3.29.3 include after 10.3.10.5