Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cbqinit
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
r3pek
Retired Dev
Retired Dev


Joined: 17 Sep 2003
Posts: 568
Location: Lisbon - Portugal

PostPosted: Wed Feb 04, 2004 10:43 am    Post subject: cbqinit Reply with quote

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
View user's profile Send private message
buzzin
Apprentice
Apprentice


Joined: 17 Oct 2003
Posts: 264
Location: St. Albans, UK.

PostPosted: Wed Feb 04, 2004 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
r3pek
Retired Dev
Retired Dev


Joined: 17 Sep 2003
Posts: 568
Location: Lisbon - Portugal

PostPosted: Wed Feb 04, 2004 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum