hashing rule don't match

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi i have 2 class C 80.97.103.0/24 and 81.180.12.0/24 but i dont konw how
to set hashing tables for HTB
tc add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256 tc
add dev eth0 parent 1: prio 0 protocol ip u32 match src 80.97.103.0/24
hashkey mask 0x000000FF at 12 link 1:

but i want 2 hashkey for 80.97.103.0/24 and for 81.180.12.0/24 can
somebody help me ?

this is a part fo my script

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 1 r2q 1
tc class add dev eth0 parent 1: classid 1:1 htb rate 640Kbit ceil 640Kbit
prio 0
tc class add dev eth0 parent 1:1 classid 1:201 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:202 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:203 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:204 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:205 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:206 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:207 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:208 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:209 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:210 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:211 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:212 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500
tc class add dev eth0 parent 1:1 classid 1:213 htb rate 1Kbit ceil 64Kbit
prio 7 quantum 1500

tc filter add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256
tc filter add dev eth0 parent 1: prio 0 protocol ip u32 match ip src
80.97.103.0/24 hashkey mask 0x000000ff at 12 link 1:

tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:2: match ip
src 80.97.103.74 flowid 1:201
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:3: match ip
src 80.97.103.64 flowid 1:202
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:4: match ip
src 80.97.103.65 flowid 1:203
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:5: match ip
src 80.97.103.66 flowid 1:204
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:6: match ip
src 80.97.103.67 flowid 1:205
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:7: match ip
src 80.97.103.68 flowid 1:206
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:8: match ip
src 80.97.103.69 flowid 1:207
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:9: match ip
src 80.97.103.70 flowid 1:208
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:10: match ip
src 80.97.103.71 flowid 1:209
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:11: match ip
src 80.97.103.72 flowid 1:211
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:12: match ip
src 80.97.103.73 flowid 1:212
tc filter add dev eth0 prio 7 parent 1: protocol ip u32 ht 1:13: match ip
src 80.97.103.75 flowid 1:213

but somting is wrong the filters don't match but i don't get errors
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux