From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damion de Soto Date: Mon, 10 Nov 2003 23:55:22 +0000 Subject: Re: [LARTC] routing problem Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Meretei Bal=E1zs wrote: > I've an interface (eth0) and its address (eg. 195.150.0.11) routed=20 > throught 195.150.0.1=20 > I made an alias 193.144.0.11 too (eth0:1) > but I have to route the second subnet trought an other router (193.144.0.= 1) I'm pretty sure you need source-based routing here. (or is that policy-base= d ?) you setup 2 routing tables, and then make rules that say packets from 195.1= 50.0.0 go=20 into one (which has a default gateway of 195.150.0.1) and packets from the = other=20 network go into the second routing table, with a gw of 193.144.0.1 take a look at: http://lartc.org/howto/lartc.rpdb.html#LARTC.RPDB.SIMPLE and maybe: http://linux-ip.net/html/ch-routing.html http://linux-ip.net/gl/ip-cref/ it's pretty easy once you work out what needs to happen. --=20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@snapgear.com SnapGear --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Free Embedded Linux Distro at http://www.snapgear.org --- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/