class-map

Enters class (classification) map configuration mode.

Syntax

class-map class-map-name
no class-map class-map-name

Command Default

The class map name "default" is reserved and cannot be created by users.

Parameters

class-map-name
Name of classification map. The map name is restricted to 64 characters.

Modes

Global configuration mode.

Usage Guidelines

Enter no map class-map class-map-name while in global configuration mode to remove the classification map.

Examples

The following example accesses class map configuration mode for the default class map:

device(config)# class-map default
device(config-classmap)#

The following example creates a class map, accesses class map configuration mode, and adds a match statement to a VLAN:

device(config)# class-map c1
device(config-classmap)# match vlan 500

The following example creates a class map, accesses class map configuration mode, and adds a match statement to a bridge domain:

device(config)# class-map BD-1000
device(config-classmap)# match bridge-domain 1000