The redirect lsp public command redirects the IP data traffic to the destination LSP on the public network and forward the traffic on the MPLS network.
The undo redirect command cancels the configuration.
By default, the configuration of redirecting the IP data traffic to the destination LSP on the public network is not configured in traffic behavior view.
Parameter | Description | Value |
---|---|---|
dest-ipv4-address |
Specifies the address of the destination LSP. |
The value is an IPv4 address in dotted decimal notation (X.X.X.X), for example, 10.1.1.1. The mask length of this address must be 32 bits. |
nexthop-address |
Specifies the next hop address of the redirected destination LSP. |
The value is an IPv4 address in dotted decimal notation (X.X.X.X), for example, 10.1.1.1. |
interface |
Interface. |
- |
interface-type |
Specifies the type of an interface. |
- |
interface-number |
Specifies the number of an interface. |
- |
secondary |
Indicates that the redirected destination LSP is a backup LSP. |
- |
Usage Scenario
You can run this command to redirect the IP data traffic to the destination LSP on the public network and forward the traffic on the MPLS network.
Prerequisites
The traffic behavior is configured.
Precautions
The mask length of the IP address of the destination LSP must be 32 bits. This command can be run only on the ingress on the MPLS network. This command is forbidden on other nodes such as the transit and egress nodes. A traffic policy containing redirecting actions can be applied to only the inbound direction of an interface.
Before running this command, check whether the corresponding LSP exists.<HUAWEI> system-view [~HUAWEI] traffic behavior b1 [*HUAWEI-behavior-b1] redirect lsp public 3.3.3.3 interface GigabitEthernet 0/1/8
<HUAWEI> system-view [~HUAWEI] traffic behavior b1 [*HUAWEI-behavior-b1] redirect lsp public 2.2.2.2