JUNOSe 7.2.x Policy Management Configuration Guide
52 ! Merging Policies
2. Create IP policy p2.
host1(config)#ip classifier-list C1 tcp host 1.1.1.1 any eq 80
host1(config)#ip classifier-list C3 ip any host 2.2.2.2
host1(config)#ip policy-list p2
host1(config-policy)#classifier-group C1 precedence 90
host1(config-policy-classifier-group)#forward next-hop 20.1.1.1
host1(config-policy-classifier-group)#exit
host1(config-policy)#classifier-group C3 precedence 10
host1(config-policy-classifier-group)#filter
host1(config-policy-classifier-group)#exit
host1(config-policy)#classifier-group * precedence 1000
host1(config-policy-classifier-group)#forward
host1(config-policy-classifier-group)#exit
3. Attach IP policy p1 as input at interface atm5/0.1.
host1(config)#Interface atm 5/0.1
host1(config-subif)#ip policy input p1 statistics enable merge
host1(config-subif)#exit
4. Attach IP policy p2 as input at interface atm 5/0.1. A merged policy is created.
host1(config)#Interface atm 5/0.1
host1(config-subif)#ip policy input p2 statistics enable merge
host1(config-subif)#exit
5. Display the policy lists.
host1#show policy-list
Policy Table
------ -----
IP Policy p1
Administrative state: enable
Reference count: 1
Classifier control list: C2, precedence 10
filter
Classifier control list: C1, precedence 90
forward
Virtual-router: default
List:
next-hop 10.1.1.1, order 100, rule 2 (active)
Referenced by interfaces:
None
Referenced by profiles:
None
Referenced by merge policies:
mpl_5
IP Policy p2
Administrative state: enable
Reference count: 1
Classifier control list: C3, precedence 10
filter
Classifier control list: C1, precedence 90
forward