From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Matias_Bj=F8rling?= Date: Sat, 24 May 2003 17:01:46 +0000 Subject: [LARTC] Hashing Filters MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_002D_01C32226.EC33DF70" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_002D_01C32226.EC33DF70 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_002D_01C32226.EC33DF70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey
 
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
 
# tc qdisc del dev eth0 root > = /dev/null
# tc=20 qdisc add dev eth0 root handle 1: htb
# tc class add dev eth0 parent = 1:=20 classid 1:2 htb rate 100MBit ceil 100MBit
# tc filter add dev eth0 parent 1:2 = prio 5 protocol=20 ip u32
# tc filter add dev eth0 parent 1:2 handle 2: protocol ip u32 = divisor=20 256
 
// Adding a divisor

# tc class add dev eth0 parent 1:2 classid 1:10 htb rate = 512kbit ceil=20 512kbit burst 0k
# 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
 
# tc class add dev eth0 parent 1:2 classid 1:11 htb rate 512kbit = ceil=20 512kbit burst 0k
# 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
# tc class add dev eth0 parent 1:2 classid 1:13 htb rate 512kbit = ceil=20 512kbit burst 0k
# 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
# tc class add dev eth0 parent 1:2 classid 1:15 htb rate 512kbit = ceil=20 512kbit burst 0k
# 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

// Making Hashing Filtering for = Network=20 10.0.0.0/16
# 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:
 
I know i have to set
# tc filter add dev eth1 parent 1: = protocol ip=20 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=20 accept the config. telling me that
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=20 appreciate it :)
 
Thank You
 
Regards
 
Matias Bj=F8rling
------=_NextPart_000_002D_01C32226.EC33DF70-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/