source

Configures the source address or a source interface for a tunnel interface.

Syntax

source { ip-address | ethernet slot/port | loopback number | ve vlan_id }
no source

Command Default

No source address or interface is configured.

Parameters

ip-address

Specifies the IPv4 address of an interface.

ethernet slot/port

Specifies an Ethernet interface.

loopback number

Specifies a loopback port.

ve vlan_id

Specifies a VE interface.

Modes

Interface tunnel configuration mode

Usage Guidelines

The maximum number of tunnel source supported is 16.

Use the no 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.

When the physical/ve interface is specified as the source of the GRE tunnel, the lowest IP address of that interface is used as the tunnel source IP address. If the smallest IP address is removed from the interface, the next smallest IP address is used as the tunnel source.

Examples

This example configures the source address for the tunnel interface.

device# configure terminal
device(config)# interface tunnel 5
device(config-intf-tunnel-5)#  source 10.1.2.4 

This example sets an Ethernet interface as a source tunnel.

device# configure terminal
device(config)# interface tunnel 3
device(config-intf-tunnel-3)# source ethernet 3/1