filter (Applying to an Interface)

Syntax

filter {input filter-name;output filter-name;}

Hierarchy Level

[edit interfaces interface-name unit logical-unit-number family family],[edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number family family]

Release Information

Statement introduced before Junos OS Release 7.4.

Description

Apply a filter to an interface. You can also use filters for encrypted traffic. When you configure filters, you can configure the family inet, inet6, mpls, or vpls only.

Options

input filter-name—Name of one filter to evaluate when packets are received on the interface.

output filter-name—Name of one filter to evaluate when packets are transmitted on the interface.

Usage Guidelines

See Configuring Multifield Classifiers and Using Multifield Classifiers to Set PLP; for a general discussion of this statement, see the Junos Network Interfaces Configuration Guide.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Related Topics

simple-filter