Hello,
I read through the LARTC Howto, and I tried to setup a CBQ example from
Chapter 9.
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit avpkt 1000 cell 8
tc class add dev eth0 parent 1: classid 1:1 cbq bandwidth 10Mbit rate
128kbit allot 1514 weight 12.8kbit prio 8 maxburst 20 avpkt 1000 bounded
tc class add dev eth0 parent 1:1 classid 1:10 cbq bandwidth 10Mbit rate
20kbit allot 1514 weight 2.0kbit prio 1 maxburst 20 avpkt 1000
tc class add dev eth0 parent 1:1 classid 1:20 cbq bandwidth 10Mbit rate
108kbit allot 1514 weight 10.8kbit prio 7 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth0 parent 1:10 sfq quantum 1514b perturb 10
tc qdisc add dev eth0 parent 1:20 sfq quantum 1514b perturb 10
tc filter add dev eth0 parent 1: protocol ip prio 20 u32 match ip sport 80
0xffff flowid 1:10
tc filter add dev eth0 parent 1: protocol ip prio 20 u32 match ip sport 25
0xffff flowid 1:20
However, it''s not really working as I would expect.
I''d like to look at the exact configuration and some stats.
When I try
tc -s qdisc ls dev eth0
I get the following output:
qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
Sent 49318327 bytes 35920 pkts (dropped 0, overlimits 48978)
borrowed 0 overactions 0 avgidle 624 undertime 0
That''s not I want: I''d like to see the different classes
etc...
What am I doing wrong?
Regards,
Patrick