add hop ip-address1 [ include [ [ loose | strict ] | [ incoming | outgoing ] ] * | exclude ] { after | before } ip-address2
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.
|
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. |
Usage Scenario
The following commands are used to adjust nodes on a created 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
# 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