Configuring Security
10-21
Creating a Policy Map
To create a policy map and define the actions that you want the system to take for the particular
class of traffic, enter the following commands in the global configuration mode:
Table 10-9 Creating a policy map for packet filtering
Command
Task
qos
1.
Enter the QoS configuration mode.
policy-map
<policy-map-name>
2. Create a policy map and enter the policy-map configuration mode.
y
<policy-map-name>
: Name of a policy map to define.
class
<class-name>
3. Specify the class to which the policy map applies and enter the
policy-map-class configuration mode.
y
<class-name>
: Class map name.
filter
{
deny
|
permit
}
4. Specify whether to filter the traffic class or not.
y
deny
: Discards the class of traffic belonging to a policy map.
y
permit
:
Permits the class of traffic belonging to a policy map.
end
5. Return to the Privileged mode.
show policymap
[<policy-map-name>]
6. Verify the QoS policy.
y
<policy-map-name>
: Name of a policy map to verify.
qos
7. Save the configuration changes.
The following example shows how to define QoS policy that you want the system to filter that
particular class of traffic:
(config)#
qos
(config-qos)#
policy-map filter-policy
(config-pmap)#
class class101
(config-pmap-c)#
filter deny
(config-pmap-c)#
end
#
show policymap filter-policy
PolicyMap
--------------------------------------------------
Name : filter-policy
Linked ClassMap : class101
Action
: Deny
#
write memory
Building Configuration...
[OK]
Summary of Contents for R1-SW24L2B
Page 1: ...Edition 00 Distribution 2006 06 Corecess Layer2 Ethernet Switch R1 SW24L2B User s Manual...
Page 20: ...R1 SW24L2B User s Manual XX...
Page 27: ...Overview 1 7 E PON ONU...
Page 28: ...R1 SW24L2B User s Manual 1 8...
Page 42: ...R1 SW24L2B User s Manual 2 14...
Page 68: ...R1 SW24L2B User s Manual 4 16...
Page 112: ...R1 SW24L2B User s Manual 5 44...
Page 124: ...R1 SW24L2B User s Manual 6 12...
Page 134: ...R1 SW24L2B User s Manual 7 10...
Page 168: ...R1 SW24L2B User s Manual 8 34...
Page 207: ...Configuring QoS 9 39 8021p enable 8021p user priority 6 vlan 1 port fastethernet 2 1...
Page 210: ...R1 SW24L2B User s Manual 9 42...
Page 234: ...R1 SW24L2B User s Manual 10 24...
Page 258: ...R1 SW24L2B User s Manual 12 10...
Page 288: ...R1 SW24L2B User s Manual 13 30...
Page 300: ...R1 SW24L2B User s Manual B 8...