redirect lsp public

Function

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.

Format

redirect lsp public dest-ipv4-address [ nexthop-address | interface { interface-name | interface-type interface-number } | secondary ]

undo redirect [ lsp public ]

Parameters

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.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

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.

Example

# Redirect the data traffic to the specified LSP with the destination address being 3.3.3.3 and the outbound interface being GE 0/1/8.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect lsp public 3.3.3.3 interface GigabitEthernet 0/1/8
# Redirect the data traffic to the specified LSP with the destination address being 2.2.2.2.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect lsp public 2.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >