tc(linux traffic control) no matches on other classid
Hi all,
Here is my simple tc settings to shape and prioritized outgoing aix2(voip), http and dns due to my small ADSL upload bandwidth ( 600kbit).
tc qdisc add dev ppp0 root handle 1: htb default 90
tc class add dev ppp0 parent 1:0 classid 1:1 htb rate 600kbit burst 15k
tc filter add dev ppp0 protocol ip parent 1:0 prio 1 u32 match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:1
tc class add dev ppp0 parent 1:1 classid 1:10 htb rate 150kbit ceil 600kbit burst 15k prio 0
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 350kbit ceil 600kbit burst 15k prio 1
tc class add dev ppp0 parent 1:1 classid 1:30 htb rate 100kbit ceil 600kbit burst 15k prio 4
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 4569 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:10
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 80 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:20
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 443 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:20
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip dport 53 0xffff match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:20
tc filter add dev ppp0 protocol ip parent 1:1 u32 match ip src $MyPublicIP/32 match ip dst 0.0.0.0/0 flowid 1:30
I think there is a problem with it or it might be something that I misunderstood... If run the "watch -n 1 tc -s -d class show dev ppp0" command, I only see matches on classid 1:30.
If I comment out the last filter (1:30). I do see matches on the other classid.
Help me please.
John
|