[LARTC] cbq-fw classifier

Linux Advanced Routing and Traffic Control

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

 



Hi All,
 
I was using CBQ to control the bandwidth rate , while i use the qdisc cbq with u32 filter and route filter it is
working fine ,but when i use fw classifier it seems that the bandwidth rate 100kbit is not picked.
 
i have used the following commands 
 
/sbin/iptables -I PREROUTING -t mangle -p tcp -d 172.16.1.81 -j MARK --set-mark 1
 
/sbin/tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000 mpu 64
/sbin/tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000
/sbin/tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 100Kbit allot 1514 cell 8 weight 10Kbit prio 3 maxburst 20 avpkt 1000
 
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:2
 
 
is that anything i have missed out ?
i have tested these commands using Linux-2.4.10.
 
Advance Thanks
Vanitha

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