redirect ipv6 to interface

Function

The redirect ipv6 to interface command specifies the outbound interface for IPv6 packet redirection.

The undo redirect ipv6 to interface command deletes the configuration of redirecting IPv6 packets to an outbound interface.

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

Format

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

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

undo ipv6 redirect

Parameters

Parameter Description Value
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.

-

interface interface-type interface-number

Specifies the type and number of an interface.

-

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 Ipv6 traffic to a desired next hop outbound interface instead of forwarding the traffic through a normal path.

Prerequisites

A traffic behavior profile has been created.

Configuration Impact

After redirection to an interface is configured in the traffic behavior in a traffic policy and the traffic policy is applied to an interface, IPv6 traffic matching the traffic classifier in the traffic policy is redirected.

Precautions

The outbound interface can be a GE interface, GE sub-interface, Eth-Trunk main interface or sub-interface.

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

The redirect ipv6 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.

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 ipv6 to interface GigabitEthernet 0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >