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), where x is a is a decimal number from 0 to 255.

<MASK>

Specifies the number of bits in the address mask in CIDR format (x), where x is a decimal number from 0 to 32.

Authority

Administrators

Examples

This example defines the local IP address 10.10.10.1 for GRE tunnel 27.

switch(config)# interface tunnel 27 mode gre ipv4
switch(config-gre-if)# ip address 10.10.10.1/24

This example deletes the local IP address 10.10.10.1 for GRE tunnel 27.

switch(config)# interface tunnel 27
switch(config-gre-if)# no ip address 10.10.10.1/24