Skip to contentSkip to conversation

cbq scrpit

LARTC Paras pradhan 2 participants 2 messages Apr 7, 2003

lore
Share & tools
lore
#0 lore raw

hi all

i have a script but i guess it is not limiting the bandwidth. why is this plz let me know.

i want this to limit my uplink to 64kbps...

-----------

tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 10mbit

tc class add dev eth0 parent 1: classid 1:1 cbq rate 64kbit allot 1514 prio 3 bounded isolated

tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst x.x.x.0/24 flowid 1:1

----------

Thanks
Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 6 lines · Paras pradhan

hi all

i have a script but i guess it is not limiting the bandwidth. why is this plz let me know.

i want this to limit my uplink to 64kbps...

Remove the isolated parameter and "bandwidth 10Mbit".

Corrected commands :

-----------

tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 10mbit

tc class add dev eth0 parent 1: classid 1:1 cbq rate 64kbit bandwidth 10mbit allot 1514 prio 3 bounded

tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst x.x.x.0/24 flowid 1:1

----------
Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/