destination-ip

Last Updated : Nov 06, 2012 |

Specifies the destination IP address of packets to which the current rule applies.

Use not destination-ip to specify that the current rule applies to all packets that do not have this destination IP address.

Use no destination-ip to set the destination IP address to any.

Syntax

[not] destination-ip {hostip} | any | {ip wildcard}

no destination-ip

Parameters

Parameter

Description

Possible Values

Default Value

host

Keyword that specifies the current rule applies to a single host IP address

ip

The destination IP address of the rule

any

Keyword that specifies the current rule applies to any address

ip wildcard

The range of IP addresses of the rule.

The zero bits in the wildcard correspond to bits in the IP address that remain fixed. The one bits in the wildcard correspond to bits in the IP address that can vary.

This is the opposite of how bits are used in a netmask.

User level

read-write

Context

ip capture-list/ip-rule, ip access-control-list/ip-rule, ip pbr-list/ip-rule, ip qos-list/ip-rule, ip crypto-list ip-rule

Examples

To specify that rule 22 applies to all packets having destination IP address 135.64.104.102:

Gxxx-001(QoS 460/rule 22)# destination-ip host 135.64.104.102

To specify that rule 17 applies to packets whose destination IP address is not in the range of 176.13.0.0 through 176.13.255.255:

Gxxx-001(QoS 460/rule 17)# not destination-ip 176.13.0.0 0.0.255.255