No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Redirection Configuration Commands

Redirection Configuration Commands

NOTE:

The XGE interface connected to the ET1D2IPS0S00, ET1D2FW00S00, ET1D2FW00S01, ET1D2FW00S02, or ACU2 card does not support redirection to multiple Eth-Trunks.

Command Support

Commands provided in this section and all the parameters in the commands are supported by all switch models by default, unless otherwise specified. For details, see specific commands.

redirect cpu

Function

The redirect cpu command configures an action of redirecting packets to the CPU in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, an action of redirecting packets to the CPU is not configured in a traffic behavior.

Format

redirect cpu

undo redirect

Parameters

None

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to the CPU.

Precautions

The traffic policy that contains the redirection action can only be applied to the system, an LPU, an interface, or a VLAN.

After the traffic policy containing redirect cpu is used, the traffic matching the traffic classification rule is redirected to the CPU, causing CPU performance to deteriorate. Exercise caution when you run the redirect cpu command.

Example

# Redirect packets to the CPU of the LPU in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] redirect cpu
Related Topics

redirect interface

Function

The redirect interface command configures an action of redirecting packets to an interface in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, no action of redirecting packets to an interface is configured in a traffic behavior.

Format

redirect interface interface-type interface-number [ forced ]

undo redirect

NOTE:

Tunnel interfaces do not support forced.

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the interface to which packets are redirected.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

forced

Directly discards packets when the interface is in Down state.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The redirect interface command configures an action of redirecting packets to an interface in a traffic behavior. For example, packets can be redirected to a firewall for security check.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to an interface.

Precautions

The traffic policy that contains the redirection action can only be applied to the system, an LPU, an interface, or a VLAN in the inbound direction.

For X series cards, packets can be redirected to Layer 2 or Layer 3 physical interfaces and Eth-Trunk interfaces, but cannot be redirected from Layer 3 routed main interfaces to Layer 2 physical interfaces or Eth-Trunk interfaces. For other cards, packets can only be redirected to Layer 2 physical interfaces and Eth-Trunk interfaces.

You can use the redirect interface command to redirect packets to a tunnel interface so that the packets are transmitted over a GRE tunnel. Before using the redirect interface command, ensure that the tunnel interface encapsulation mode has been set to GRE.

The packets that are redirected to an interface will be discarded if the VLAN of the packets on the interface is not allowed.

Example

# Redirect packets to GE1/0/1 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] redirect interface gigabitethernet 1/0/1
Related Topics

redirect lsp

Function

The redirect lsp command configures an action of redirecting IP packets to a public LSP in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, an action of redirecting packets to a public LSP is not configured in a traffic behavior.

Format

redirect lsp public dest-address { nexthop-address | interface interface-type interface-number | secondary }

undo redirect

Parameters

Parameter

Description

Value

dest-address

Specifies the next hop address of the destination LSP to which packets are redirected. The address must use 32-bit mask.

The value is in dotted decimal notation and in X.X.X.X format.

nexthop-address

Specifies the next hop address of the destination LSP to which packets are redirected.

The value is in dotted decimal notation and in X.X.X.X format.

interface interface-type interface-number

Specifies the type and number of the outbound interface of the destination LSP to which packets are redirected.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

secondary

Specifies the backup link of the destination LSP to which packets are redirected.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

A traffic policy containing the redirection action can be only used globally, on an LPU, on an interface, or in a VLAN in the inbound direction.

The ET1D2X12SSA0 card does not support the redirect lsp command. If a traffic policy containing redirection to a public LSP is applied to a card, the system displays the following message:
Processing...
 Error: on slot x redirect lsp cannot be supported when inbound.
 Error: Failed to apply this policy.
 slot x failed.

x indicates the slot ID of the card.

The redirect lsp command can be only used on the ingress node but not egress and transit nodes.

If you run the redirect lsp command in the same traffic classifier view multiple times, only the latest configuration takes effect.

Example

# Redirect data flows to a specified LSP with the destination address as 192.168.1.10 and the outbound interface as VLANIF 10.

<HUAWEI> system view
[HUAWEI] traffic behavior tb1
[HUAWEI-behavior-tb1] redirect lsp public 192.168.1.10 interface vlanif 10
Related Topics

redirect multi-trunk

Function

The redirect multi-trunk command configures an action of redirecting packets to multiple Eth-Trunks in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, an action of redirecting packets to multiple Eth-Trunks is not configured in a traffic behavior.

NOTE:

SA series cards and X series cards do not support this command.

Format

redirect multi-trunk { eth-trunk trunk-id } &<1-4>

undo redirect

Parameters

Parameter

Description

Value

eth-trunk trunk-id

Specifies the ID of an Eth-Trunk.

The Eth-Trunk ID must already exist.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During traffic classification, traffic can be load balanced by redirecting packets matching traffic classification rules to one or more Eth-Trunks. If the inbound interface is a high-speed interface (for example, XGE interface) but the outbound interface is a low-speed interface (for example, GE interface), packets need to be redirected to physical interfaces of multiple Eth-Trunks so that traffic is load balanced and packet loss is prevented.

Precautions

Packets can be redirected to a maximum 32 physical interfaces. The traffic policy containing the redirection action can be only applied to the system, LPU, interface, or VLAN in the inbound direction.

To redirect packets to 32 interfaces of Eth-Trunks, you must restart all the LPUs after running the redirect multi-trunk command.

Example

# Redirect the traffic received from GE 1/0/1 to four created Eth-Trunks in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic classifier c1
[HUAWEI-classifier-c1] if-match any
[HUAWEI-classifier-c1] quit
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] redirect multi-trunk eth-trunk 0 eth-trunk 1 eth-trunk 2 eth-trunk 3
[HUAWEI-behavior-b1] quit
[HUAWEI] traffic policy p1
[HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[HUAWEI-trafficpolicy-p1] quit
[HUAWEI] interface gigabitethernet 1/0/1
[HUAWEI-GigabitEthernet1/0/1] traffic-policy p1 inbound
Related Topics

redirect vpn-instance

Function

The redirect vpn-instance command configures an action of redirecting packets to a VPN instance in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, no action of redirecting packets to a VPN instance is configured in a traffic behavior.

Format

redirect vpn-instance vpn-instance-name

undo redirect

Parameters

Parameter

Description

Value

vpn-instance-name

Specifies the VPN instance to which packets are redirected.

The value must be an existing VPN instance name.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The redirect vpn-instance command configures an action of redirecting packets to a VPN instance in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to an interface.

Precautions

The traffic policy that contains the redirection action can only be applied to the system, an LPU, an interface, or a VLAN in the inbound direction.

Example

# Redirect packets to the VPN instance named vpn1 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] redirect vpn-instance vpn1
Related Topics
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 122972

Downloads: 88

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next