Introduction Configuring Classifiers
Software Reference for SwitchBlade x3100 Series Switches (Access and Security)
6-22
ADD CLASSIFIER INTERFACE
Syntax
ADD CLASSIFIER=classifiername INTERFACE={ type:id-range | id-range
| ifname-list | ALL } PRECEDENCE=1..255
Description Adds a CLASSIFIER to one or more Interfaces. As a result, the CLASSIFIER is applied to
every packet received on the Interface. This command attempts to add every specified
combination of CLASSIFIER and INTERFACE, and returns an error message for any com-
binations that cannot be added (e.g. due to conflicting PRECEDENCE, duplicate CLASSI-
FIERs, INTERFACEs that do not exist). Because classifiers are a limited resource, there
are constraints on the number of classifiers, and combinations of classifiers, that can be
supported on a given interface. If these limits are exceeded, then an alarm is raised on
the interface and operational classifier behavior may differ from the classifier configura-
tion. The “SHOW CLASSIFIER INTERFACE” command shows details about errors load-
ing the classifier configuration to a given port.
Options The following table gives the range of values for each option that can be specified with
this command and a default value (if applicable).
Example ADD CLASSIFIER=ipdrop INTERFACE=3.0 PRECEDENCE=69
Option Description Default Value
CLASSIFIER The name of the classifier.
INTERFACE The interface where the classifier is being added.
PRECE-
DENCE
Indicates whether actions from this CLASSIFIER are
performed when other matching CLASSIFIERS have
actions that conflict with the actions on this CLASSI-
FIER. In this case, actions from the CLASSIFIER with the
higher PRECEDENCE (smaller numeric value) are per-
formed, along with any actions from other matching
CLASSIFIERs that do not conflict with those actions.
Some PRECEDENCE values are reserved for internal
use (e.g. for IGMP snooping).
CLASSIFIERS for Filtering should use PRECEDENCE
values between 51 and 69.
CLASSIFIERS for setting fields in the packets should use
PRECEDENCE values between 146 and 199.