<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.3">
</HEAD>
<BODY>
Hello,<BR>
<BR>
I have a linux box with two NICs (eth0 and eth1), setup as a bridge.<BR>
<BR>
The bridge (br0) sits between a server machine and a client&nbsp; machine.<BR>
<BR>
The server machine is connected to eth0.<BR>
<BR>
The client machine is connected to eth1.<BR>
<BR>
I want to apply a combination of netem rules and tbf traffic shaping rules to eth0 and eth1 (identical rules for each NIC), so that forward and reverse traffic are subjected to same network conditions.<BR>
<BR>
The rules written individually are as follows:<BR>
<BR>
tc qdisc add dev eth0 root netem delay 164ms 30ms distribution normal<BR>
tc qdisc add dev eth0 root tbf rate 4017.52kbit latency 0.00477ms burst 4352<BR>
<BR>
tc qdisc add dev eth1 root netem delay 164ms 30ms distribution normal<BR>
tc qdisc add dev eth1 root tbf rate 4017.52kbit latency 0.00477ms burst 4352<BR>
<BR>
But obviously the above commands are not accepted, and I would like some guidance on how to apply these rules.<BR>
<BR>
Thanks for your time.<BR>
<BR>
Ritesh<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
---<BR>
<TT><FONT COLOR="#0000ff">Adaptive Communications Networks Research Group</FONT></TT><BR>
<TT><FONT COLOR="#0000ff">Electronic Engineering Dept.</FONT></TT><BR>
<TT><FONT COLOR="#0000ff">Aston University</FONT></TT><BR>
<TT><FONT COLOR="#0000ff">Birmingham</FONT></TT><BR>
<TT><FONT COLOR="#0000ff">B7 4ET</FONT></TT><BR>
<BR>
<TT><FONT COLOR="#0000ff">t: +44</FONT></TT><TT><FONT COLOR="#0000ff"><FONT SIZE="1"> </FONT></FONT></TT><TT><FONT COLOR="#0000ff">(0)7732 069 667</FONT></TT><BR>
<TT><FONT COLOR="#0000ff">e: taankr@aston.ac.uk</FONT></TT><BR>
<TT><FONT COLOR="#0000ff">w: <A HREF="http://www-users.aston.ac.uk/~taankr/">www-users.aston.ac.uk/~taankr</A></FONT></TT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>