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. > > 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 <device>' output. > 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: > > ip link set eth0 up > ip addr flush dev eth0 > ip addr add IPE1/NME1 brd BRD1 dev eth0 # HERE ! > > ip link set eth1 up > ip addr flush dev eth1 > ip addr add IPE2/NME2 brd BRD2 dev eth1 # HERE ! > 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. NWE is supposed to be you externernal IP-Range/Network, you don't have one. > > 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 > > 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 > > What I must put on NWE1/NME1 IPE1, and NWE2/NME2 IPE2 see above. > Thank you very much for your help !!! (TIA) > > Best regards, > > Andres. greets, rob -- | Robert Felber (System-Administrator) Tel: +49 (0) 89 / 453 12-86 | | Autohaus Erich Kuttendreier Fax: +49 (0) 89 / 453 12-80 | | Drosselweg 21 ICQ: 170059451 | | 81827 Muenchen Web: http://robtone.mine.nu | | PGP: 896CF30B | | PGP-Fingerprint: CF36 AA93 9716 63E8 962F 15CC A80E 1A79 BF77 25EA |
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil