Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Matias Bjørling" <mb@nerdit.dk>
To: lartc@vger.kernel.org
Subject: [LARTC] TC and Hashing HEX
Date: Fri, 16 May 2003 17:22:16 +0000	[thread overview]
Message-ID: <marc-lartc-105310605914192@msgid-missing> (raw)

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/

                 reply	other threads:[~2003-05-16 17:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-105310605914192@msgid-missing \
    --to=mb@nerdit.dk \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox