set policy rule
Enterasys D-Series CLI Reference 11-11
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
Table 11‐30providesthesetpolicyruledatavaluesthatcanbeenteredforaparticular
classificationtype,andthemaskbitsthatcanbeenteredforeachclassifierassociatedwiththat
parameter.
profile‐index Specifiesapolicyprofilenumbertowhichthisrulewillbeassigned.
Policyprofilesareconfigured
withthesetpolicyprofilecommandas
describedin“setpolicyprofile”onpage 11‐3.Validprofile‐indexvalues
are1‐255.
ether ClassifiesbasedontypefieldinEthernetIIpacket.
icmptype ClassifiesbasedonICMPtype.
ipproto ClassifiesbasedonProtocolfieldinIPpacket.
ipdestsocket ClassifiesbasedondestinationIP
addresswithoptionalpost‐fixedport.
ipsourcesocket ClassifiesbasedonsourceIPaddress,withoptionalpost‐fixedport.
iptos ClassifiesbasedonTypeofServicefieldinIPpacket.
macdest ClassifiesbasedonMACdestinationaddress.
macsource ClassifiesbasedonMACsourceaddress.
tcpdestport ClassifiesbasedonTCPdestinationport.
tcpsourceport ClassifiesbasedonTCP
sourceport.
udpdestport ClassifiesbasedonUDPdestinationport.
udpsourceport ClassifiesbasedonUDPsourceport.
data Specifiesthecodeforapredefinedclassifier.This valueisdependenton
theclassificationtypeentered.RefertoTable 11‐30forvalidvaluesfor
eachclassificationtype.
maskmask (Optional)Specifiesthenumberofsignificantbitsto
match,dependenton
thedatavalueentered.RefertoTable 11‐30forvalidvaluesforeach
classificationtypeanddatavalue.
vlanvlan ClassifiestoaVLANID.
coscos SpecifiesthatthisrulewillclassifytoaClass‐of‐ServiceID.Validvalues
are0‐4095.Avalueof‐1
indicatesthatnoCoSforwardingbehavior
modificationisdesired.(NotsupportedonB3,C3,andG3.)
drop|forward Specifiesthatpacketswithinthisclassificationwillbedroppedor
forwarded.
Table 11-30 Valid Values for Policy Classification Rules
Classification Rule Parameter data value mask bits
ether Type field in Ethernet II packet:
1536 - 65535 or 0x600 - 0xFFFF
1- 16