Applying Policy Lists to Interfaces and Profiles ! 65
Chapter 2: Creating Policies
! You must also enable baselining on the interface with the appropriate baseline
command.
! You can use the preserve keyword to save the existing statistics when you
attach a policy to an interface that already has a policy attached. This keyword
saves the statistics for any classifier-list that is the same for both the new and
old policy attachments. Without the preserve keyword, all statistics are deleted
when you attach the new policy.
For example, when you replace a policy attachment that references the original
policy-list plOne with a new attachment referencing policy-list plTwo, the
existing statistics for the classifier group referencing clOne and the default
classifier group are saved.
! You can use the merge keyword to enable merging of multiple policies to form
a single policy.
! Example 1
host1(config-if)#vlan policy input VlanPolicy33 statistics enabled preserve
! Example 2
host1(config-if)#ipv6 policy secondary-input my-policy
! Example 3—To assign the policy list named routeForXYZCorp with statistics
enabled to the ingress IP interface over an ATM subinterface:
host1(config)#interface atm 12/0.1
host1(config-subif)#ip policy input routeForXYZCorp statistics enabled
! Example 4—To create an L2TP profile that applies the policy list
routeForABCCorp to the egress of an interface:
host1(config)#profile bostonProfile
host1(config-profile)#l2tp policy output routeForABCCorp
! Use the no version to remove the association between a policy list and an
interface or a profile.
NOTE: The gre-tunnel policy command does not support the baseline keyword.
Original Policy Attachment New Policy Attachment Comment
ip policy-list plOne ip policy-list plTwo –
ip classifier-list clOne ip classifier-list clOne statistics from plOne are saved
Forward Forward –
ip classifier-list clTwo ip classifier-list clFour –
Forward Forward –
ip classifier-list clThree ip classifier-list clFive –
Forward Forward –
classifier-list * classifier-list * statistics from plOne are saved
Filter Filter –