Cisco Cisco IOS Software Release 12.4(6)T

Page de 34
Tag and Template
  match port-type
23
Cisco IOS Security Configuration Guide
match port-type
To match the access policy on the basis of the port for a class map, use the match port-type command 
in class map configuration mode. To delete the port type, use the no form of this command. 
match port-type {routed | switched}
no match port-type {routed | switched}
Syntax Description
Command Default
Access policy is not matched.
Command Modes
Class map configuration
Command History
Usage Guidelines
This command is used because, on the basis of the port on which a user is connecting, the access policies 
that are applied to it can be different. 
Examples
The following example shows that an access policy has been matched on the basis of the port for a class 
map:
Router (config-cmap)# match port routed
Related Commands
routed
Matches the routed interface. Use this keyword if the class map has to be 
associated with only a routed interface.
switched
Matches the switched interface. Use this keyword if the class map has to be 
associated with only a switched interface.
Release
Modification
12.4(6)T
This command was introduced. 
Command
Description
class-map
 Creates a class map to be used for matching packets to a 
specified class.
match tag (class-map)
Specifies the tag to be matched for a tag type of class map.