ipv4-prefix length

Function

The ipv4-prefix length command configures an IPv4 prefix length for a 6RD tunnel.

The undo ipv4-prefix length command deletes the IPv4 prefix length of a 6RD tunnel.

By default, no IPv4 prefix length is configured for a 6RD tunnel.

Format

ipv4-prefix length ipv4-prefix-length

undo ipv4-prefix length

Parameters

Parameter Description Value
ipv4-prefix-length

Specifies the length of a 6RD prefix.

The value is an integer ranging from 0 to 32.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tunnel6 write

Usage Guidelines

Usage Scenario

To configure the IPv4 prefix length of a 6RD tunnel, run the ipv4-prefix length command. The length indicates the number of high-order bits to be deleted from the source tunnel address (an IPv4 address). The remaining bits of the IPv4 address and the 6RD prefix together form the 6RD delegated prefix.

Prerequisites

The tunnel encapsulation mode has been set to 6RD using the tunnel-protocol ipv6-ipv4 6rd command.

Precautions

A 6RD delegated prefix is composed of a 6RD prefix and part or all bits of the source tunnel (IPv4) address, with a length not exceeding 64 bits.

Example

# Set the IPv4 prefix length of the 6RD tunnel to 8.
<HUAWEI> system-view
[~HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4 6rd
[*HUAWEI-Tunnel1] ipv4-prefix length 8
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >