HTB + GRED (santa clauss plz help me out)

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I 've been trynig for a long time now to make HTB and GRED to work togethen. 
The problem beeing that GRED doesn't use handles (instead it uses DP:1 DP:2 
etc) i can not preperly filter traffic to them.

Tomas Graf suggested to use the tc_index index of u32 classifier

so dear Sant .. i am currently with the following scripts that works! 

But when i try to add an HTB before the GRED, everything goes to hell.


tc qdisc add dev $Dev handle 1:0 root dsmark indices 16 set_tc_index 
tc filter add dev $Dev parent 1:0 protocol ip prio 1 tcindex mask 0xfc shift 
2 Âpass_on
tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 10 tcindex
classid Â1:1
tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 12 tcindex
classid Â1:2
tc filter add dev $Dev parent 1:0 protocol ip prio 1 handle 14 tcindex
classid Â1:3
tc qdisc add dev $Dev parent 1:0 gred setup DPs 3 default 30
tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst
12 Âavpkt 256 bandwidth 10Mbit DP 1probability 0.01
tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst
12 Âavpkt 256 bandwidth 10Mbit DP 2probability 0.01
tc qdisc change dev $Dev parent 1:0 gred limit 6000 min 800 max 1600 burst
12 Âavpkt 256 bandwidth 10Mbit DP 3probability 0.01

any ideas guys?

Would really apreciate it
Thanks alg0
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux