From: Kim Jensen Subject: Re: IP TOS based routing Date: Wed, 26 Mar 2003 13:16:35 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200303261316.35019.kimj@dawn.dk> References: <3E80187B.5030209@cs.helsinki.fi> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <3E80187B.5030209@cs.helsinki.fi> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Simone Leggio , netfilter@lists.netfilter.org On Tuesday 25 March 2003 09:51, Simone Leggio wrote: > Hi all, > > I have to send prioritised traffic from host A to host B. > > The priority 1 is identified by an IP TOS value of, say 46. > The priority 2 is identified by an IP TOS value of, say 26. > > In my network topology, there are two possible routes from host A to > host B, one through host A's network interface eth0 and the other one > through eth1. > > I'd like to know whether it is possible, and if so how, with traffic > control to set filters so that packets with TOS 46 are sent to host B > via eth0 and packets with TOS 26 via eth1. > > Note that the destination address for all the packets is the same, what > I need is just to route through different interfaces to the same > destination. > Hi Simone, Try to use the mangle table to mark your packets which match a specific T= OS,=20 and then add a second routing table with the alternative default connecti= on.=20 That should work. You can find more info on: http://linux-ip.net/html/adv-multi-internet.html http://www.ssi.bg/~ja/nano.txt /Kim