set policy rule Assigning Classification Rules to Policy Profiles
Enterasys Matrix DFE-Gold Series Configuration Guide 8-13
Examples
ThisexampleshowshowtouseTable 83tocreate(andenable)aVLANclassificationruleto
policy2,classification65,todroppacketsfromasourceIPaddressof172.16.1.2:
Matrix(rw)->set policy classify 2 65 vlan drop ipsource 172.16.1.2

set policy rule

UsethiscommandtoassignincominguntaggedframestoaspecificpolicyprofileandtoVLANor
ClassofServiceclassificationrules.
Syntax
set policy rule admin-profile | profile-index {ether |ipfrag | ipproto | ipdest |
ipsource | iptos | llcDsapSsap | macdest | macsource | | port | tcpdestport |
tcpsourceport | udpdestport | udpsourceport} data [mask mask] [port-string port-
string] [storage-type {non-volatile | volatile}] [vlan vlan] | [drop | forward]
[admin-pid admin-pid] [cos cos]
Parameters
adminprofile|
profileindex
Specifiesthatthisisanadministrativeruleorassociatesthis
classificationrulewithapolicyprofileindexconfiguredwiththeset
policyprofilecommand(“setpolicyprofileonpage 83).Validprofile
indexvaluesare1‐1023.
Note: Admin profiles can be assigned to a specific ingress port by specifying
port-string and admin-pid values as described below.
ether ClassifiesbasedontypefieldinEthernetIIpacket.
ipdest ClassifiesbasedondestinationIPaddress.
ipfrag ClassifiesbasedonIPfragmentationvalue.
ipproto ClassifiesbasedonprotocolfieldinIPpacket.
ipsource ClassifiesbasedonsourceIPaddress.
iptos ClassifiesbasedonTypeofServicefieldinIPpacket.
llcDsapSsapClassifiesbasedonDSAP/SSAPpairin802.3typepacket.
macdest ClassifiesbasedonMACdestinationaddress.
macsourceClassifiesbasedonMACsourceaddress.
port Classifiesbasedonportstring.
tcpdestport ClassifiesbasedonTCPdestinationportwith.
tcpsourceportClassifiesbasedonTCPsourceport.
udpdestportClassifiesbasedonUDPdestinationport.
udpsourceportClassifiesbasedonUDPsourceport.
data (Notrequiredforipfragclassification.)Specifiesthecodefora
predefinedclassifier.Thisvalueisdependentontheclassificationtype
entered.RefertoTable 83forvalidvaluesforeachclassificationtype.
maskmask (Optional)Specifiesthenumberofsignificantbitstomatch,dependent
onthedatavalueentered.RefertoTable 83forvalidvaluesforeach
classificationtypeanddatavalue.