tunnel source

Use this command to configure the IPv4 or IPv6 source address for this tunnel.

Syntax

tunnel source ip-address
no tunnel source

Parameters

ip-address Specifies the source IPv4 or IPv6 tunnel address for the tunnel.

Defaults

None.

Mode

Tunnel Interface Configuration command mode.

Usage

Each tunnel has a source and destination IP address configured from the perspective of the local router. The source address is the local startpoint of the tunnel. The destination address is the remote endpoint of the tunnel. The tunnel source and destination addresses can be configured on either loopback or VLAN interfaces, but are usually loopback interface IP addresses. The delivery interface for the tunnel is the underlying interface for the IP address associated with the selected route. The delivery interface, if known, for the tunnel is specified in the show tunnel command output.

Use the “no” option for this command to remove the source IP address configuration for the tunnel.

Examples

This example shows how to configure the IPv4 source address to 88.88.88.1 for tunnel 1:

System(rw)->configure
System(rw-config)->interface tunnel 1
System(rw-config-intf-tun.0.1)->tunnel source 88.88.88.1
System(rw-config-intf-tun.0.1)->show tunnel tun.0.1
Codes:A  = Admin status (E-enabled, D-disabled)
      O  = Tunnel Oper status (U-up, D-down)
      P  = Tunnel point or probe status (U-up, D-down, N-not configured or pending)
      T  = Tunnel IP Address type (L-local, R-remote, P-Probe, K-Keepalive)
Delivery
Interface Mode        Interface   A O P T Endpoint IP Addresses
--------- ----------- ----------- - - - - ---------------------------------------
tun.0.1   gre         vlan.0.50   E U U L 88.88.88.1

This S- and K-Series example shows how to configure the IPv6 source address to 2002:2010::1 for tunnel 10:

System(rw)->configure
System(rw-config)->interface tunnel 10
System(rw-config-intf-tun.0.10)->tunnel source 2002:2010::1
System(rw-config-intf-tun.0.10)->show tunnel tun.0.10
Codes:A  = Admin status (E-enabled, D-disabled)
      O  = Tunnel Oper status (U-up, D-down)
      P  = Tunnel point or probe status (U-up, D-down, N-not configured or pending)
      T  = Tunnel IP Address type (L-local, R-remote, P-Probe, K-Keepalive)
Delivery
Interface Mode        Interface   A O P T Endpoint IP Addresses
--------- ----------- ----------- - - - - ---------------------------------------
tun.0.10  gre         unknown     D D N L 2002:2010::1