< Home

tunnel ipv4-ipv6 encapsulation-limit

Function

The tunnel ipv4-ipv6 encapsulation-limit command configures the maximum number of times that IPv6 encapsulation can be performed.

The undo tunnel ipv4-ipv6 encapsulation-limit command restores the maximum number of times that IPv6 encapsulation can be performed to the default value.

By default, a maximum of four times of IPv6 encapsulation can be performed on embedded tunnel nodes.

Format

tunnel ipv4-ipv6 encapsulation-limit encapsulation-limit

undo tunnel ipv4-ipv6 encapsulation-limit

Parameters

Parameter Description Value
encapsulation-limit Specifies the maximum number of times for performing IPv6 encapsulation on embedded tunnel nodes. The value is an integer ranging from 0 to 255.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

The tunnel encapsulation limit is the value of the tunnel encapsulation limit option carried in the destination option extension header in the IPv6 tunnel header.

Before running the tunnel ipv4-ipv6 encapsulation-limit command in the tunnel interface view, you need to run the tunnel-protocol ipv4-ipv6 command in the tunnel interface view to configure the tunnel mode as the IPv4 over IPv6 manual tunnel mode.

When Huawei devices communicate with the non-Huawei devices, you must run the undo tunnel ipv4-ipv6 encapsulation-limit command to cancel the restriction on the number of times for performing IPv6 encapsulation.

Example

# Allow a maximum of three times of IPv6 encapsulation to be performed on the embedded tunnel nodes of the specified IPv4 over IPv6 tunnel.

<sysname> system-view
[sysname] interface tunnel1
[sysname-Tunnel1] tunnel-protocol ipv4-ipv6
[sysname-Tunnel1] tunnel ipv4-ipv6 encapsulation-limit 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >