Re: using linux with windows internet connection sharing

From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 09/16/04


Date: 16 Sep 2004 17:50:03 GMT


["Followup-To:" header set to comp.os.linux.misc.]
On Thu, 16 Sep 2004 19:29:40 +0100, Andy Baxter staggered into the Black
Sun and said:
> I'm setting up a linux machine on a small network that is using a
> windows machine to connect the network to the internet via a usb DSL
> modem.
>
> The linux machine is getting its IP address and gateway OK using DHCP,
> and the windows machine seems to be working right as a DNS relay (it
> returned an address for google)

So you're saying that you can do "PING google.com" from a CMD window on
the 'Doze machine and everything works OK. That's good.

> But when I ping google [from the Linux machine], nothing comes
> back. Pinging the gateway machine (192.168.0.1) does work.

So, what's in the Linux box's /etc/resolv.conf ? 'Doze ICS is supposed
to set up a DHCP server on the 'Doze machine, and that DHCP server is
supposed to provide information to its clients like "this is your IP,
this is your netmask, these are your DNS servers". If there's nothing
(or incorrect information) in your Linux machine's resolv.conf , then
DNS won't work on the Linux box.

> Want to know if there are any known problems with setting up linux
> machines on a windows network like this, and how to work round it?

I've never used Windows ICS, because I don't trust Windows to be good at
IP-Masqing or gateway/firewall duties. If there's no info or incorrect
info in resolv.conf , take the Linux machine's NIC down, then start it
up again with "dhcpcd -d eth0". The -d will make dhcpcd write out a set
of log messages to syslog that may shed some light on what's really
going on. HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages