Skip to contentSkip to conversation

Shaping incoming bandwidth

LARTC Ankur Jain 2 participants 2 messages Jun 10, 2005

lore
Share & tools
lore

Ankur Jain

author
#0 lore raw

Hello Everyone,
i'm having problem in limiting bandwith on my external interface in the
server.
i'm having a network here which is online via a linux server with cbq
compiled in kernel.
i'm having eth0 as internal network card,
eth 1 as external network card
my internet bandwith line is 8kbps on eth1
i want to limit this 8kbps to 4kbps at eth1 and no shaping on eth0
i tried earlier this with cbq.init script... but all in vain.....
i don wanna compile kernel for htb support...
i think i wud have to use tc and ingress qdisc....
can anyody help with the commands....
help out .....

Signature · 4 lines
Regards
Ankur Jain
------------------------------------------------------------------------------------------------------------
Fate determines who comes into our lives ... Heart determines who stays...

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

Hi,

Something like this should work I guess..

tc qdisc add dev eth1 ingress
tc filter add dev eth1 parent ffff: (some filter here to match all ip addresses) flowid :1 police rate 4kbps mtu 4k burst 4k drop

Quoted 17 lines · Ankur Jain

Hello Everyone,

i'm having problem in limiting bandwith on my external interface in the server.

i'm having a network here which is online via a linux server with cbq compiled in kernel.

i'm having eth0 as internal network card,
eth 1 as external network card

my internet bandwith line is 8kbps on eth1
i want to limit this 8kbps to 4kbps at eth1 and no shaping on eth0

i tried earlier this with cbq.init script... but all in vain.....

Quoted 23 lines

i don wanna compile kernel for htb support...

i think i wud have to use tc and ingress qdisc....

can anyody help with the commands....

help out .....

Signature · 10 lines
Regards
Ankur Jain
------------------------------------------------------------------------------------------------------------
Fate determines who comes into our lives ... Heart determines who stays... 

  
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc