> - mpls policy
> - Related Topics
> - Configuring HDLC Layer 2 Services in the JUNOSe BGP and MPLS Configuration Guide
> - Setting a Statistics Baseline for Policies

> # mpls policy

> #### Syntax

> mpls policy { input | output } policyName
> [ statistics { enabled [ baseline { enabled | disabled } ] [ preserve | merge ] |
> disabled [ merge ] } | merge ]

> no mpls policy { input | output } [ policyName ]

> #### Release Information

> Command introduced before JUNOSe Release 7.1.0.
> merge keyword added in JUNOSe Release 7.2.0.

> #### Description

> Assigns a policy list to the ingress or egress of an MPLS layer 2 transport interface. If you enter this command when the policy list does not exist, the router will create a policy list with a filter rule as the default. Attaching this policy list to an interface filters all packets on that interface. You must specify the input or output keyword to assign the policy list to the ingress or egress of the interface. The no version removes the association between a policy list and an interface.

> #### Options

> - input—Applies policy to data arriving at this interface
> - output—Applies policy to data leaving this interface
> - policyName—Name of the policy; a maximum of 40 characters
> - statistics—Enables or disables collection of policy routing statistics
>   - enabled—Enables collection of policy routing statistics
>   - baseline enabled—Enables baselining of policy routing statistics
>   - baseline disabled—Disables baselining of policy routing statistics
>   - preserve—Preserves existing statistics for any classifier-list that is the same for both the new and old policy attachments when you attach a new policy to an interface
>   - disabled—Disables collection of policy routing statistics
> - merge—Enables merging of multiple policies to form a single policy

> #### Mode

> Interface Configuration

> #### Updated: 2009-04-22

> Copyright © 2009, Juniper Networks, Inc. All rights reserved. Trademark Notice.