Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Andreas Wright" <learnvoip@yahoo.co.uk>
To: lartc@vger.kernel.org
Subject: [LARTC] Help Needed with TC qdisc and filters
Date: Mon, 20 Jan 2003 09:00:27 +0000	[thread overview]
Message-ID: <marc-lartc-104305331607311@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]


Hello ,

I am trying to use tc to do the following ..on the interface(eth0) I want to give priority to  to packets coming from a specific IP address 1.2.3.4 over packets from  IP address 1.2.3.5 .

I would like to know if the following setup would work with PRIO qdisc.

tc qdisc add dev eth0 root handle 10 : prio

tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \
match ip src 1.2.3.4/32 flowid 10:1

tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \
match ip dst 1.2.3.4/32 flowid 10:1

tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \
match ip src 1.2.3.5/32 flowid 10:2

tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \
match ip dst 1.2.3.5/32 flowid 10:2

Can I test this setup by using flooding ping from 1.2.3.4 and 1.2.3.5 to the machine configured with tc ?

I expected that pings from 1.2.3.5 will be dropped giving priority to 1.2.3.4

Looking forward to your input,

Andreas.









 




---------------------------------
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs

[-- Attachment #2: Type: text/html, Size: 1342 bytes --]

             reply	other threads:[~2003-01-20  9:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20  9:00 Andreas Wright [this message]
2003-01-20  9:48 ` [LARTC] Help Needed with TC qdisc and filters S Mohan
2003-01-20 13:36 ` Andreas Wright

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-104305331607311@msgid-missing \
    --to=learnvoip@yahoo.co.uk \
    --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