
626 QoS Commands
match srcip
Use the match srcip command in Class-Map Configuration mode to add to
the specified class definition a match condition based on the source IP
address of a packet.
Syntax
match srcip
ipaddr
ipmask
•
ipaddr
— Specifies a valid IP address.
•
ipmask
— Specifies a valid IP address bit mask. Note that although this IP
address bit mask is similar to a subnet mask, it does not need to be
contiguous.
Default Configuration
This command has no default configuration.
Command Mode
Class-Map Configuration mode
User Guidelines
This command has no user guidelines.
Example
The following example displays adding a match condition for the specified IP
address and address bit mask.
console(config-classmap)#match srcip 10.240.1.1
10.240.0.0
match srcip6
The match srcip6 command adds to the specified class definition a match
condition based on the source IPv6 address of a packet.
Syntax
match srcip6
source-ipv6-prefix/prefix-length
2CSPC4.XModular-SWUM200.book Page 626 Thursday, March 10, 2011 11:18 AM