< 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 on embedded nodes of the IPv4 over IPv6 tunnel after an IPv4 packet is encapsulated the first time.

The undo tunnel ipv4-ipv6 encapsulation-limit command closes the function of IPv6 encapsulation on embedded nodes of the IPv4 over IPv6 tunnel.

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

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 nodes of the IPv4 over IPv6 tunnel. The value is an integer that ranges from 0 to 255.

Views

System view, tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The maximum number of times that IPv6 encapsulation can be performed on embedded nodes of the IPv4 over IPv6 tunnel is the value of the tunnel encapsulation limit option carried in the destination option extension header in the IPv6 tunnel header.

  • 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 encapsulation-limit 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.

When Huawei devices communicate with non-Huawei devices, you must run the undo tunnel ipv4-ipv6 encapsulation-limit command to restore the maximum number of times that IPv6 encapsulation on embedded nodes of the IPv4 over IPv6 tunnel can be performed after an IPv4 packet is encapsulated the first time to the default value.

Example

# Set the maximum number of times of IPv6 encapsulation to be performed on the embedded nodes of the specified IPv4 over IPv6 tunnel to 3.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[HUAWEI-Tunnel1] tunnel ipv4-ipv6 encapsulation-limit 3

# Set the maximum number of times of IPv6 encapsulation to be performed on the embedded nodes of all specified IPv4 over IPv6 tunnels to 3 on the local device.

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