source ip
Syntax
source ip <IPV4-ADDR>
no source ip <IPV4-ADDR>
Description
Sets the source IP address for a GRE tunnel. Specify the IP address of a layer 3 interface on the switch. A maximum of 16 source IP addresses are supported. Tunnels can have the same source IP address and different destination IP addresses.
The
no
form of this command deletes the source IP address for a GRE tunnel.
Command context
config-gre-if
Parameters
<IPV4-ADDR>
Specifies the source IP address in IPv4 format (
x.x.x.x
), wherex
is a is a decimal number from 0 to 255. You can remove leading zeros. For example, the address192.169.005.100
becomes192.168.5.100
.
Authority
Administrators
Examples
This example defines the source IP address to be 10.10.10.1 for GRE tunnel 27.
switch(config)# interface tunnel 27 mode gre ipv4 switch(config-gre-if)# source ip 10.10.10.1
This example deletes the source IP address 10.1.1.1 from GRE tunnel 27.
switch(config)# interface tunnel 27 switch(config-gre-if)# no source ip 10.10.10.1