Specifications

Assigning Classification Rules to Policy Profiles set policy rule
8-20 Policy Classification Configuration
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
classificationrulewithapolicy profileindex configuredwiththeset
policyprofilecommand(“setpolicyprofileonpage 84).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.
llcDsapSsap ClassifiesbasedonDSAP/SSAP
pairin802.3typepacket.
macdest ClassifiesbasedonMACdestinationaddress.
macsource ClassifiesbasedonMACsourceaddress.
port Classifiesbasedonportstring.
tcpdestport ClassifiesbasedonTCPdestinationportwith.
tcpsourceport ClassifiesbasedonTCPsourceport.
udpdestport ClassifiesbasedonUDPdestinationport.
udpsourceport ClassifiesbasedonUDPsourceport
.
data (Notrequiredforipfragclassification.)Specifiesthecodefora
predefinedclassifier.Thisvalueisdependentontheclassificationtype
entered.RefertoTable 83forvalidvaluesforeachclassificationtype.
maskmask (Optional)Specifiesthenumberofsignificantbitstomatch,dependent
onthedatavalueentered.Refer
toTable 83forvalidvaluesforeach
classificationtypeanddatavalue.