[Contents] [Prev] [Next] [Index] [Report an Error]


Creating Classifier Control Lists

Use the following commands to create or modify CLACLs:

frame-relay classifier-list

gre-tunnel classifier-list

ip classifier-list

For example, the following command matches packets with source address 198.168.30.100 and UDP source port numbers in the range 1-10:

host1(config)#ip classifier-list YourListName udp host 192.168.30.100 range 1 
10 any

The classifier control list boston5 matches all packets with the source IP address of 192.168.30.100 or with the destination IP address of 192.168.30.200.

For example:

host1(config)#ip classifier-list svale20 source-route-class 1 ip any any 
host1(config)#ip classifier-list svale30 destination-route-class 1 ip any any tos 10
host1(config)#ip classifier-list svale40 source-route-class 1 local true ip any any 
host1(config)#ip classifier-list west25 source-route-class 1 local false ip any any 

In the previous example, classifier control lists match route-class values as follows:

For example, the following command matches packets with source address 198.168.30.100 and ICMP type 2 and code 10:

host1(config)#ip classifier-list YourListName icmp host 192.168.30.100 any 2 
10

For example, the following commands configure a policy to filter fragmentation offsets equal to 1:

host1(config)#ip classifier-list fragOffsetAttack ip any host 10.10.10.10 
ip-frag-offset eq 1
host1(config)#ip policy-list dosProtect
host1(config-policy-list)#filter classifier-group fragOffsetAttack
host1(config-policy-list)#forward

Examples: IP CLACLs

To set up a CLACL to accept IP traffic from all source addresses on the subnet of XYZ Corp:

host1(config)#ip classifier-list XYZCorpPermit ip 192.168.0.0 0.0.255.255 any

To create a CLACL that filters all ICMP echo requests headed toward an access link for XYZ Corp under a denial-of-service attack:

host1(config)#ip classifier-list XYZCorpIcmpEchoReqs icmp any any 8 0

To create a CLACL that matches all IGMP type 1 packets:

host1(config)#ip classifier-list XYZCorpIgmpType1 igmp any any 1

To create a CLACL that matches all traffic on UDP source ports greater than 100:

host1(config)#ip classifier-list XYZCorpUdp udp any gt 100 172.17.2.1 
0.0.255.255 

ipv6 classifier-list

For example, the following command matches packets from port 75:

host1(config)#ipv6 classifier-list YourListName udp destination-port eq 75 

For example, the following command matches ICMPv6 packets with an ICMP type of 3 and code of 6:

host1(config)#ipv6 classifier-list listname icmpv6 icmp-type 3 icmp-code 6

For example:

host1(config)#ipv6 classifier-list svale20 source-route-class 1 
host1(config)#ipv6 classifier-list svale30 destination-route-class 1 tcfield 10
host1(config)#ipv6 classifier-list svale40 source-route-class 1 local true 
host1(config)#ipv6 classifier-list west25 source-route-class 1 local false

In the previous example, classifier control lists match route-class values as follows:

l2tp classifier-list

mpls classifier-list

vlan classifier-list


[Contents] [Prev] [Next] [Index] [Report an Error]