tunnel ipv4-ipv6(Tunnel interface view)

Function

The tunnel ipv4-ipv6 flow-label command sets a flow label value.

The tunnel ipv4-ipv6 encapsulation-limit command configures the maximum number of IPv6 encapsulations that can be performed on embedded tunnel nodes.

The tunnel ipv4-ipv6 traffic-class command sets a traffic class value for an IPv4 over IPv6 tunnel.

The tunnel ipv4-ipv6 hop-limit command sets a hop limit for IPv6 packets.

The undo tunnel ipv4-ipv6 flow-label command restores the default value.

The undo tunnel ipv4-ipv6 encapsulation-limit command deletes the maximum number of IPv6 encapsulations that can be performed on embedded tunnel nodes.

The undo tunnel ipv4-ipv6 traffic-class command restores the default setting.

The undo tunnel ipv4-ipv6 hop-limit command restores the default setting.

By default, a maximum of four IPv6 encapsulations can be performed on embedded tunnel nodes, the flow label value is set to 0, the hop limit is set to 64, the traffic class value of an IPv4 over IPv6 tunnel is set to 0.

Format

tunnel ipv4-ipv6 encapsulation-limit encapsulation-limit

tunnel ipv4-ipv6 flow-label label-value

tunnel ipv4-ipv6 hop-limit hop-limit

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

undo tunnel ipv4-ipv6 encapsulation-limit

undo tunnel ipv4-ipv6 flow-label

undo tunnel ipv4-ipv6 hop-limit

undo tunnel ipv4-ipv6 traffic-class

Parameters

Parameter Description Value
encapsulation-limit encapsulation-limit

Specifies the maximum number of IPv6 encapsulations that can be performed on embedded tunnel nodes.

The value is an integer ranging from 0 to 255.

flow-label label-value

Specifies a flow label value.

The value is an integer ranging from 0 to 1048575.

hop-limit hop-limit

Specifies a hop limit for IPv6 packets.

The value is an integer ranging from 1 to 255.

traffic-class class-value

Specifies the traffic class value of an IPv4 over IPv6 tunnel.

The value is an integer ranging from 0 to 255.

original

Indicates that the traffic class value of an IPv4 over IPv6 tunnel is set to that carried in the Traffic Class field of the original packet.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tunnel6 write

Usage Guidelines

Usage Scenario

An IPv6 tunnel packet can be encapsulated and carried as payload within an IPv6 packet of another tunnel, which is called IPv6 nested encapsulation. Nested encapsulation occurs when an intermediate node of an IPv6 tunnel is an ingress node of another IPv6 tunnel. If an IPv6 packet undergoes excessive nested encapsulations, the packet will be oversized and discarded. Therefore, when a Huawei device interworks with devices of other vendors, run the tunnel ipv4-ipv6 encapsulation-limit command to configure the maximum number of IPv6 encapsulations that can be performed on embedded tunnel nodes. You are advised to set the encapsulation-limit parameter to a value that is not larger than 4.

To allow a device to recognize and provide special processing for packets in a flow, run the tunnel ipv4-ipv6 flow-label command to mark the packets of a specific service flow.

To rapidly terminate packet transmission when routing loops occur on an IPv4 over IPv6 tunnel, run the tunnel ipv4-ipv6 hop-limit command to set a hop limit for IPv6 packets. To allow IPv6 tunnel packets to reach the egress of the tunnel, you need to set the hop limit based on the actual network topology.

The traffic class value of IPv4 over IPv6 tunnel packets refers to the value that a tunnel ingress node sets in the Traffic Class field of a tunnel header to identify the service types of IPv6 packets. The Traffic Class field functions in the same way as the ToS field in IPv4 packets. To set the traffic class value for an IPv4 over IPv6 tunnel, run the tunnel ipv4-ipv6 traffic-class command.

Prerequisites

The tunnel encapsulation mode has been set to IPv4 over IPv6 using the tunnel-protocol ipv4-ipv6 command.

Precautions

An IPv6 tunnel packet can be encapsulated and carried as payload within an IPv6 packet of another tunnel, which is called IPv6 nested encapsulation. Nested encapsulation occurs when an intermediate node of an IPv6 tunnel is an ingress node of another IPv6 tunnel.

If an IPv6 packet undergoes excessive nested encapsulations, the packet will be oversized and discarded.

Therefore, when a Huawei device interworks with devices of other vendors, run the tunnel ipv4-ipv6 encapsulation-limit command to configure the maximum number of IPv6 encapsulations that can be performed on embedded tunnel nodes. You are advised to set the encapsulation-limit parameter to a value that is not larger than 4.

Example

# Set the traffic class value to 10 for the IPv4 over IPv6 tunnel.
<HUAWEI> system-view
[~HUAWEI] interface tunnel1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] tunnel ipv4-ipv6 traffic-class 10
# Configure the maximum number of IPv6 encapsulations that can be performed on embedded tunnel nodes of an IPv4 over IPv6 tunnel as three.
<HUAWEI> system-view
[~HUAWEI] interface tunnel1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] tunnel ipv4-ipv6 encapsulation-limit 3
# Set the hop limit to 100 for the IPv4 over IPv6 tunnel.
<HUAWEI> system-view
[~HUAWEI] interface tunnel1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] tunnel ipv4-ipv6 hop-limit 100
# Set the flow label value to 10 for the IPv4 over IPv6 tunnel.
<HUAWEI> system-view
[~HUAWEI] interface tunnel1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] tunnel ipv4-ipv6 flow-label 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic