source(IPv6 over IPv4 Tunnel)

Function

The source command configures a source IP address or source interface for an IPv6 over IPv4 tunnel interface.

The undo source command deletes a source IP address or source interface for an IPv6 over IPv4 tunnel interface.

By default, no source IP address or source interface is configured for an IPv6 over IPv4 tunnel interface.

Format

source ipv6-address

source { interface-name | interface-type interface-number }

undo source

Parameters

Parameter Description Value
ipv6-address

Specifies the source IP address for an IPv6 over IPv4 tunnel interface.

The value is in dotted decimal notation.

interface-name

Specifies the source interface name for an IPv6 over IPv4 tunnel.

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

interface-type

Specifies the source interface type for an IPv6 over IPv4 tunnel.

The value is an enumerated type, case-insensitive and can only be loopback.

interface-number

Specifies the source interface number for an IPv6 over IPv4 tunnel. The interface-type and interface-number parameters can be separated by spaces or configured without a space in between.

The value is a string of 1 to 63 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 IPv6 over IPv4 tunnel, you need to create a tunnel interface and run the source command to configure a source IP address or source interface for the tunnel interface.

Prerequisites

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

Precautions

The same source and destination addresses cannot be configured for two or more tunnel interfaces that use the same encapsulation protocol.

The source IP address specified for the tunnel interface at one end of an IPv6 over IPv4 tunnel must be the same as the destination IP 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 6rd tunnel interface named Tunnel 1 and specify LoopBack 1 as the source interface.
<HUAWEI> system-view
[~HUAWEI] interface LoopBack 1
[*HUAWEI-LoopBack1] quit
[*HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4 6rd
[*HUAWEI-Tunnel1] source LoopBack 1
Info: The source of this tunnel cannot be the same as that of other tunnels that do not require the destination address.
# Configure an IPv6 over IPv4 tunnel interface named Tunnel 1 and specify LoopBack 1 as the source interface.
<HUAWEI> system-view
[~HUAWEI] interface LoopBack 1
[*HUAWEI-LoopBack1] quit
[*HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4
[*HUAWEI-Tunnel1] source LoopBack 1
# Configure an 6rd tunnel interface named Tunnel 1 and specify the source IP address as 1.1.1.1.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4 6rd
[*HUAWEI-Tunnel1] source 1.1.1.1
Info: The source of this tunnel cannot be the same as that of other tunnels that do not require the destination address.
# Configure an IPv6 over IPv4 tunnel interface named Tunnel 1 and specify the source IP address as 1.1.1.1.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4
[*HUAWEI-Tunnel1] source 1.1.1.1
# Configure an 6to4 tunnel interface named Tunnel 1 and specify LoopBack 1 as the source interface.
<HUAWEI> system-view
[~HUAWEI] interface LoopBack 1
[*HUAWEI-LoopBack1] quit
[*HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4 6to4
[*HUAWEI-Tunnel1] source LoopBack 1
Info: The source of this tunnel cannot be the same as that of other tunnels that do not require the destination address.
# Configure an 6to4 tunnel interface named Tunnel 1 and specify the source IP address as 1.1.1.1.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 1
[*HUAWEI-Tunnel1] tunnel-protocol ipv6-ipv4 6to4
[*HUAWEI-Tunnel1] source 1.1.1.1
Info: The source of this tunnel cannot be the same as that of other tunnels that do not require the destination address.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic