408 QoS Commands
match source-address mac
Use the match source-address mac command in Class-Map Configuration mode to add to the
specified class definition a match condition based on the source MAC address of the packet.
Syntax
match source-address mac
address
macmask
•
macaddr
— Specifies any valid layer 2 MAC address formatted as six two-digit hexadecimal
numbers separated by colons.
•
macmask
— Specifies a layer 2 MAC address bit mask formatted as six two-digit hexadecimal
numbers separated by colons. This bit mask 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 adds to the specified class definition a match condition based on the
source MAC address of the packet.
console(config-classmap)# match source-address mac
10:10:10:10:10:10 11:11:11:11:11:11
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.