tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 30
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50mbit burst 15k
tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
U32="tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32"
$U32 match ip dport 80 0xffff flowid 1:10
$U32 match ip dport 443 0xffff flowid 1:10
网卡 = eth0
总速 = 100mbit
限速 = 50mbit