redirect vsi

Function

The redirect vsi command redirects packets to a VSI.

The undo redirect vsi command cancels the VSI-based redirect configuration.

By default, no VSI-based redirection is configured in the traffic behavior view.

Format

redirect vsi vsi-name

undo redirect vsi [ vsi-name ]

Parameters

Parameter Description Value
vsi-name

Name of a VSI.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

A group of base stations access the Router through an interface. Multiple base stations' traffic passes through this interface and does not carry VLAN tags. Therefore, the traffic cannot be distinguished. To resolve this problem, apply a traffic policy to which a redirection traffic behavior has been bound to this interface to distinguish the traffic by using a quintuple, which consists of the source IP address, destination IP address, source port number, destination port number, and protocol number. Then redirect the traffic to different VSIs.

Prerequisites

A VSI for redirection has been created.

Precautions

You are advised to use the redirection function only in Layer 2 forwarding scenarios.

A traffic behavior has only one redirect configuration. To perform a new redirection configuration, delete the existing redirection configuration.

Redirecting traffic to a VSI takes effect only on an upstream interface.

The traffic that matches a specified quintuple is redirected to a VSI. If this VSI goes Down, the traffic is interrupted.

Example

# Redirect packets to vsi1 in the view of the traffic behavior b1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect vsi vsi1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >