From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Boncompte (DTI2) jorge@dti2.net Date: Mon, 12 Feb 2001 16:40:29 +0000 Subject: [LARTC] cheap line/expensive line situation. Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
    Hi

You have to add the route to the table that you have made the rule for.

    ip ro add network table 200 dev eth2(outer nic) via ispsgivengateway
                     ^^^^^^^^^^^^^^^^^

    Regards.

    -Jorge

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
Jorge Boncompte - T=E9cnico de sistemas
DTI2 - Desarrollo de la Tecnolog=EDa de las Comunicaciones
--------------------------------------------------------------
C/ Abogado Enriquez Barrios, 5   14004 CORDOBA (SPAIN)
Tlf: +34 957 761395 / FAX: +34 957 450380
--------------------------------------------------------------
jorge@dti2.net _-_-_-_-_-_-_-_-_-_-_-=
_-_-_ http://www.dti2.net
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
Without wicker a basket cannot be done.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D

----- Mensaje original -----
De: "Konrads Smelkov" <konrads@interbaltika.com>
Para: <lartc@mailman.ds9a.nl>
Enviado: martes, 13 de febrero de 2001 1:28
Asunto: [LARTC] cheap line/expensive line situation.

Hi,

I have a situation similar to cheap line/expensive line.
let's say two nic's one is on mygoodsubnet and other is provider's given ip
address for their subnets.

So i do:
iptables -t mangle -A PREROUTING -s mygoodsubnet/mask -j MARK --set-mark 2

ip ru add fwmark 2 table 200
ip ro add dev eth2(outer nic) via ispsgivengateway

and... it doesn't work :(

If you would tell me how to do it, i would maybe write a mini-HOWTO and post
it to linuxdoc :)

_______________________________________________
LARTC mailing list / LARTC@mailman=
.ds9a.nl
http://mailman.ds=
9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/