Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] TC and Hashing HEX
@ 2003-05-16 17:22 Matias Bjørling
  0 siblings, 0 replies; only message in thread
From: Matias Bjørling @ 2003-05-16 17:22 UTC (permalink / raw)
  To: lartc

Hi

I'm doing some hashing filtering with this script.

tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth0 parent 1: classid 1:2 cbq rate 2000kbit allot 1500
prio 5 bounded
tc filter add dev eth0 parent 1:2 handle 2: protocol ip u32 divisor 254
tc filter add dev eth0 protocol ip parent 1: u32 match ip src 10.0.1.0/24
hashkey mask 0x000000ff at 12 link 2:

tc class add dev eth0 parent 1:2 classid 1:11 cbq rate 160kbit allot 1500
prio 5 bounded isolated
tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:2: match ip src
10.0.1.2 flowid 1:11

to

tc class add dev eth0 parent 1:2 classid 1:263 cbq rate 160kbit allot 1500
prio 5 bounded isolated
tc filter add dev eth0 protocol ip parent 1:2 u32 ht 2:fe: match ip src
10.0.1.254 flowid 1:263

But when i initialize the last line, i get an error.

I think it's the last hex code FE, that tc wont accept, for the last "match
ip" 254. I want to match on the last ip too, what's wrong?

Thanks

Regards
Matias Bjørling

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-16 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-16 17:22 [LARTC] TC and Hashing HEX Matias Bjørling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox