August 18th, 2002, 12:22 PM
Win2k Linux Internet Sharing
Can anyone help?
I have 2 PC's -
PC1 is my main PC and is running Win2k, has a ADSL connection via modem and an Ethernet card.
PC2 is running RedHat Linux 7.2 and has an Ethernet card.
I have set up the IP address for PC1 as 10.0.0.3 and for PC2 as 10.0.0.2.
I can ping between the PC's no trouble.
I want to be able to do two things -
1. Set up Internet sharing ie use the Linux box to access the Internet through the connection on the Win2K box
2. Have the Linux box serve as a web server - ie be able to access it from the Win2k box via a browser - http://linux_box_IP/myfiles.html
I have option 2 working great.
The problem is with option 1.
This is what is happening -
If I set up the Network connection for the ADSL modem to 'share' using the LAN connection (set up for the Win2k/Linux LAN) It resets the IP of the LAN to 192.168.0.1.
If I then try to ping the Linux box - I get time out errors. I also cannot ping 192.168.0.1 from the Linux box.
I am totally stuck. Does anyone know how to set this up, or know a link where this is documented?
August 19th, 2002, 04:13 AM
Have you tried setting the Linux to 192.168.0.2?
August 19th, 2002, 05:20 AM
Ok I have set up 'sharing' on the win2k box, so this has reset the IP address for 'mylan' connection to 192.168.0.1. Subnet Mask 255.255.255.0. (No default Gateway address)
I have set the network for the Linux box to:
Subnet Mask 255.255.255.0
After rebooting both machines I can now ping between them again. Great
OK so now how do I intiate Internet access from the Linux box? It uses Mozilla and there doesn't appear to be anywhere to tell it how to connect!
Any advice please
August 19th, 2002, 11:55 AM
I am really close here.
I have set up Mozilla to use HTTP Proxy 192.168.0.1 (The IP of my win2k box) It is connecting through to the box BUT I get a -
'The connection was refused error' in Mozilla
I have a firewall on the win2k machine but configured this to allow traffic from the Linux box - firewall logs show it is allowing traffic through ok, so there is something not quite right either with the win2k setup or maybe I am using the wrong info in Mozilla.
I hate to get this close and not finish. can anyone give me some pointers?
August 19th, 2002, 01:52 PM
i doubt that windows 2000 installs a proxy when you start ics.
setting the box up as gateway should be sufficient. i think the problem is another: you probably didīt setup dns on the linux machine. i think you can give it the windows serverīs ip (if it has dns services running) or the ip of any dns-server on the īnet.
i read there is a "upnp" implementation for linux that supports remote control of the ics. but canīt remember where i read that
August 19th, 2002, 03:35 PM
Thank you for your reply.
The problem is if I just have Mozilla set to a direct internet connection I get a message -
'www.whatever.com could not be found'
Checking on the wink2 box, the connection isn't even going through, so its stopping at the Linux box somewhere.
I tried setting the Primary DNS for the Linux Box to the IP of the win2k box and that doesn't help. Maybe it needs further configuring but I'm stuck and out of ideas
August 20th, 2002, 02:52 PM
look up your providerīs dns server. double click on the network icon in your taskbar tray, itīs told on the "details" tab.
if you donīt have this icon, try to connect to your provider while you are already connected, it comes up then too.
enter this DNS Serverīs IP in your linux box. does it work?
if not, try to ping this IP from your linux box. do you get an answer?
August 20th, 2002, 03:35 PM
By issuing ipconfig /all from the Win2k Command-Line the DNS's show up, so I set them in the Linux box and the thing connects great - a little slow but I think that is a Netscape/Mozilla thing.