O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required