set policy rule
11-10 Policy Classification Configuration
=============================================================
set policy rule
UsethiscommandtoassignincominguntaggedframestoaspecificpolicyprofileandtoVLANor
Class‐of‐Serviceclassificationrules.
Syntax
set policy rule profile-index {ether | ipproto | ipdestsocket | ipsourcesocket |
iptos | macdest | macsource | tcpdestport | tcpsourceport | udpdestport |
udpsourceport} data [mask mask] {[vlan vlan] [cos cos] | [drop | forward]}
Parameters
Thefollowingparametersapplytocreatingatrafficclassificationrule.
Note: Classification rules are automatically enabled when created.
profile‐index Specifiesapolicyprofilenumbertowhichthisrulewillbeassigned.
Policyprofilesareconfiguredwiththesetpolicyprofilecommandas
describedin“setpolicyprofile”onpage 11‐4.Validprofile‐indexvalues
are1‐255.
ether Specifiesthattheruleshouldapplytotrafficwith
thespecifiedtypefield
inEthernetIIpacket.
ipproto SpecifiesthattheruleshouldapplytotrafficwiththespecifiedProtocol
fieldinIPpacket.
ipdestsocket Specifiesthattheruleshouldapplytotrafficwiththespecified
destinationIPaddresswithoptionalpost‐fixedTCPorUDPport.
ipsourcesocket Specifiesthattheruleshould
applytotrafficwiththespecifiedsourceIP
address,withoptionalpost‐fixedTCPorUDPport.
iptos Specifiesthattheruleshouldapplytotraffic withthespecifiedTypeof
ServicefieldinIPpacket.
macdest SpecifiesthattheruleshouldapplytotrafficwiththespecifiedMAC
destinationaddress.
macsource
SpecifiesthattheruleshouldapplytotrafficwiththespecifiedMAC
sourceaddress.
tcpdestport Specifiesthattheruleshouldapplytotrafficwiththes pecifiedTCP
destinationport.
tcpsourceport SpecifiesthattheruleshouldapplytotrafficwiththespecifiedTCP
sourceport.
udpdestport Specif iesthattheruleshouldapplytotraffic
withthespecifiedUDP
destinationport.
udpsourceport SpecifiesthattheruleshouldapplytotrafficwiththespecifiedUDP
sourceport.
data Specifiesthecodeforthespecifiedtrafficclassifier(listedabove).This
valueisdependentontheclassificationtypeentered.RefertoTable 11‐3
forvalidvaluesforeachclassificationtype.