ipv6-prefix

Function

The ipv6-prefix command configures a 6RD prefix and an IPv6 prefix length for a 6RD tunnel.

The undo ipv6-prefix command deletes the 6RD prefix and IPv6 prefix length of a 6RD tunnel.

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

Format

ipv6-prefix { ipv6-address prefix-length | ipv6-prefix-mask }

undo ipv6-prefix { ipv6-address prefix-length | ipv6-prefix-mask }

Parameters

Parameter Description Value
ipv6-address

Specifies a IPv6 prefix.

The address is a 32-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

prefix-length

Specifies the prefix length of an IPv6 address.

The value is an integer ranging from 1 to 64.

ipv6-prefix-mask

Specifies a 6RD prefix.

IPv6 address /IPv6 address prefix length.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tunnel6 write

Usage Guidelines

Usage Scenario

A 6RD prefix is the IPv6 prefix assigned by a carrier for a 6RD address. The 6RD delegated prefix is calculated by combining the 6RD prefix and part or all bits of an IPv4 address. The 6RD delegated prefix is used to assign IPv6 address prefixes to devices or hosts in a 6RD domain.

To configure the 6RD prefix of a 6RD tunnel, run the ipv6-prefix command.

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

# Configure the 6RD prefix and prefix length of the 6RD tunnel as 2001:db8::2 32.
<HUAWEI> system-view
[~HUAWEI] interface tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4 6rd
[*HUAWEI-Tunnel1] ipv6-prefix 2001:db8::2 32
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >