tunnel source

When encapsulating a packet, the source IP address is used in the encapsulating IPv4 header. When decapsulating a packet, this address is matched against the destination IP address in the encapsulating IPv4 header to determine if the packet was received on a valid, configured tunnel. The command is executed in tunnel context.

Syntax

tunnel source [ipv4-addr|ipv6-addr]

no tunnel source [ipv4-addr|ipv6-addr]

Description

Configures the IPv4 or IPv6 address of the source (local) end of the tunnel. Must not be the same address as the tunnel destination.

Usage

Tunnel mode must be configured before tunnel source.

You cannot configure the same source and destination address pair on more than one tunnel interface.