redirect to interface

Function

The redirect to interface command configures an outbound interface for redirection.

The undo redirect to interface command deletes the configuration of redirecting traffic to an outbound interface.

By default, no outbound interface is configured for redirection in the traffic behavior view.

Format

redirect to interface { interface-name | interface-type interface-number } [ route-forward ]

undo redirect to interface [ { interface-name | interface-type interface-number } [ route-forward ] ]

Parameters

Parameter Description Value
interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

route-forward

Indicates that packets are forwarded based on the normal process if all next hop interfaces configured in a discard PBR policy are Down.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

Redirection is deployed in the scenario where users need to forward specific traffic to a desired next hop outbound interface instead of forwarding the traffic through a normal path. The outbound interface can be a GE interface, GE sub-interface, Eth-trunk main interface or sub-interface, VLANIF interface, BDIF interface. The redirect to interface command applies only to the directly-connected traffic forwarding scenario, that is, the scenario where a direct route is available on the outbound interface for redirection to reach the destination IP address of packets.

Precautions

A traffic behavior can have only one redirect configuration. Before configuring a new redirect configuration, delete the existing redirect configuration.

Redirecting traffic to an outbound interface takes effect only on an upstream interface.

Example

# Redirect packets to the outbound interface GE 0/1/0 in the view of traffic behavior b1.
<HUAWEI> system-view
[~HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect to interface GigabitEthernet 0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >