[LARTC] Help Needed with TC qdisc and filters

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--0-1236270779-1043053227=:14100
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


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

--0-1236270779-1043053227=:14100
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<P>Hello ,</P>
<P>I&nbsp;am trying to use tc to do&nbsp;the following ..on the interface(eth0) I want to give priority to&nbsp; to packets coming from a specific IP address 1.2.3.4&nbsp;over packets from &nbsp;IP address 1.2.3.5 .</P>
<P>I would like to know if the following setup would work with PRIO qdisc.</P>
<P>tc qdisc add dev eth0 root handle 10 : prio</P>
<P>tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \<BR>match ip src 1.2.3.4/32 flowid 10:1</P>
<P>tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \<BR>match ip&nbsp;dst 1.2.3.4/32 flowid 10:1</P>
<P>tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \<BR>match ip src 1.2.3.5/32 flowid 10:2</P>
<P>tc filter add dev eth0 parent 10:0 protocol ip prio 1 u32 \<BR>match ip&nbsp;dst 1.2.3.5/32 flowid 10:2</P>
<P>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 ?</P>
<P>I expected that pings from 1.2.3.5 will be dropped giving priority to 1.2.3.4</P>
<P>Looking forward to your input,</P>
<P>Andreas.</P>
<P>
<P><BR></P>
<P>
<P><BR></P>
<P>&nbsp;</P><p><p><br><hr size=1><a href="http://uk.yahoo.com/mail/tagline_xtra/?http://uk.docs.yahoo.com/mail_storage.html";><b><font face="Arial" size="2">With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs</font></b></a><br>
--0-1236270779-1043053227=:14100--


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux