View previous topic :: View next topic |
Author |
Message |
r3pek Retired Dev

Joined: 17 Sep 2003 Posts: 568 Location: Lisbon - Portugal
|
Posted: Wed Feb 04, 2004 10:43 am Post subject: cbqinit |
|
|
hi guys...
so i'm trying to limit my inside ethernet (eth1). The card is a 100M one and i want to limit the bandwidth on that interface to 5KBps (KBytes per second), in and out (2.5KB each), how can i do this with cbqinit? i tried severel diferente configuration files but it seems that it doesn't limit at all....  |
|
Back to top |
|
 |
buzzin Apprentice


Joined: 17 Oct 2003 Posts: 264 Location: St. Albans, UK.
|
Posted: Wed Feb 04, 2004 5:01 pm Post subject: |
|
|
An idea would be to use police rate? .. something like
Quote: |
DEV=eth0
TC=/sbin/tc
$TC filter add dev $DEV parent ffff: protocol ip prio 50 u32 \
match ip protocol 6 0xff \
match ip src 0.0.0.0/0 \
police rate ${DOWNLINK}kbit burst 10k drop flowid :1
|
Hope it helps, |
|
Back to top |
|
 |
r3pek Retired Dev

Joined: 17 Sep 2003 Posts: 568 Location: Lisbon - Portugal
|
Posted: Wed Feb 04, 2004 8:09 pm Post subject: |
|
|
well... maybe it will work, but since i'm using cbqinit to generate the "script" it would be nice if could be done with the cbqinit config file. but if it's not possible, i'll try that way, thank you.
if anyone has other sugestions i'll be glad to hear them |
|
Back to top |
|
 |
|