Commited b/w question
Hi
i been working tc and htb, its good and iam able to achieve some of the things what i required for me in my office
i have question here like this
i have total bandwidth 256kbps
we have a department finace and admin
i want to give a b/w of 64 both, either up or down to finance and admin 128kbps up or down..
when i setup a config of my own, they able to get 128up and 128down also same.
so fiannce dept is consuming all the b/w, so i will be problem with my admin
how do i control aggregate b/w of 128kbps either up or down
any sample config provided will be great
advance thanks for helping
hare
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hi hare!
tc qdisc add dev eth0 root handle 1: htb default 2 r2q 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 256kbps tc class add dev eth0 parent 1:1 classid 1:2 htb rate 64kbps ceil 64kbps tc qdisc add dev eth0 handle 2: parent 1:2 sfq perturb 10 limit 178 tc class add dev eth0 parent 1:1 classid 1:3 htb rate 128kbps ceil 128kbps tc qdisc add dev eth0 handle 3: parent 1:3 sfq perturb 10 limit 357
Of course, you have to add a filter for the admin class (1:3) and above assumes that you're using eth0 for egress. You probably want to do this in both directions.
The sfq's above will limit the latency to 4secs (although with sfq this is effectively much lower) - you might want to make it lower/higher.
Also note that with the setup above you're obviously not using all your bandwidth (64+128<256). You might want to change the setup so that finance and admin can both use up to 256kbps, but are guaranteed 64kbps and 128kbps respectively.
Quoted 25 lines
i been working tc and htb, its good and iam able to achieve some of the things what i required for me in my office
i have question here like this
i have total bandwidth 256kbps
we have a department finace and admini want to give a b/w of 64 both, either up or down to finance and admin 128kbps up or down..
when i setup a config of my own, they able to get 128up and 128down also same.
so fiannce dept is consuming all the b/w, so i will be problem with my adminhow do i control aggregate b/w of 128kbps either up or down
any sample config provided will be great
advance thanks for helping
hare_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Signature · 10 lines
Regards Abraham If life is merely a joke, the question still remains: for whose amusement? ___________________________________________________ Abraham vd Merwe - Frogfoot Networks CC 9 Kinnaird Court, 33 Main Street, Newlands, 7700 Phone: +27 21 686 1674 Cell: +27 82 565 4451 Http: http://www.frogfoot.net/ Email: [email protected]