JUNOSe 7.2.x Policy Management Configuration Guide
116 ! CAM Hardware Classifiers
The total value of the classifiers requested in the ipPol policy is 112, which is
less than 128 bit CAM entry size limit.
Example 2 In this example, a policy with a combination of IP classifiers is created and
attached. The configuration exceeds the 128 bit limit.
1. Match all TCP packets from 1.1.1.1 port 10 to 2.2.2.2 port 20.
host1(config)#ip classifier-list tcpCLACL tcp host 1.1.1.1 eq 10 host 2.2.2.2 eq
20
2. Match all IP fragmentation offset equal to 1.
host1(config)#ip classifier-list ipFragCLACL ip any any ip-frag-offset eq 1
3. Match all frames with the color red.
host1(config)#ip classifier-list colorCLACL color red traffic-class best-effort ip any
any
4. Match all frames with UPC 1.
host1(config)#ip classifier-group upcCLACL user-packet-class 1 ip any any
5. Create a policy list.
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
6. Apply the policy list to an interface.
host1(config)#interface atm 5/0.1
host1(config-if)#ip policy input ipPol
% too many classifier fields in policy
Ta b l e 21 lists the active classifiers in the policy named ipPol and the size of each
classifier.
Table 21: Classification Fields for Example 2
Classifiers Size (Bits)
Source address 32
Source port 16