R1-SW24L2B User’s Manual
9-20
Command
Task
match tcp-flag
<flag-num>
match tcp-spn
<tcp-port-num>
match udp-dpn
<udp-port-num>
match ucp-spn
<udp-port-num>
match vlan-did
<vlan-id>
match vlan-sid
<vlan-id>
end
5. Return to the Privileged mode.
show classmap
<class-map-name>
6. Verify the class map configuration.
y
<class-map-name>
: Class map name.
write memory
7. Save the configuration changes.
Note
:
To delete a class map, enter the
no class-map
<class-map-name>
command in the qos
configuration mode. To delete the criteria, enter the
no match
command in the qos configuration mode.
The following example shows how to create a class map and define a classification criterion by
using the source IP address:
(config)#
qos
(config-qos)#
class-map class1
(config-cmap)#
match ip-sa 172.27.2.16 0.0.255.255
(config-cmap)#
end
#
show classmap
ClassMap
--------------------------------------------------
Name : class1
Match Content : ip-sa 172.27.2.16/0.0.255.255
Total Entries = 1
#
write memory
Building Configuration...
[OK]
The following example shows how to create a class map and define the criteria by using the
destination IP address and the destination TCP port number:
(config)#
qos
(config-qos)#
class-map class2
(config-cmap)#
match ip-da 10.10.10.1 0.0.0.255
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...