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

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

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

redirect cpu

Function

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

The undo redirect cpu 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 [ cpu ]

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 cannot be used in the outbound direction.

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 interface command deletes the redirection configuration.

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

Format

redirect interface interface-type interface-number [ fail-action forward ]

undo redirect [ interface interface-type interface-number [ fail-action forward ] ]

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.

-

fail-action forward

Indicates that packets are forwarded according to the original forwarding process when the redirect-to interface becomes Down.

-

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 cannot be used in the outbound direction.

  • For CE6870EI switches, if the traffic policy containing redirection is applied on a Layer 2 Ethernet interface, only Layer 2 packets can be redirected. If the traffic policy containing redirection is applied on a VLANIF interface, Layer 2 and Layer 3 packets can be redirected. A traffic policy containing redirection can be applied to a Layer 3 physical interface, but does not take effect.

  • For CE6870EI switches, generally, when a Layer 2 packet is redirected to the outbound interface, the VLAN ID of the Layer 2 packet needs to be configured on the outbound interface to ensure that the packet can be forwarded.

Example

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

<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect interface 10ge 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.

NOTE:

Only the CE6870EI supports this command.

Format

redirect lsp public dest-address

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.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

The traffic policy that contains the redirection action cannot be used in the outbound direction.

Example

# Redirect data flows to a specified LSP with the destination address as 192.168.1.10.

<HUAWEI> system view
[~HUAWEI] traffic behavior tb1
[*HUAWEI-behavior-tb1] redirect lsp public 192.168.1.10
Related Topics

redirect observe-port group

Function

The redirect observe-port group command configures an action of redirecting packets to an observing interface group in a traffic behavior.

The undo redirect observe-port group command deletes the redirection configuration.

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

NOTE:

Only the CE6870EI supports this command.

Format

redirect observe-port group group-id

undo redirect [ observe-port group group-id ]

Parameters

Parameter

Description

Value

group-id

Specifies the ID of an observing interface group to which packets are redirected.

The value is an integer that ranges from 1 to 128.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can add interfaces of access servers or firewalls to an observing interface group and run this command to redirect packets to the observing interface group. This simplifies configurations. This action takes effect for only packets forwarded at Layer 2.

Prerequisites

An observing interface group has been created using the observe-port group command.

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 cannot be used in the outbound direction.

This action takes effect for only packets forwarded at Layer 2.

When packets are redirected to the observing interface group, the observing interface does not check the packets and directly redirects them.

Example

# Configures an action of redirecting packets to observing interface group 1 in the traffic behavior b1.

<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect observe-port group 1
Related Topics

redirect interface tunnel

Function

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

The undo redirect interface tunnel command deletes an action of redirecting packets to a GRE tunnel interface in a traffic behavior.

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

NOTE:

The CE6880EI does not support this command.

Format

redirect interface tunnel tunnel-id [ fail-action forward ]

undo redirect [ interface tunnel tunnel-id [ fail-action forward ] ]

Parameters

Parameter

Description

Value

tunnel-id

Specifies the ID of a GRE tunnel interface where packets will be redirected.

The value must be the number a tunnel interface that has been created.

fail-action forward

Indicates that packets are forwarded according to the original forwarding process when the redirect-to interface becomes Down.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the redirect interface tunnel command to configure the device to redirect packets to a GRE tunnel interface so that packets can be transparently transmitted through a GRE tunnel.

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.

Precautions

The traffic policy that contains the redirection action cannot be used in the outbound direction.

Example

# Configure an action of redirecting packets to GRE tunnel 11 in the traffic behavior b1.

<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect interface tunnel 11
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 70577

Downloads: 376

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