Re: using linux with windows internet connection sharing

From: Andy Baxter (news4_at_earthsong.null.free-online.co.uk)
Date: 09/16/04


Date: Thu, 16 Sep 2004 20:41:16 +0100

Dances With Crows said:

> ["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.

The 'doze machine can browse web sites, so I assume all that's OK.

>> 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 ?

nameserver 192.168.0.1

i.e. dhcp has set up the windows machine as a DNS relay. This does seem to
be working - it returned an address for www.google.com which included the
usual www.google.akadns.net alias, so it must have looked something up.
The problem is that pinging that address doesn't return anything.

> '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.

That bit is working afaik - the linux box was being given an IP address
and default route, and pinging the windows machine works OK.

-- 
http://www.niftybits.ukfsn.org/
remove 'n-u-l-l' to email me. html mail or attachments will go in the spam
bin unless notified with [html] or [attachment] in the subject line. 


Relevant Pages

  • Re: basic question about assigning ip address
    ... - boot the Windows machine only (Linux machine off). ... Is the Internet connection working ...
    (Fedora)
  • Re: Setting Up NTP for Time Sync
    ... >> whether SNTP will interoperate with NTP on the linux machines I ... >> machine has a direct connection to the net, but the Linux machine can ... >> connect only via phone modem but it has a direct connection to the win ... what you really want to do then is to make your windows machine ...
    (comp.os.linux.networking)
  • Re: Setting Up NTP for Time Sync
    ... > not support ntp as a server. ... > connection between your linux machine and your windows machine. ... I do not need it connected to the internet all day. ...
    (comp.os.linux.networking)
  • Small SOHO email setup on Rh7.3
    ... I can telnet into the Linux machine from my Windows ... I cannot telnet to port 25 port from any Windows machine. ...
    (comp.os.linux.misc)
  • Re: File Transfer: Connect Fedora to Windows machine via ethernet without a router?
    ... run a dhcp server on the linux box and tell the windows machine to ... with anything else using the same scheme (like windows boxes). ... I'm on the university network every day, so this is important to know. ...
    (Fedora)