[TAG] how to share internet from a linux server
j.bakshi@icmail.net
j.bakshi
Mon Jan 15 08:01:18 MSK 2007
----- Original Message Follows -----
From: Kapil Hari Paranjape <kapil at imsc.res.in>
To: TAG <tag at lists.linuxgazette.net>
To: j.bakshi at icmail.net
Cc: The Answer Gang <tag at lists.linuxgazette.net>
Subject: Re: [TAG] how to share internet from a linux server
Date: Sat, 13 Jan 2007 07:52:33 -0800
> Hello,
>
> On Sat, 13 Jan 2007, j.bakshi at icmail.net wrote:
> > isp 1--->[ eth0(used to dial isp1) linux eth1]---> [wan2
> > port of router] -----> [hub]--> client PCs
>
> I still think that putting the router in the middle is
> needless source of confusion in your network. You *can*
> use it as a DHCP server even if you link eth1 directly to
> the hub and use just one port of your router also
> connected to the hub.
>
> Still, the network layout as you gave it, *can* work if
> configured properly.
>
> > now here is the setting of eth1
> > -----------------------------------------------------
> > ip ---> 192.168.0.2
> > mask --> 255.255.255.0
> > gateway --> gateway of eth0
> > dns ----> dns of eth0
> <snipped a lot of stuff>
>
> > clients pc settings
> > -----------------------------------
> > DHCP enable. bcoz the load balancing router has DHCP
> > server inbuilt
> > gateway ---> 192.168.1.2
> <snipped a lot of stuff>
>
> > Could any one kindly point out my mistake ?
>
> What is the Linux box to do when it has a packet which is
> destined for 192.168.1.x?
>
> As far as I can make out from your description that packet
> is destined for eth0!
>
Please note ( as I mentioned in my previous mail) that the
only reason using the linux box with 2 lan is eth0 is used
to
dial up the 24online isp and then eth1 is used to redirect
the connection
into the wan port of the router.
the utility of this router, it is a load balancing router
with 2 wan port.
one wan port is connected with data one BSNL connection
and the other port I am trying to connect with 24online
hence
I'll get a load balancing setup. but I can't take out the
24online from the linux box due to configuration problem :-(
> Thus you need to have a route on your Linux box
> route add -net 192.168.1.0/255.255.255.0 gateway
> 192.168.0.144 (where 192.168.0.144 is the address of your
> router port which is connect to the box). Now, if your wan
> router is configured to do this it will send the packets
> to the correct machine.
>
> Regards,
>
> Kapil.
> --
More information about the TAG
mailing list