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

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

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

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.

NOTE:

Only the S5720EI, S5720HI, S6720EI, and S6720S-EI support this command.

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 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 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.

Only the S5720HI supports the action of redirecting packets to a tunnel interface.

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 redirect-to-interface 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 interface, or a VLAN in the inbound direction.

The device supports only redirection to Layer 2 physical interfaces and Eth-Trunk interfaces.

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 GE0/0/1 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] redirect interface gigabitethernet 0/0/1
Related Topics
Translation
Download
Updated: 2019-10-21

Document ID: EDOC1000178165

Views: 48906

Downloads: 1171

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