beautypg.com

Creating a class map – ATL Telecom R1-SW Ethernet Switch User Manual

Page 229

background image

Configuring Security

10-19

Creating a Class Map

To create a class map and specify the way in which the Corecess R1-SW24L2B should classify
traffic, enter the following commands in the Global configuration mode:

Table 10-8 Creating a class map

Command

Task

qos

1.

Enter the QoS configuration mode.

class-map

2. Create a class map and enter class-map configuration mode.

y

: Class map name.

match ip-da

3. Specify the destination IP address as a match criterion of a class map.

y

: The destination IP address

y

: Wildcard bit to be applied to .

match ip-sa

4. Specify the source IP address as a match criterion of a class map.

y

: The source IP address

y

: Wildcard bit to be applied to .

match tcp-dpn

5. Specify the destination TCP port number as a match criterion of a class

map.

y

: The destination TCP port number (0 ~ 65535)

match tcp-spn

6. Specify the source TCP port number as a match criterion of a class

map.

y

:

The source TCP port number (0 ~ 65535)

match udp-dpn

7. Specify the destination UDP port number as a match criterion of a

class map.

y

: The destination UDP port number (0 ~ 65535)

match ucp-spn

8. Specify the source UDP port number as a match criterion of a class

map.

y

:

The source UDP port number (0 ~ 65535)

end

9. Return to the Privileged mode.

show classmap

[]

10. Verify the class map configuration.

write memory

11. Save the configuration changes.


The following example shows how to create a class map and define a classification criterion by
using the destination IP address and the destination TCP port number:

(config)# qos

(config-qos)# class-map class101

(config-cmap)# match ip-da 10.10.10.1 0.0.0.255

(config-cmap)# match tcp-dpn 25

(config-cmap)# end