source (IPv6)(Tunnel interface view)

Function

The source command configures a source IPv6 address or a source interface for a tunnel.

The undo source command deletes the source IPv6 address or source interface of a tunnel.

By default, no source IPv6 address or source interface is configured for a tunnel.

Format

source ipv6-address

source { ifName | ifType ifNum }

undo source [ ipv6-address | { ifName | ifType ifNum } ]

Parameters

Parameter Description Value
ipv6-address

Specifies the source IPv6 address of a tunnel.

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

ifType

Specifies the type of the source interface of a tunnel.

-

ifNum

Specifies the number of the source interface of a tunnel.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gre write

Usage Guidelines

Usage Scenario

When configuring a tunnel, you must create a tunnel interface and run the source command to configure the source address on the tunnel interface. The IPv6 address of the interface that sends packets should be specified as the source address on the tunnel interface.

Prerequisites

The tunnel mode has been configured using the tunnel-protocol command.

Configuration Impact

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

Precautions

A source tunnel interface can be a physical interface or a loopback interface. Similarly, a source IPv6 address for a tunnel interface can be the IPv6 address of a physical interface or a loopback interface.

Only the NetEngine 8000 F1A supports this command.

Example

# Configure IPv6 GRE Tunnel 10 and specify the source IPv6 address encapsulated into packets as 2001:db8:1::1.
<HUAWEI> system-view
[~HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol gre ipv6
[*HUAWEI-Tunnel10] source 2001:db8:1::1
# Configure IPv6 GRE Tunnel 10 and specify the source interface encapsulated into packets as Loopback1.
<HUAWEI> system-view
[~HUAWEI] interface LoopBack 1
[*HUAWEI-LoopBack1] quit
[*HUAWEI] interface Tunnel 10
[*HUAWEI-Tunnel10] tunnel-protocol gre ipv6
[*HUAWEI-Tunnel10] source loopback 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >