destination ip
Syntax
destination ip <IPV4-ADDR>
no destination ip <IPV4-ADDR>
Description
Sets the destination IP address for a GRE tunnel. Specify the address of the interface on the remote device to which the tunnel will be established.
The
no
form of this command deletes the destination IP address from a GRE tunnel.
Command context
config-gre-if
Parameters
<IPV4-ADDR>
Specifies the destination 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 destination IP address to be 10.10.20.1 for GRE tunnel 27.
switch(config)# interface tunnel 27 mode gre ipv4 switch(config-gre-if)# destination ip 10.10.20.1
This example deletes the destination IP address 10.10.20.1 from GRE tunnel 27.
switch(config)# interface tunnel 27 switch(config-gre-if)# no destination ip 10.10.20.1