From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Brill Date: Thu, 06 Jun 2002 07:45:51 +0000 Subject: Re: [LARTC] Problems with routes MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-d4Plfps5o3dbaCeQP9My" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-d4Plfps5o3dbaCeQP9My Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-06-06 at 01:42, Julian Anastasov wrote: >=20 > Hello, >=20 > On 5 Jun 2002, Alexander Brill wrote: >=20 > > Whenever I try to 'readd' a route I receive an error and I can't figure > > out why... > > > > # Add some routes > > ip route add $EXT via $INT > > ip route add prio 320 from $INT nat $EXT >=20 > ip rule add prio 320 from $INT nat $EXT >=20 > > # Delete them > > ip route del from $INT nat $EXT >=20 > ip route del prio 320 from $INT nat $EXT >=20 > > ip route del $EXT via $INT > > # Add again > > ip route add $EXT via $INT > > ip route add prio 320 from $INT nat $EXT >=20 > ip rule add prio 320 from $INT nat $EXT >=20 > > The last command exits with exit-code '2' and the message: > > RTNETLINK answers: Invalid argument >=20 > May be not only the last one :) >=20 > > What am I doing wrong? >=20 > Use ip rules for SNAT and ip routes for DNAT >=20 Thanks alot. Rather typical that you can't see your own typos ;) --=20 Alexander Brill http://www.project23.no PGP-key: http://alexb.egil.org/key.pub --=-d4Plfps5o3dbaCeQP9My Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA8/xMv2v4H2v0n/94RAvVOAKChlkSP0brK74A5j9XdMges35y33ACcD1CW 9YYygznaaBqwp30/vZ5NuvY= =/UlU -----END PGP SIGNATURE----- --=-d4Plfps5o3dbaCeQP9My-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/