[Contents] [Prev] [Next] [Index] [Report an Error]

# ipv6 policy

#### Syntax

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

no ipv6 policy { input | output | secondary-input } [ policyName ]

For policy lists in Profile Configuration mode:

ipv6 policy { input | output } policyName
[ statistics { enabled | disabled } ] [ merge ]

`

no ipv6 policy { input | output | secondary-input } [ policyName ]

`

#### Release Information

Command introduced before JUNOSe Release 7.1.0.
merge keyword added in JUNOSe Release 7.2.0.
Profile Configuration mode added in JUNOSe Release 7.2.0.

#### Description

In Interface Configuration mode, assigns a policy list to the ingress or egress of an interface. If you enter the ipv6 policy command and the policy list does not exist, the router creates a policy list with no rules, the default. When a policy list does not have rules, the router inserts a default filter rule. 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.

In Profile Configuration mode, assigns the policy list to a profile, which then assigns the policy to an interface.

The no version removes the association between a policy list and an interface. In Profile Configuration mode, the no version removes policy reference from the profile.

#### Options

- input—Applies policy to data arriving at this interface before a route lookup
- output—Applies policy to data leaving this interface
- secondary-input—Applies policy to data that arrives at this interface after a route lookup
- policyName—Name of the policy; a maximum of 40 characters
- statistics—Enables or disables collection of policy routing statistics
  - enabled—Enable collection of policy routing statistics
  - baseline enabled—Enables baselining of policy routing statistics (Interface Configuration mode only)
  - baseline disabled—Disables baselining of policy routing statistics (Interface Configuration mode only)
  - 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—Disable collection of policy routing statistics
- merge—Enables merging of multiple policies to form a single policy

  | Note: The local-input keyword for the ipv6 policy command is deprecated, and may be completely removed in a future release. The keyword should be removed from scripts. You should recreate any local input policies using the ipv6 classifier-list local true command and attaching the policies using the ipv6 policy secondary-input command.

#### Mode

Interface Configuration, Profile Configuration

#### Related Topics

- Setting a Statistics Baseline for Policies

[Contents] [Prev] [Next] [Index] [Report an Error]