set cos port-resource
D-Series CLI Reference 9-25
Example
ThisexampledeletesallPortGroupsexce ptfortheDefaultgroup0.0:
D2(su)->clear cos port-config irl all
set cos port-resource
UsethiscommandtosettheinboundratelimitparametersforaspecificIRLresourceforaspecific
portgroup.
Syntax
set cos port-resource irl group-type-index irl-index {[unit {kbps}] [rate rate]
[type {drop}]}
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
CoSportresourcesarewhereactualphysicalratelimitersareconfigured.Resourcesmapdirectly
tothenumberofratelimiterssupportedbytheporttype.(Porttype0supports100IRLresources.)
Resourcesexistforeachportgroupandareindexedasgroup#.port‐type.irl‐index.Portresources
arenotinitially
configuredasratelimiting.
Inboundratelimiting,orratepolicing,simplydropsorclipstrafficinboundifaconfiguredrateis
exceeded.CoSinboundratelimitingallowstheusertoconfigureratelimitsbasedonkilobitsper
second.
Theshowcosport‐resourcecommanddisplaystheresourcesavailableforeachport
group.By
default,noIRLresourcesareconfigured.ThedefaultRateLimitingalgorithmisdropandcannot
beconfiguredotherwise.
irl SetanIRLportresource.
group‐type‐index Specifiesaninboundratelimitingportgroup/typeindex.Validentriesare
intheformofgroup#.port‐type.
Validvaluesforgroup#canrange
from0to7.Validvaluesforport‐type
canrangefrom0to1,althoughonlyporttype0iscurrentlysupported.
Forexample,portgroup3wouldbespecifiedas3.0.
irl‐index Indexnumberoftheinboundratelimiterresourceassociatedwiththis
entry.Validvaluesrange
from0to99.
unit Unitofmeasurefortheinboundratelimiter(onlyoptionisKbps).
kbps Kilobitspersecond.
raterate Datarateforthisinboundratelimiter.Thisistheactualratelimit.Valid
valuesrangefrom512to1,000,000KbpsforaGigabitport.
typedrop Actionfortheratelimiter.
Theonlyactionoptionisdroptheframeifall
limitersareexceeded.