set policy rule
9-10 Policy Classification Configuration
set policy rule admin-profile {vlantag data [mask mask] admin-pid profile-index}
[port-string port-string]
set policy rule profile-index {ether |icmptype | ipproto | ipdestsocket |
ipsourcesocket | iptos | macdest | macsource |tcpdestport | tcpsourceport |
udpdestport | udpsourceport} data [mask mask] [vlan vlan] [cos cos] | [drop |
forward]
Parameters
Theî ±followingî ±parametersî ±applyî ±toî ±creatingî ±anî ±adminî ±rule.
Theî ±followingî ±parametersî ±applyî ±toî ±creatingî ±aî ±classificationî ±rule.
Note: Classification rules are automatically enabled when created.
adminâprofile Specifiesî ±thatî ±thisî ±isî ±anî ±adminî ±ruleî ±forî ±policyî ±IDî ±0.
vlantagî ±data Classifiesî ±based î ±onî ±VLANî ±tagî ±specifiedî ±byî ±data.î ±Valueî ±ofî ±dataî ±canî ±rangeî ±
fromî ±1î ±toî ±4094î ±orî ±0xFFF.
maskî ±mask (Optional)î ±Specifiesî ±theî ±numberî ±ofî ±significantî ±bitsî ±toî ±match,î ±dependentî ±
onî ±theî ±dataî ±valueî ±entered.î ±Valueî ±of
î ±maskî ±canî ±rangeî ±fromî ±1î ±toî ±12.î ±
Referî ±toî ±Table 9â3î ±forî ±validî ±valuesî ±forî ±eachî ±classificationî ±typeî ±andî ±dataî ±
value.î ±
adminâpidî ±
profileâindex
Associatesî ±thisî ±adminî ±ruleî ±withî ±aî ±policyî ±profile,î ±identifiedî ±byî ±itsî ±indexî ±
number.î ±Policyî ±profilesî ±areî ±configuredî ±withî ±theî ±setî ±policyî ±profileî ±
commandî ±asî ±describedî ±
inî ±âsetî ±policyî ±profileâî ±onî ±page 9â3.î ±
Validî ±profileâindexî ±valuesî ±areî ±1âî ±255.
portâstringî ±portâstring (Optional)î ±Assignsî ±thisî ±ruleî ±toî ±theî ±specifiedî ±policyî ±profileî ±onî ±specificî ±
ingressî ±port(s).î ±Ruleî ±wouldî ±notî ±beî ±usedî ±untilî ±policyî ±isî ±assignedî ±toî ±theî ±
specifiedî ±port(s)î ±usingî ±theî ±setî ±policyî ±portî ±commandî ±
asî ±describedî ±inî ±âsetî ±
policyî ±portâî ±onî ±page 9â14.
profileâindexî ± Specifiesî ±aî ±policyî ±profileî ±numberî ±toî ±whichî ±thisî ±ruleî ±willî ±beî ±assigned.î ±
Policyî ±profilesî ±areî ±configuredî ±withî ±theî ±setî ±policyî ±profileî ±commandî ±asî ±
describedî ±inî ±âsetî ±policyî ±profileâî ±onî ±page 9â3.î ±Validî ±profileâindexî ±valuesî ±areî ±
1âî ±255.
ether Classifiesî ±basedî ±onî ±typeî ±fieldî ±inî ±Ethernetî ±IIî ±packet.
icmptype
Classifiesî ±basedî ±onî ±ICMPî ±type.
ipproto Classifiesî ±basedî ±onî ±Protocolî ±fieldî ±inî ±IPî ±packet.
ipdestsocket Classifiesî ±basedî ±onî ±destinationî ±IPî ±addressî ±withî ±optionalî ±postâfixedî ±port.
ipsourcesocket Classifiesî ±basedî ±onî ±sourceî ±IPî ±address,î ±withî ±optionalî ±postâfixedî ±port.î ±
iptos Classifiesî ±basedî ±onî ±Typeî ±ofî ±Serviceî ±fieldî ±inî ±IPî ±packet.
macdest Classifiesî ±basedî ±onî ±MACî ±destinationî ±
address.
macsourceî ± Classifiesî ±basedî ±onî ±MACî ±sourceî ±address.
tcpdestport Classifiesî ±basedî ±onî ±TCPî ±destinationî ±port.
tcpsourceportî ± Classifiesî ±basedî ±onî ±TCPî ±sourceî ±port.