MAC configuring class entries
Syntax
no SEQ_NUM match|ignore any|host SRC-MAC|SRC-MAC SRC-MAC-MASK any|host SRC-MAC|SRC-MAC SRC-MAC-MASK any|ETHERTYPE cos COS vlan vlan_id
A class is composed of entries that describe the traffic to be matched and ignored. Later, when the class is added to a policy, an action can be applied to the matched traffic. Traffic that is ignored excludes the traffic from the rest of the policy and takes no action. A class can be composed of many entries, which are processed sequentially.
Behavior
SOURCE MAC
- any
Match packets with any source MAC address.
- host
Match a specified source MAC address.
- SRC-MAC
Match a specified source MAC address Range.
- SRC-MAC-MASK
The source MAC address mask.
DESTINATION MAC
- any
Match packets with any source MAC address.
- host
Match a specified source MAC address.
- SRC-MAC
Match a specified source MAC address Range.
- SRC-MAC-MASK
The source MAC address mask.
ETHERTYPE
- 600-FFFF
Match a specific EtherType.
- any
Match any EtherType.
- aarp
AppleTalk Address Resolution Protocol.
- appletalk
AppleTalk/EtherTalk.
- arp
Address Resolution Protocol.
- fcoe
Fibre Channel over Ethernet.
- fcoe-init
Fibre Channel over Ethernet Initialization.
- lldp
Link Layer Discovery Protocol.
- ip
Internet Protocol Version 4.
- ipv6
Internet Protocol Version 6.
- ipx-arpa
IPX Advanced Research Projects Agency.
- ipx-non-arpa
IPX non-ARPA
- is-is
Intermediate System to Intermediate System
- mpls-unicast
MPLS Unicast
- mpls-multicast
MPLS Multicast
- q-in-q
IEEE 802.1ad encapsulation
- rbridge
RBridge Channel Protocol
- trill
IETF TRILL protocol
- wake-on-lan
Wake on LAN
Parameters
- cos
Match packets with a specified 802.1Q Priority Code Point value.
- vlan
Match packets for a configured VLAN.
- 0-7
Match packets with a specified 802.1Q Priority Code Point value.
- vlan
Match packets for a configured VLAN.
- VLAN-ID
Enter VLAN identifier or name.
Configuring a basic rule to match ARP traffic
(config)# class mac “mac-class-1” (config-class)# match any any arp
Configuring a basic rule to match range of source MAC addresses
(config)# class mac “mac-class-2” (config-class)# match AABB.CCDD.0000 0000.0000.FFFF any any
Configuring a basic rule to match a specific destination MAC addresses
(config)# class mac “mac-class-2” (config-class)# match any host AABB.CCDD.EEFF any