CBQ
не могу настроить cbq в Fedora14
internet->eth1|linux-cache-server-NAT|eth2:1->LAN clients(10.16.10.0/24)
cbq-1370.out
DEVICE=eth1,100Mbit,10Mbit
RATE=128Kbit
WEIGHT=10Kbit
PRIO=5
RULE=10.16.10.4,
cbq-1370.in
DEVICE=eth2,10Mbit,1Mbit
RATE=1024Kbit
WEIGHT=100Kbit
PRIO=5
RULE=10.16.10.4
[root@localhost cbq]# cbq compile
/sbin/tc qdisc del dev eth1 root
/sbin/tc qdisc add dev eth1 root handle 1 cbq bandwidth 100Mbit avpkt 3000 cell 8
/sbin/tc class change dev eth1 root cbq weight 10Mbit allot 1514
/sbin/tc qdisc del dev eth2 root
/sbin/tc qdisc add dev eth2 root handle 1 cbq bandwidth 10Mbit avpkt 3000 cell 8
/sbin/tc class change dev eth2 root cbq weight 1Mbit allot 1514
/sbin/tc class add dev eth1 parent 1: classid 1:2 cbq bandwidth 100Mbit rate 128Kbit weight 10Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 3000 bounded
/sbin/tc qdisc add dev eth1 parent 1:2 handle 2 tbf rate 128Kbit buffer 10Kb/8 limit 15Kb mtu 1500
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 200 handle 0x65 fw classid 1:2
/sbin/tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip src 10.16.10.4 classid 1:2
/sbin/tc class add dev eth2 parent 1: classid 1:2 cbq bandwidth 10Mbit rate 1024Kbit weight 100Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 3000 bounded
/sbin/tc qdisc add dev eth2 parent 1:2 handle 2 tbf rate 1024Kbit buffer 10Kb/8 limit 15Kb mtu 1500
/sbin/tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst 10.15.10.2 classid 1:2
/sbin/tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst 10.15.10.3 classid 1:2
/sbin/tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst 10.15.10.4 classid 1:2
/sbin/tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst 10.16.10.4 classid 1:2
/sbin/tc class add dev eth2 parent 1: classid 1:2 cbq bandwidth 10Mbit rate 512Kbit weight 50Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 3000 bounded
/sbin/tc qdisc add dev eth2 parent 1:2 handle 2 tbf rate 512Kbit buffer 10Kb/8 limit 15Kb mtu 1500
входящий трафик для клиентов шейпится нормально, а вот исходящий нет