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.
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. |
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.<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
<HUAWEI> system-view [~HUAWEI] interface Tunnel 1 [*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6 [*HUAWEI-Tunnel1] destination domain host1
<HUAWEI> system-view [~HUAWEI] interface Tunnel 1 [*HUAWEI-Tunnel1] tunnel-protocol ipv4-ipv6 [*HUAWEI-Tunnel1] destination 2001:db8:300::2
<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