Cisco Cisco IOS Software Release 12.4(6)T
Tag and Template
How to Configure Tag and Template
3
Cisco IOS Security Configuration Guide
How to Configure Tag and Template
This section includes the following procedures:
•
•
•
•
•
Defining a Class Map for a Specific Type and Associating Match Conditions
with It
with It
To define a class map and associate match conditions with it, perform the following steps.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
class-map type tag [match-all | match-any] class-map-name
4.
match port-type {routed | switched}
5.
match tag tag-name
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
configure
terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
class-map type tag [match-all | match-any]
class-map-name
Example:
Router (config)# class-map tag match-all
group1_class
Creates a class map to be used for matching packets to a
specified class and enters class-map configuration mode.
specified class and enters class-map configuration mode.
Step 4
match port-type
{routed | switched}
Example:
Router (config-cmap)# match port-type routed
Matches the access policy on the basis of the port for a class
map.
map.