< Home

tunnel ipv4-ipv6 traffic-class

Function

The tunnel ipv4-ipv6 traffic-class command sets the traffic level of the IPv4 over IPv6 tunnel.

The undo tunnel ipv4-ipv6 traffic-class command restores the traffic level to the default value.

By default, the traffic level of the IPv4 over IPv6 tunnel is 0.

Format

tunnel ipv4-ipv6 traffic-class { original | class-value }

undo tunnel ipv4-ipv6 traffic-class

Parameters

Parameter Description Value
original Indicates that the value of the Traffic Class field in the IPv6 field of the IPv4 over IPv6 tunnel header uses the value in Traffic Class field of the original packet. -
class-value Specifies the traffic level of the IPv4 over IPv6 tunnel. The value is an integer that ranges from 0 to 255.

Views

Tunnel interface view, system view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The traffic level of the IPv4 over IPv6 tunnel packets refers to the value of the traffic class field in the tunnel packet header of the ingress on the tunnel.

  • If this command is configured in the tunnel interface view, it takes effect only on the current tunnel interface.

  • If this command is configured in the system view, it takes effect only on the mobile IPv6 network.

Prerequisites

Before running the tunnel ipv4-ipv6 traffic-class command in the tunnel interface view, run the tunnel-protocol ipv4-ipv6 command in the same view to set the tunnel mode to the IPv4 over IPv6 manual tunnel.

Precautions

The configuration in the system view and the configuration in the tunnel interface view are independent of each other.

Example

# Set the traffic level of the specified IPv4 over IPv6 tunnel to 10.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[HUAWEI-Tunnel1] tunnel ipv4-ipv6 traffic-class 10

# Set the traffic level of all the IPv4 over IPv6 tunnels on the local device to 10.

<HUAWEI> system-view
[HUAWEI] tunnel ipv4-ipv6 traffic-class 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic