11.07.2015 Views

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

Catalyst 3750-E and 3560-E Switch Cisco IOS ... - DNIP . NET

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

match (class-map configuration)Chapter 2<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> <strong>Cisco</strong> <strong>IOS</strong> Comm<strong>and</strong>sIf you enter the class-map {match-all | match-any} class-map-name global configuration comm<strong>and</strong>,you can enter these match comm<strong>and</strong>s:• match access-group acl-nameNoteThe ACL must be an extended named ACL.• match input-interface interface-id-list• match ip dscp dscp-list• match ip precedence ip-precedence-listYou cannot enter the match access-group acl-index comm<strong>and</strong>.To define packet classification on a physical-port basis, only one match comm<strong>and</strong> per class map issupported. In this situation, the match-all <strong>and</strong> match-any keywords are equivalent.For the match ip dscp dscp-list or the match ip precedence ip-precedence-list comm<strong>and</strong>, you can entera mnemonic name for a commonly used value. For example, you can enter the match ip dscp af11comm<strong>and</strong>, which is the same as entering the match ip dscp 10 comm<strong>and</strong>. You can enter the match ipprecedence critical comm<strong>and</strong>, which is the same as entering the match ip precedence 5 comm<strong>and</strong>. Fora list of supported mnemonics, enter the match ip dscp ? or the match ip precedence ? comm<strong>and</strong> tosee the comm<strong>and</strong>-line help strings.Use the input-interface interface-id-list keyword when you are configuring an interface-level class mapin a hierarchical policy map. For the interface-id-list, you can specify up to six entries.ExamplesThis example shows how to create a class map called class2, which matches all the incoming traffic withDSCP values of 10, 11, <strong>and</strong> 12:<strong>Switch</strong>(config)# class-map class2<strong>Switch</strong>(config-cmap)# match ip dscp 10 11 12<strong>Switch</strong>(config-cmap)# exitThis example shows how to create a class map called class3, which matches all the incoming traffic withIP-precedence values of 5, 6, <strong>and</strong> 7:<strong>Switch</strong>(config)# class-map class3<strong>Switch</strong>(config-cmap)# match ip precedence 5 6 7<strong>Switch</strong>(config-cmap)# exitThis example shows how to delete the IP-precedence match criteria <strong>and</strong> to classify traffic using acl1:<strong>Switch</strong>(config)# class-map class2<strong>Switch</strong>(config-cmap)# match ip precedence 5 6 7<strong>Switch</strong>(config-cmap)# no match ip precedence<strong>Switch</strong>(config-cmap)# match access-group acl1<strong>Switch</strong>(config-cmap)# exitThis example shows how to specify a list of physical ports to which an interface-level class map in ahierarchical policy map applies:<strong>Switch</strong>(config)# class-map match-all class4<strong>Switch</strong>(config-cmap)# match input-interface gigabitethernet2/0/1 gigabitethernet2/0/2<strong>Switch</strong>(config-cmap)# exit2-348<strong>Catalyst</strong> <strong>3750</strong>-E <strong>and</strong> <strong>3560</strong>-E <strong>Switch</strong> Comm<strong>and</strong> ReferenceOL-9776-08

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!