In this example, a policy with a combination of IP classifiers is created and attached. The configuration conforms to the 128 bit limit.
- host1(config)#ip policy-list ipPol
- host1(config-policy-list)#classifier-group
colorCLACL
- host1(config-policy-list-classifier-group)#filter
- host1(config-policy-list-classifier-group)#classifier-group tcpCLACL
- host1(config-policy-list-classifier-group)#filter
- host1(config-policy-list-classifier-group)#classifier-group icmpCLACL
- host1(config-policy-list-classifier-group)#filter
- host1(config-policy-list-classifier-group)#classifier-group ipCLACL
- host1(config-policy-list-classifier-group)#filter
Table 23 lists the active classifiers in the policy named ipPol and the size of each classifier.
Table 23: Classification Fields for Example 1
Classifiers |
Size (Bits) |
|---|---|
Source address |
32 |
Destination address |
32 |
Destination port, ICMP type, ICMP code |
16 |
Protocol |
8 |
Color and TCP flags |
8 |
TOS |
8 |
IP flags |
8 |
The total value of the classifiers requested in the ipPol policy is 112, which is less than 128 bit CAM entry size limit.
In this example, a policy with a combination of IP classifiers is created and attached. The configuration exceeds the 128 bit limit.
- host1(config)#ip policy-list ipPol
- host1(config-policy-list)#classifier-group
colorCLACL
- host1(config-policy-list-classifier-group)#filter
- host1(config-policy-list-classifier-group)#classifier-group ipFragCLACL
- host1(config-policy-list-classifier-group)#filter
- host1(config-policy-list-classifier-group)#classifier-group igmpCLACL
- host1(config-policy-list-classifier-group)#forward
- host1(config-policy-list-classifier-group)#classifier-group lowDelayCLACL
- host1(config-policy-list-classifier-group)#traffic-class strict-priority
- host1(config-policy-list-classifier-group)#classifier-group tcpCLACL
- host1(config-policy-list-classifier-group)#forward
- host1(config-policy-list-classifier-group)#classifier-group *
- host1(config-policy-list-classifier-group)#filter
- host1(config)#interface atm 5/0/0.1
- host1(config-if)#ip policy input ipPol
- % too many classifier fields in policy
Table 24 lists the active classifiers in the policy named ipPol and the size of each classifier.
Table 24: Classification Fields for Example 2
Classifiers |
Size (Bits) |
|---|---|
Source address |
32 |
Source port |
16 |
Destination port |
16 |
Protocol |
8 |
User packet class |
8 |
Color |
8 |
IP fragmentation |
8 |
ToS |
8 |
The configuration fails because the total value of the classifiers requested in the ipPol policy is 136, which is greater than 128 bit CAM entry size limit.