tunnel source

Configures the source address or a source interface for a specific tunnel interface.
Syntax
tunnel source { ip address | ipv6 address | ethernet unit/slot/port | lag lag-id | loopback number | ve vlan_id }
no tunnel source { ip address | ipv6 address | ethernet unit/slot/port | lag lag-id | loopback number | ve vlan_id }
Command Default

No source address or interface is configured.

Parameters
ip address

Specifies the IPv4 address of an interface.

ipv6 address

Specifies the IPv6 address of the source.

ethernet unit/slot/port

Specifies an Ethernet interface.

lag lag-id

Specifies a LAG interface.

loopback number

Specifies an loopback port.

ve vlan_id

Specifies a VE interface.

Modes

Interface tunnel configuration mode

Usage Guidelines

Use the no tunnel source command to remove the configured source for the tunnel interface.

The tunnel source address should be one of the router IP addresses configured on a physical, loopback, or VE interface, through which the other end of the tunnel is reachable. The source interface must have at least one IP address configured on it.

ICX 7150 and ICX 8100 devices do not support tunnels.

Examples

The following example configures the IP address 10.1.2.4 as the source address for a specific tunnel interface.

device# configure terminal
device(config)# interface tunnel 3
device(config-tnif-3)# tunnel source 10.1.2.4

The following example sets an Ethernet interface as a source tunnel.

device# configure terminal
device(config)# interface tunnel 1
device(config-tnif-1)# tunnel source ethernet 1/3/1
 
History
Release version Command history
08.0.41 This command was introduced.
08.0.70 This command added support for IPv6 addressing for IPsec tunnels.