destination ip

Syntax

destination ip <IPV4-ADDR>

no destination ip <IPV4-ADDR>

Description

Sets the destination IP address for an IP 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 an IP tunnel.

Command context

config-gre-if

config-ip-if

Parameters

<IPV4-ADDR>

Specifies the destination IP address in IPv4 format (x.x.x.x), where x is a decimal number from 0 to 255.

Authority

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

Examples

Defines the destination IP address to be 10.10.10.1 for GRE tunnel 33.
switch(config)# interface tunnel 33 mode gre ipv4
switch(config-gre-if)# destination ip 10.10.10.1
Deletes the destination IP address 10.10.10.1 from GRE tunnel 33.
switch(config)# interface tunnel 33
 switch(config-gre-if)# no destination ip 10.10.10.1
Defines the destination IP address to be 10.10.20.1 for IPv6 in IPv4 tunnel 27.
switch(config)# interface tunnel 27 mode ip 6in4
switch(config-ip-if)# destination ip 10.10.20.1
Deletes the destination IP address 10.10.20.1 from IPv6 in IPv4 tunnel 27.
switch(config)# interface tunnel 27
 switch(config-ip-if)# no destination ip 10.10.20.1