Class - Cisco Catalyst 2950 Command Reference Manual

Desktop switch
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands

class

Use the class policy-map configuration command to define a traffic classification for the policy to act
on using the class-map name or access group. Use the no form of this command to delete an existing
class map.
This command is available only if your switch is running the enhanced software image (EI).
Syntax Description
class-map-name
access-group name
acl-index-or-name
Defaults
No policy-map class maps are defined.
Command Modes
Policy-map configuration
Command History
Release
12.1(6)EA2
Usage Guidelines
Before you use the class command, use the policy-map global configuration command to identify the
policy map and to enter policy-map configuration mode. After you specify a policy map, you can
configure a policy for new classes or modify a policy for any existing classes in that policy map. You
attach the policy map to an interface by using the service-policy interface configuration command;
however, you cannot attach one that uses an ACL classification to the egress direction.
The class name that you specify in the policy map ties the characteristics for that class to the class map
and its match criteria as configured by using the class-map global configuration command.
The class command performs the same function as the class-map global configuration command. Use
the class command when a new classification, which is not shared with any other ports, is needed. Use
the class-map command when the map is shared among many ports.
In a policy map, the class named class-default is not supported. The switch does not filter traffic based
Note
on the policy map defined by the class class-default policy-map configuration command.
78-11381-05
class class-map-name [access-group name acl-index-or-name]
no class class-map-name
Name of the class map.
(Optional) Number or name of an IP standard or extended access control list
(ACL) or name of an extended MAC ACL. For an IP standard ACL, the index
range is 1 to 99 and 1300 to 1999; for an IP extended ACL, the index range
is 100 to 199 and 2000 to 2699.
Modification
This command was first introduced.
Catalyst 2950 Desktop Switch Command Reference
class
2-11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents