tc qd add dev $IFACE root handle 1: htb default 13tc cl add dev $IFACE parent 1: classid 1:1 htb rate 100Mbit burst 150K
tc cl add dev $IFACE parent 1:1 classid 1:11 htb rate 10kbit burst 150K prio 50
tc cl add dev $IFACE parent 1:1 classid 1:12 htb rate 1Mbit burst 150K prio 10
tc cl add dev $IFACE parent 1:1 classid 1:13 htb rate 10Mbit burst 150K prio 20
#tc cl add dev $IFACE parent 1:1 classid 1:11 htb rate 1kbit burst 150K ceil 100Mbit prio 50(允许带宽借用)
tc qd add dev $IFACE parent 1:11 handle 111: sfq
tc qd add dev $IFACE parent 1:12 handle 112: sfq
tc qd add dev $IFACE parent 1:13 handle 113: sfq
tc fi add dev $IFACE parent 1: prio 100 protocol ip u32 match ip sport 23 0xffff flowid 1:12
tc fi add dev $IFACE parent 1: prio 150 protocol ip u32 match ip sport 25 0xffff flowid 1:12
tc fi add dev $IFACE parent 1: prio 200 protocol ip u32 match ip sport 80 0xffff flowid 1:11 |