source
Syntax
source { ip-address | ipv6-address | interface-type interface-number }
undo source
View
Tunnel interface view
Default level
2: System level
Parameters
ip-address: Specifies the tunnel source IPv4 address.
ipv6-address: Specifies the tunnel source IPv6 address.
interface-type interface-number: Specifies an source interface by its type and number.
Description
Use source to specify the source address or interface of the tunnel interface.
Use undo source to remove the configured source address or interface of the tunnel interface.
By default, no source address or interface is specified for the tunnel interface.
The tunnel source address or interface must be a public address or interface.
The tunnel source address is the address of the interface sending packets and should be configured as the destination address of the peer tunnel interface.
Automatic tunnel interfaces using the same encapsulation protocol must have different source addresses. Manual tunnel interfaces using the same encapsulation protocol must have different source and destination addresses.
Related commands: destination, interface tunnel, display interface tunnel, and display ipv6 interface tunnel.
Examples
# Set the tunnel source address to 192.100.1.1 (or the interface VLAN-interface 100) on the interface Tunnel 5.
<Sysname> system-view [Sysname] interface tunnel 5 [Sysname-Tunnel5] source 192.100.1.1
Or
<Sysname> system-view [Sysname] interface tunnel 5 [Sysname-Tunnel5] source vlan-interface 100