PDA

View Full Version : connecting linux to the internet using ICS on windows...



Huston
08-13-2005, 06:34 AM
Need some help. I am running windows 2000 server with ICS. I am running knoppix 3.6 on a box. It finds the network fine. I can print to my printer on my xp box, I can read files on both boxes. I cannot connect to the internet through my windows 2000 server box with knoppix. I have DHCP running for assigning IP addresses. My windows 2000 box connects to the internet via modem. I have searched and searched and still cannot find anything to help me out.. I just want to be able to connect to the internet through my windows 2000 box with knoppix. Thanks....sorry if I sould frustrated...

ockham23
08-13-2005, 10:03 AM
Hm, ICS should work with Knoppix. Here's how I would set it up:
1. Switch on windows machine.
2. Enable ICS for dial-up connection.
3. Boot second computer off Knoppix CD.
4. Run netcardconfig and select DHCP; Knoppix machine should now obtain IP address from windows machine.
5. Check IP addresses on windows host (e.g., 192.168.0.1) and client (e.g., 192.168.0.2) and have computers ping each other.
5. Start browser and enter URL. This should trigger dial-up connection on windows machine.

Troubleshooting suggestions:
1. Start Internet connection manually on windows machine after step 2.
2. Check firewall/security software on windows machine.
3. ICS with W2K Professional and early edition of Windows XP is buggy (mismatch between MTU settings on host and client). Try entering URLs of different web sites. If you can see some of them while others keep loading without any progress, you have to reduce MTU size on the client.

Hope this helps.

Huston
08-13-2005, 02:30 PM
Maybe I should mention that this is HDD install of Knoppix. I knew I would forget something. It holds the address fine. I can ping the other machines from knoppix. I can even ping the IP address assigned to me by my ISP. I just can't get to the internet with a browser. All the patches on the windows 2000 box are current. There isn't any security software installed that might affect it with connecting.

ockham23
08-13-2005, 02:59 PM
Run Knoppix from CD as I described, just to see whether it works at all. If it does, open a terminal window and type

ifconfig

Write down the output for eth0 or eth1 and compare it with the output you get when you run ifconfig from your hd install.

If you can see some sites in your browser, while others are not accessible, try lowering the MTU value for your NIC:


ifconfig eth0 mtu 1490

Keep decreasing it by 10 until you can connect. If this doesn't work, restore it to the initial value (usually 1500).

Huston
08-14-2005, 04:44 AM
Well I tried all of those, and I didn't seem to get anywhere. I can't seem to figure out the issue. It has to be something simple that I am missing.... I think. Is there any other configuration settings I can check or set. I am getting fustrated with it. I can do everything but surf the net with it through ICS. Anything else to try?

ockham23
08-14-2005, 11:08 AM
Well, it should work at least if you follow the steps that I posted previously. This setup, based on W2K Professional and Knoppix 3.7, worked for me in the past and did so again this morning.


Anything else to try?

There's always something else to try. Take NASA as an example. :wink:

In Windows:
- ICS should be enabled for your dial-up connection, not for LAN connection.
- Run ipconfig /all. NIC must have IP address 192.168.0.1

In Knoppix:
- Run ifconfig: Second line of output for eth0/eth1 (whichever you use to connect to your network) must look like this:


inet Adresse:192.168.0.6 Bcast:192.168.0.255 Maske:255.255.255.0

- Your etc/network/interfaces should look like this:


# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback

iface eth0 inet dhcp


Notice the last line with "dhcp" in it. This tells Knoppix to obtain an IP address from your windows server. Don't use static IP addresses!

I hope this helps!

kirol
08-14-2005, 02:05 PM
I can even ping the IP address assigned to me by my ISP.
Can you also reach other external sites? Try pinging 216.32.81.146 (www.knoppix.net). If that works, it is probably simply your /etc/resolv.conf file that is not properly configured, hence name resolution not working.

Huston
08-14-2005, 03:17 PM
Everything checked out fine with ifconfig. ipconfig /all showed everything as fine on windows end. The etc/network/interfaces was fine too. I could ping 216.32.81.146. Still no net surfing. My etc/resolv.conf has two lines it:

#Insert nameservers here
#nameserver 127.0.0.1

How do I configure this file to work with ICS, as I am not overly familiar with Linux in the first place.

ockham23
08-14-2005, 04:01 PM
Try this: Open root shell and type


mcedit /etc/resolv.conf

Replace "#nameserver 127.0.0.1" with "nameserver 192.168.0.1" (or use the IP address that ipconfig /all returned for your Windows server). Press F2 to save and F10 to quit. Reboot your computer and hope for the best.

kirol
08-14-2005, 04:04 PM
Check your DNS server address on the windows side (ipconfig /all). Copy it to an uncommented line in /etc/resolv.conf. (eg nameserver 101.102.103.104). You'll need to be root to edit this file. If you are unfamiliar with unix, I suggest you use the "mcedit" editor. BTW you should have gotten this parameter automatically just like for your dynamic IP, but hopefully that should be all you were missing. Please report back.

Huston
08-14-2005, 04:34 PM
The DNS entry is what was missing. Kword worked fine for editing. I redid my DHCP also. My problem is fixed. Thanks for all of your help. I appreciate it.