Assigning Classification Rules to Policy Profiles set policy rule
8-14 Policy Classification Configuration
Defaults
•Ifmaskisnotspecified,alldatabitswillbeconsideredrelevant.
•Ifport‐stringisnotspecified,rulewillbescopedtoallports.
Mode
Switchcommand,Read‐Write.
Usage
Classificationrulesareautomaticallyenabledwhencreated.
Examples
ThisexampleshowshowtouseTable 8‐3tocreate(andenable)aclassificationruletoassociate
withpolicynumber1.ThisrulewillfilterEthernetIIType1526framestoVLAN7:
Matrix(rw)->set policy rule 1 ether 1526 vlan 7
ThisexampleshowshowtouseTable 8‐3tocreate(andenable)aclassificationruletoassociate
withpolicyprofilenumber5.ThisrulespecifiesthatUDPframesfromsourceport45willbe
filteredtoVLAN7:
Matrix(rw)->set policy rule 5 udpportsourceip 45 vlan 7
Thisexampleshowshowtoconfigureclassificationrule2asanadministrativeprofileandassign
ittoingressportfe.1.1:
Matrix(rw)->set policy rule admin-profile port fe.1.1 port-string fe.1.1 admin-
pid 2
Matrix(rw)->set policy rule admin-profile ether 1526 admin-pid 2
Table 8‐3providesthesetpolicyruledatavaluesthatcanbeenteredforaparticularclassification
type,andthemaskbitsthatcanbeenteredforeachclassifierassociatedwiththatparameter.
port‐stringport‐string (Optional)Ifadmin‐profileisspecified,appliesthisadministratively‐
assignedruletoaspecificingress
port.
Note: Enterasys Matrix Series devices with firmware versions 3.00.xx and
higher also support this alternative command to administratively assign a profile
rule to a port:
set policy port port-string admin-id
storage‐typenon‐
volatile|volatile
Addsorremovesthisentryfromnon‐volatilestora ge.
vlanvlan ClassifiestoaVLANID.
drop|forward Specifiesthatpacketswithinthisclassificationwillbedroppedor
forwarded.
admin‐pidadmin‐pid Ifadmin‐profileisspecified,associatesthisrulewithapolicyprofile
indexID.
Validvaluesare1‐1023.
coscos Specifiesthatthi srulewillclassifytoaClass‐of‐ServiceID.Validvalues
are0‐255,andcanbeconfiguredusingthesetcossettingscommand
asdescribedin“setcossettings”onpage 8‐39.Avalueof‐1indicates
that
noCoSforwardingbehaviormodificationisdesired.