This is a multi-part message in MIME format.
------=_NextPart_000_002F_01C3246A.A0571220
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey
Can anybody tell me what i'm doing wrong, im getting crasy of this =
hashing filters, and the doc at lartc is too unexplained for me. Can't =
get it to work
# tc qdisc del dev eth0 root > /dev/null
# tc qdisc add dev eth0 root handle 1: htb
# tc class add dev eth0 parent 1: classid 1:2 htb rate 100MBit ceil =
100MBit
# tc filter add dev eth0 parent 1:2 prio 5 protocol ip u32
# tc filter add dev eth0 parent 1:2 handle 2: protocol ip u32 divisor =
256
// Adding a divisor=20
# tc class add dev eth0 parent 1:2 classid 1:10 htb rate 512kbit ceil =
512kbit burst 0k
# tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:1: match ip src =
10.0.0.1 flowid 1:10
# tc class add dev eth0 parent 1:2 classid 1:11 htb rate 512kbit ceil =
512kbit burst 0k
# tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:2: match ip src =
10.0.0.2 flowid 1:11
# tc class add dev eth0 parent 1:2 classid 1:13 htb rate 512kbit ceil =
512kbit burst 0k
# tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:4: match ip src =
10.0.0.4 flowid 1:13
# tc class add dev eth0 parent 1:2 classid 1:15 htb rate 512kbit ceil =
512kbit burst 0k
# tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:6: match ip src =
10.0.0.6 flowid 1:15
// Making Hashing Filtering for Network 10.0.0.0/16
# tc filter add dev eth0 protocol ip parent 1:2 prio 5 u32 ht 800:: =
match ip src 10.0.0.0/16 hashkey mask 0x000000ff at 12 link 2:
I know i have to set=20
# tc filter add dev eth1 parent 1: protocol ip prio 100 match ip src =
10.0.02 classid 1:2
between the class and filter where i point to the src ip. But it wont =
accept the config. telling me that=20
Unknown filter "match", hence option "ip" is unparsable
It's breaking my neck soon am i'm going crazy :)
If any have a working script with more than 256 hosts, i would greatly =
appreciate it :)
Thank You
Regards=20
Matias Bj=F8rling
------=_NextPart_000_002F_01C3246A.A0571220
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hey</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Can anybody tell me what i'm doing
=
wrong, im=20
getting crasy of this hashing filters, and the doc at lartc is too =
unexplained=20
for me. Can't get it to work</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2># tc qdisc del dev eth0 root
> =
/dev/null<BR># tc=20
qdisc add dev eth0 root handle 1: htb<BR># tc class add dev eth0 parent =
1:=20
classid 1:2 htb rate 100MBit ceil 100MBit<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2># tc filter add dev eth0 parent 1:2
=
prio 5 protocol=20
ip u32<BR># tc filter add dev eth0 parent 1:2 handle 2: protocol ip u32 =
divisor=20
256</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>// Adding a divisor </DIV>
<DIV><BR># tc class add dev eth0 parent 1:2 classid 1:10 htb rate =
512kbit ceil=20
512kbit burst 0k<BR># tc filter add dev eth0 protocol ip parent 1:2 u32 =
ht 2:1:=20
match ip src 10.0.0.1 flowid 1:10</DIV>
<DIV> </DIV>
<DIV># tc class add dev eth0 parent 1:2 classid 1:11 htb rate 512kbit =
ceil=20
512kbit burst 0k<BR># tc filter add dev eth0 protocol ip parent 1:2 u32 =
ht 2:2:=20
match ip src 10.0.0.2 flowid 1:11<BR></DIV>
<DIV># tc class add dev eth0 parent 1:2 classid 1:13 htb rate 512kbit =
ceil=20
512kbit burst 0k<BR># tc filter add dev eth0 protocol ip parent 1:2 u32 =
ht 2:4:=20
match ip src 10.0.0.4 flowid 1:13<BR></DIV>
<DIV># tc class add dev eth0 parent 1:2 classid 1:15 htb rate 512kbit =
ceil=20
512kbit burst 0k<BR># tc filter add dev eth0 protocol ip parent 1:2 u32 =
ht 2:6:=20
match ip src 10.0.0.6 flowid 1:15<BR><BR>// Making Hashing Filtering
for =
Network=20
10.0.0.0/16</DIV>
<DIV># tc filter add dev eth0 protocol ip parent 1:2 prio 5 u32 ht 800:: =
match=20
ip src 10.0.0.0/16 hashkey mask 0x000000ff at 12 link 2:</DIV>
<DIV> </DIV>
<DIV>I know i have to set <BR># tc filter add dev eth1 parent 1: =
protocol ip=20
prio 100 match ip src 10.0.02 classid 1:2</DIV>
<DIV>between the class and filter where i point to the src ip. But it =
wont=20
accept the config. telling me that <BR></DIV>
<DIV>Unknown filter "match", hence option "ip" is
unparsable<BR></DIV>
<DIV>It's breaking my neck soon am i'm going crazy :)</DIV>
<DIV> </DIV>
<DIV>If any have a working script with more than 256 hosts, i would =
greatly=20
appreciate it :)</DIV>
<DIV> </DIV>
<DIV>Thank You</DIV>
<DIV> </DIV>
<DIV>Regards </DIV>
<DIV> </DIV>
<DIV>Matias Bj=F8rling</DIV></FONT>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_002F_01C3246A.A0571220--