Configure Multifield Classifiers
This topic describes how to configure multifield classifiers.
Multifield classifiers classify packets to a forwarding class and loss priority based on firewall filter match criteria. You usually use multifield classification at the edge of the network for packets that do not have valid or trusted BA code points.
If you configure both a BA classifier and a multifield classifier, BA classification is performed first; then multifield classification is performed. If both a BA classifier and a multifield classifier conflict, the multifield classifier overrides the BA classifier.
For a specified interface, you can configure both a multifield classifier and a BA classifier without conflicts. Because Junos applies the classifiers in sequential order, the BA classifier followed by the multifield classifier, the multifield classifier overrides the BA classifier if the two classifiers conflict.
To activate (apply) a multifield classifier, you must configure it on a logical interface. There is no restriction on the number of multifield classifiers you can configure.
You configure multifield classifiers by:
Defining the filter—Configure either a firewall filter or a simple filter. Simple filters filter only IPv4 traffic (family inet). Firewall filters enable you to filter additional protocol families and more complex filters. The following sections describe both procedures.
Applying the filter—Activate the filter by configuring on a logical interface as an input filter.
To configure a firewall filter:
To configure a simple filter:
Specify a name for the simple filter.
[edit firewall family family-name] user@host# edit simple-filter filter-name
Specify the term name and match criteria you want to look for in incoming packets.
[edit firewall family family-name simple-filter filter-name] user@host# set term term-name from match-conditions
Specify the action you want to take when a packet matches the conditions.
[edit firewall family family-name simple-filter filter-name] user@host# set term term-name then actions
For multifield classifiers, you can perform the following actions for a simple filter:
Set the forwarding-class of incoming packets.
Set theloss-priority of incoming packets.
To apply the firewall filter to the appropriate logical interfaces as an input filter.
Specify the physical and logical interface on which you want to apply the firewall filter.
edit user@host# edit interfaces interface-name unit unit-number
Specify the protocol family for the firewall filter.
[edit interfaces interface-name unit unit-number] user@host# set family family-name
Specify the names of the firewall filters to apply to received packets.
[edit interfaces interface-name unit unit-number] user@host# set filter input filter-name
Repeat this step for the family protocol filter and the simple filter.
Save your configuration.
[edit] user@host# commit
Platform-Specific Multifield Classifier Behavior
Use Feature Explorer to confirm platform and release support for specific features.
Use the following table to review platform-specific behaviors for your platform:
| Platform | Difference |
|---|---|
| EX Series Switches |
|
| MX Series |
|