< Home

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.

The S5735-L, S5735-S, S5735-S-I, S5735S-L, S5735S-L-M, and S5735S-L-M do not support this command.

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 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic