Configures the source address or a source interface for a tunnel interface.
No source address or interface is configured.
Specifies the IPv4 address of an interface.
Specifies an Ethernet interface.
Specifies a loopback port.
Specifies a VE interface.
Interface tunnel configuration mode
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.
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