destination(tunnel interface view)

Function

The destination command configures a destination IPv6 address or domain-name for an IPv4 over IPv6 tunnel interface.

The undo destination command deletes a destination IPv6 address or domain-name for an IPv4 over IPv6 tunnel interface.

By default, no destination IPv6 address or domain name is configured for an IPv4 over IPv6 tunnel interface.

Format

destination [ vpn-instance vpn-instance-name ] ipv6-address

destination [ vpn-instance vpn-instance-name ] domain domain-name

undo destination

undo destination [ vpn-instance vpn-instance-name ] ipv6-address

undo destination [ vpn-instance vpn-instance-name ] domain domain-name

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Specifies the name of a VPN instance to which the destination IPv6 address of a tunnel belongs. This parameter can be specified only when the encapsulation mode is IPv4 over IPv6.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

ipv6-address

Specifies a destination IPv6 address.

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

domain domain-name

Specifies the destination domain name.

The value is a string of 1 to 255 case-sensitive characters, spaces not supported.

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tunnel6 write

Usage Guidelines

Usage Scenario

When configuring an IPv4 over IPv6 tunnel, you need to create a tunnel interface and run the destination command to configure a destination IPv6 address or domain name for the tunnel interface.

Prerequisites

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

IPv6 address families have been enabled for the VPN instance to which the configured destination IPv6 address or domain name belongs.

Precautions

When an IPv6 destination address is used, the source and destination addresses cannot be the same for two or more tunnel interfaces that use the same encapsulation protocol. If the destination is a domain name, the device does not check whether tunnel interfaces have the same source and destination.

The destination IPv6 address specified for the tunnel interface at one end of an IPv4 over IPv6 tunnel is the IPv6 address of the interface that receives packets on the other end of the tunnel. This address must be the same as the source address specified for the tunnel interface on the other end of the tunnel. In addition, you must ensure that the route to the interface that receives packets on the other end of the tunnel is reachable.

Example

# Configure an IPv4 over IPv6 tunnel interface named Tunnel 1 and specify the destination domain name as host2 in vpn1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] destination vpn-instance vpn1 domain host2
# Configure an IPv4 over IPv6 tunnel interface named Tunnel 1 and specify the destination domain name for the tunnel interface as host1.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] destination domain host1
# Configure an IPv4 over IPv6 tunnel interface named Tunnel 1 and specify the destination IPv6 address for the tunnel interface as 2001:db8:300::2.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] destination 2001:db8:300::2
# Configure an IPv4 over IPv6 tunnel interface named Tunnel 1 and specify the destination IPv6 address as 2001:db8:300::2 in vpn1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv6-family
[*HUAWEI-vpn-instance-vpn1-af-ipv6] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6
[*HUAWEI-Tunnel1] destination vpn-instance vpn1 2001:db8:300::2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >