Roman Ivanov Posted January 26, 2005 Posted January 26, 2005 tc filter генерит их гораздо больше, чем надо. Пример: /sbin/tc qdisc del dev eth0 root /sbin/tc qdisc add dev eth0 handle 1: root htb default 1 /sbin/tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit burst 50k quantum 30000 /sbin/tc class add dev eth0 parent 1: classid 1:9999 htb rate 1000mbit burst 150k /sbin/tc qdisc add dev eth0 parent 1:9999 handle 9999: sfq perturb 10 /sbin/tc filter add dev eth0 parent 1: protocol ip u32 match ip src 82.131.120.7/32 flowid 1:9999 /sbin/tc filter add dev eth0 parent 1: protocol ip u32 match ip dst 82.131.120.7/32 flowid 1:9999 ### #tc -s -d filter show dev eth0 filter parent 1: protocol ip pref 49151 u32 filter parent 1: protocol ip pref 49151 u32 fh 801: ht divisor 1 filter parent 1: protocol ip pref 49151 u32 fh 801::800 order 2048 key ht 801 bkt 0 flowid 1:9999 match 52837807/ffffffff at 16 filter parent 1: protocol ip pref 49151 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 49151 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:9999 match 52837807/ffffffff at 12 filter parent 1: protocol ip pref 49152 u32 filter parent 1: protocol ip pref 49152 u32 fh 801: ht divisor 1 filter parent 1: protocol ip pref 49152 u32 fh 801::800 order 2048 key ht 801 bkt 0 flowid 1:9999 match 52837807/ffffffff at 16 filter parent 1: protocol ip pref 49152 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 49152 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:9999 match 52837807/ffffffff at 12 Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.