Name

class-map — global

Synopsis

class-map name [ match-all | match-any]
no class-map name [ match-all | match-any]

Configures

A class map to be used for matching packets to a specified class

Default

None

Description

This command creates a class map, which is used for matching packets with a defined class. The name is the class’s name as defined in the policy-map. match-all means that all of the following criteria must be met before a packet is marked for the class. match-any means that if any of the following criteria matches, the packet is marked for the class.

The class map consists of a set of criteria defined by the match command.

Example

class-map class1 match-all
  match input-interface ethernet0
  match access-group 100

Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.