1 #!/bin/sh 2 $TC qdisc del dev $DEV root >/dev/null 2>&1 3 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 4 $TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded 5 $TC qdisc list dev $DEV 6 $TC qdisc del dev $DEV root 7 $TC qdisc list dev $DEV 8 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64 9 $TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded 10 $TC qdisc del dev $DEV root 11