source ip

Syntax

source ipno source ip

Description

Sets the source IP address for an IP tunnel. Specify the IP address of a layer 3 interface on the switch. Tunnels can have the same source IP address and different destination IP addresses.

Thenoform of this command deletes the source IP address for an IP tunnel.

Command context

config-gre-if

config-ip-if

Parameters

Specifies the source IP address in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Defines the source IP address to be10.10.20.1for GRE tunnel33.
switch(config)#interface tunnel 33 mode gre ipv4switch(config-gre-if)#source ip 10.10.20.1
Deletes the source IP address10.1.20.1from GRE tunnel33.
switch(config)#interface tunnel 33switch(config-gre-if)#no source ip 10.10.20.1
Defines the source IP address to be10.10.10.1在IPv4 IPv6隧道27.
switch(config)#interface tunnel 27 mode ip 6in4switch(config-ip-if)#源ip 10.10.10.1
Deletes the source IP address10.1.10.1from IPv6 in IPv4 tunnel27.
switch(config)#interface tunnel 27switch(config-ip-if)#no source ip 10.10.10.1