Creating Policy Lists ! 27
Chapter 2: Creating Policies
3. Add two rules for traffic based on the CLACL named gre8: one rule to color
packets as red, and a second rule that specifies the ToS DS field value to be
assigned to the packets.
host1(config-policy-list-classifier-group)#color red
host1(config-policy-list-classifier-group)#mark dsfield 20
host1(config-policy-list-classifier-group)#
4. Exit Policy List Configuration mode to save the configuration.
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#exit
host1(config)#
5. Display the policy list.
host1#show policy-list routeGre50
Policy Table
------ -----
GRE Tunnel Policy routeGre50
Administrative state: enable
Reference count: 0
Classifier control list: gre8, precedence 150
color red
mark dsfield 20
Creating a Policy List for L2TP
The following example creates an L2TP policy list.
1. Create the policy list routeForl2tp.
host1(config)#l2tp policy-list routeForl2tp
host1(config-policy-list)#
2. Create the classification group to match all packets.
host1(config-policy-list)#classifier-group *
host1(config-policy-list-classifier-group)#
3. Add a rule to color packets as red, and a second rule that uses the rate-limit
profile l2tpRLP10.
host1(config-policy-list-classifier-group)#color red
host1(config-policy-list-classifier-group)#rate-limit-profile l2tpRLP10
4. Exit Policy List Configuration mode to save the configuration.
host1(config-policy-list-classifier-group)#exit
host1(config-policy-list)#exit
host1(config)#
NOTE: Commands that you issue in Policy Configuration mode do not take effect
until you exit from that mode.