Below is the script:
tc qdisc del dev eth2 root
tc qdisc add dev eth2 root handle 1 htb default 10 r2q 100 tc class add dev eth2 parent 1: classid 1:2 htb
rate 100Mbit
tc class add dev eth2 parent 1:2 classid 1:10 htb
rate 20Mbit ceil 20Mbit
tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst 202.xx.xxx.xx/26 classid 1:10 When i try to shape 20Mbit, there's dropped packet
but i see the bandwidth not shaped to 20Mbit.
But when shape to 10Mbit, i see the bandwidth down
to 13Mbit.
Any comment with this?
Thanks.
|