sharing internet connection by three boxes
I've got problems with installing internet on three boxes.
I've already got internet on two of them. One is Aurox 11.0 Linux and that's where internet gate is (two net adapters, one for internet the other for Win XP), another is Win XP. It's working fine, but I'd want to add third box to this configuration. I added third adapter to Linux box and it has installed fine but when I plug third computer (Win 98) there is no internet on both boxes behind Linux.
Here is my config with two boxes:
10.0.9.12 - IP address required by my provider (eth0)
255.255.255.0 - mask
192.168.0.1 - IP of the card used to connect to Win XP (eth1)
255.255.0.0 - mask
192.168.0.2 - IP of Win XP
255.255.0.0 - mask
now I added third net adapter and gave it following IP:
192.168.0.3 - eth2
and configured Win98 adapter as 192.168.0.4
The result is that there is no internet on both XP and 98.
There even is no ping response between Linux and 98.
What's going on?.
In advance, thanks for response.
Is there a reson that you don't connect all the machines to a single network switch so you don't need 4 nics in the linux machine? They are all on the same 192.168.0 subnet so it would seem logical to hook them up that way.
Also, If you don't mind dedicating the linux machine as router, then you could install a firewall distro like ipcop. It takes the work out of configuring iptables.
Yea, I know of shortcommings of my solution but I have no router but I have enough net adapters to do it the way I depicted. I don't mind one (Linux) box having to be turned on to have internet on other boxes but I want to have full-fledged Linux on it. As far as I know IPCop is cut version used only for router purposes.
I have switch (but not installed) but with it I could have internet only on one box, either one or another, never both. Isn't it strange?.
*Firewall can also block this.// Check the status of firewall & rules.
*Bad cross cat5/6 UTP network cable or crimping can also result in this.//Check with another cross cable.
*Interchange the ethernet interface for XP & 98 @ linux box.
I would set up the hardware this way:
Then using your choice of software, set up IP masquerading, and possibly dhcp on the LAN side of your linux box. What this will do is turn your linux box into a server for your lan, and at the same time make adding more machines later much simpler.... just keep plugging them into your switch until the ports are all full.
Good luck, and if you need more help with the sofware side, or this doesnt make sence, just let us know`
i think what this guy is tring to accomplish is to setup a home network without breaking down and buying a switch...
wich is fine i don't linke to spend money when i dont HAVE TOO. :D
what you need to do is bridge the conections.
how did you orriginaly setup the first two nics?
do the third the same way and all should work fine.
eth0 - ip: 10.0.9.12
and i would set all the others to the same ip:
eth1 - 192.168.1.1
eth2 - 192.168.1.1
eth3 - 192.168.1.1
i beleave this would work if not the just do:
eth1 - 192.168.1.1
eth2 - 192.168.1.2
eth3 - 192.168.1.3
i've never done this before but i know its possible it just needs to be set right...
after all what do you think routers do... you can surf the web for linux router howtos...
i beleve there is a distro made just for this purpose...
although you can dothis with any linux distro...
you do it by bridging connections and transfering packets using IPtables...
i've been thinking about making a linux firewall/router too... GOOD LUCK...
this might be a helpful source:
Ill help out as much as i can...
|All times are GMT -5. The time now is 04:27 AM.|