From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Felber Date: Mon, 25 Aug 2003 20:25:37 +0000 Subject: Re: [LARTC] nano howto MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-D8qQeQoNS6rTcOLesBdO" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-D8qQeQoNS6rTcOLesBdO Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mo, 2003-08-25 at 20.26 Andres Gregori wrote: > Hello. Hi, > I've read the excellent "nano-howto" about how to > connect a LAN with two ISP connections. >=20 > http://www.ssi.bg/~ja/nano.txt okay. > I've readed and understood the how to, but what > happen when your ISP provide you a dynamic IP, > instead a fixed IP, as default gateway ? I assume you are using pppoe, if i recall correctly, you can grep the gateway address off the 'ifconfig ' output. =20 > In how-to, several times refer to IFE1, IFE2, > of course these are my eth0 and eth1 connections, > but when you refer to IPE1 and IPE2, I don't know > what must I put on this part on your script: >=20 > ip link set eth0 up > ip addr flush dev eth0 > ip addr add IPE1/NME1 brd BRD1 dev eth0 # HERE ! >=20 > ip link set eth1 up > ip addr flush dev eth1 > ip addr add IPE2/NME2 brd BRD2 dev eth1 # HERE ! >=20 IPE/NME is supposed to be the external ip 1 and its netmask. Since you are a single host, you can skip the NM part. if you don't want to skip, use either /255.255.255.255 the old way, or /32 the new way.=20 NWE is supposed to be you externernal IP-Range/Network, you don't have one. >=20 > ip rule add prio 201 from NWE1/NME1 table 201 > ip route add default via GWE1 dev eth0 src IPE1 proto > static table 201 > ip route append prohibit default table 201 metric 1 > proto static >=20 > ip rule add prio 202 from NWE2/NME2 table 202 > ip route add default via GWE2 dev eth0 src IPE2 proto > static table 202 > ip route append prohibit default table 202 metric 1 > proto static >=20 > What I must put on NWE1/NME1 IPE1, and NWE2/NME2 IPE2 see above. > Thank you very much for your help !!! (TIA) >=20 > Best regards, >=20 > Andres. greets, rob --=20 | Robert Felber (System-Administrator) Tel: +49 (0) 89 / 453 12-= 86 | | Autohaus Erich Kuttendreier Fax: +49 (0) 89 / 453 12-= 80 | | Drosselweg 21 ICQ: 1700594= 51 | | 81827 Muenchen Web: http://robtone.mine.= nu | | PGP: 896CF3= 0B | | PGP-Fingerprint: CF36 AA93 9716 63E8 962F 15CC A80E 1A79 BF77 25EA = | --=-D8qQeQoNS6rTcOLesBdO Content-Type: application/pgp-signature; name=signature.asc Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA/SnDBCn+wd4ls8wsRAuSiAJ9sMclTqHwqIK9YwHex/GEz+vbY/wCfeG1U IxLCQCxi5nq7k/YiFTwSEdM= =2D7R -----END PGP SIGNATURE----- --=-D8qQeQoNS6rTcOLesBdO-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/