All these documents have one line<br><pre><font size="4">action mirred egress redirect dev dummy0</font></pre>what I can understand out of this is that all packets in <span style="font-weight: bold;">egress</span> of device are being redirected to dummy0, where as the need is to inject dummy 0 with packets in
<span style="font-weight: bold;">ingress</span> of the device so that shaping can be done for packets storming in for our system and not the packets leaving our system.<br>Policing can be done but here the requirement is for Shaping (queueing).
<br>With IMQ ingress shaping does work fine but the only question I have is how to shape packets coming in ingress of the device<br><br>I am enclosing my sample script suggest any changes that I can make to achieve the results.
<br><br>IP ADDRESS on which shaping needs to be done <a href="http://10.1.1.15">10.1.1.15</a> (host running the script)<br>IP ADDRESS from which packets are coming in ingress of eth0 which needs to be shaped: <a href="http://10.1.1.100">
10.1.1.100</a><br><br>Let me know the modifications required so that I am able to shape pakets destined for my system (<a href="http://10.1.1.15">10.1.1.15</a>).<br><br><br>kernel version: 2.6.16-2-686<br>iproute2 version: iproute2-ss060323
<br>OS: Debian<br><br>#!/bin/bash<br>export TC="/sbin/tc"<br><br>$TC qdisc del dev ifb0 root<br>$TC qdisc add dev ifb0 root handle 1: htb default 2<br><br>$TC class add dev ifb0 parent 1: classid 1:2 htb rate 10Kbit ceil 12Kbit
<br><br>$TC filter add dev ifb0 parent 1: protocol ip prio 2 u32 match ip src <a href="http://10.1.1.100/32">10.1.1.100/32</a> flowid 1:2<br><br>ifconfig ifb0 up<br>$TC qdisc del dev eth0 root handle 1: htb default 2<br>$TC qdisc add dev eth0 root handle 1: htb default 2
<br><br>$TC class add dev eth0 parent 1: classid 1:2 htb rate 10Kbit ceil 16Kbit<br><br>$TC filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip src <a href="http://10.1.1.100/32">10.1.1.100/32</a> flowid 1:2 action mirred egress redirect dev ifb0
<br><br><br><br>Thanks in advance :)<br><br><br><div><span class="gmail_quote">On 7/3/06, <b class="gmail_sendername">Rune Kock</b> <<a href="mailto:rune.kock@gmail.com">rune.kock@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> How to use IFB as replacement of IMQ<br>><br>> There is not much documentation about it<br>> Please explain with example<br><br>This is the docs that I have been able to find.<br><br><a href="http://linux-net.osdl.org/index.php/IFB">
http://linux-net.osdl.org/index.php/IFB</a><br><a href="http://marc.theaimsgroup.com/?l=linux-netdev&m=110712327422706&w=2">http://marc.theaimsgroup.com/?l=linux-netdev&m=110712327422706&w=2</a><br><a href="http://www.mail-archive.com/netdev@vger.kernel.org/msg04846.html">
http://www.mail-archive.com/netdev@vger.kernel.org/msg04846.html</a><br><a href="http://www.mail-archive.com/netdev@vger.kernel.org/msg04847.html">http://www.mail-archive.com/netdev@vger.kernel.org/msg04847.html</a><br><a href="http://www.mail-archive.com/netdev@vger.kernel.org/msg04900.html">
http://www.mail-archive.com/netdev@vger.kernel.org/msg04900.html</a><br><a href="http://www.mail-archive.com/netdev@vger.kernel.org/msg04901.html">http://www.mail-archive.com/netdev@vger.kernel.org/msg04901.html</a><br><br>
<br>Rune<br></blockquote></div><br><br clear="all"><br>-- <br>Failure seldom stops you. What stops you is the fear of failure.