Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     
     

    Assigning a VLAN Policy List to a Profile

    You can use the vlan policy command to assign a VLAN policy list to a profile, which then assigns the policy to an interface.

    You can use the input or output keyword to assign the policy list to the ingress or egress of the interface. You can enable or disable the recording of routing statistics for bytes and packets affected by the policy.

    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.

    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

    To assign a VLAN policy list to a profile:

    • Issue the vlan policy command in Profile Configuration mode.
    host1(config-profile)#vlan policy input VlanPolicy33 statistics enabled preserve

    Use the no version to remove the policy reference from the profile.

     
     

    Published: 2014-08-14