source-ip

Last Updated : Nov 06, 2012 |

Indicates that the current rule applies to packets from the specified source IP address.

Use no source-ip to indicate that the current rule applies to packets from any IP address.

Use not source-ip to indicate that the current rule applies to all packets except those coming from the specified IP address.

Syntax

[not] source-ip {host ip_address | any | ip_address wildcard}

no source-ip

Parameters

Parameter

Description

Possible Values

Default Value

host

Keyword that indicates a specific host IP address

ip_address

The IP address of the host

any

Keyword that indicates any IP address

ip_address 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 pbr-list ip-rule, ip qos-list ip-rule, ip capture-list ip-rule, ip access-control-list ip-rule, ip crypto-list ip-rule

Note:

The not source-ip command is not relevant in the crypto-list ip-rule context.

Examples

To specify that rule 22 of QoS policy list 460 applies to any packet coming from IP address 135.64.104.102:

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

To specify that rule 22 of QoS policy list 460 applies to any packet except those coming from IP address 135.64.104.102:

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