ip address
Syntax
ip address <IPV4-ADDR>/<MASK>
no ip address <IPV4-ADDR>/<MASK>
Description
Sets the local IP address of a GRE tunnel. This address identifies the tunnel interface for routing. It must be on the same subnet as the tunnel address assigned on the remote device.
The
no
form of this command deletes the local IP address assigned to a GRE tunnel.
Command context
config-gre-if
Parameters
<IPV4-ADDR>
Specifies the tunnel IP address in IPv4 format (
x.x.x.x
), wherex
is a decimal number from 0 to 255. You can remove leading zeros. For example, the address192.169.005.100
becomes192.168.5.100
.<MASK>
Specifies the number of bits in the address mask in CIDR format (
x
), wherex
is a decimal number from 0 to 32.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Defines the local IP address 10.10.10.1 for GRE tunnel 33.
switch(config)# interface tunnel 33 mode gre ipv4 switch(config-gre-if)# ip address 10.10.10.1/24
Deletes the local IP address 10.10.10.1 for GRE tunnel 33.
switch(config)# interface tunnel 33 switch(config-gre-if)# no ip address 10.10.10.1/24