Re: using linux with windows internet connection sharing
From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 09/16/04
- Next message: Chris F.A. Johnson: "Re: partition size limit"
- Previous message: Grant Edwards: "Re: Mandrake 10.0 ifplugd can't update resolv.conf"
- In reply to: Andy Baxter: "Re: using linux with windows internet connection sharing"
- Next in thread: Andy Baxter: "Re: using linux with windows internet connection sharing"
- Reply: Andy Baxter: "Re: using linux with windows internet connection sharing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Sep 2004 18:49:18 GMT
On Thu, 16 Sep 2004 20:41:16 +0100, Andy Baxter staggered into the Black
Sun and said:
> Dances With Crows said:
>> 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)
>
>>> 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 [...]
> The problem is that pinging that address doesn't return anything.
Doesn't return anything? Not even "Destination Host Unreachable"?
Weird. "route -n" on the Linux machine should show something like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
The last line shows that all packets that aren't destined for the
192.168.0.0 network should be routed to 192.168.0.1 for delivery. Make
sure your route -n output looks correct; post it if you have questions.
You may also have to do the Windows equivalent of "echo 1 >
/proc/sys/net/ipv4/ip_forward" so that the 'Doze machine will forward
packets from the Linux machine to the wide Net and vice versa. I don't
know where exactly this setting might be under 'Doze though.
>> 'Doze ICS is supposed to set up a DHCP server on the 'Doze machine,
>> and that DHCP server is supposed to provide information
> That bit is working afaik - the linux box was being given an IP
> address and default route, and pinging the windows machine works OK.
OK, that's good. Now the problem is figuring out why packet forwarding
and/or IP-Masqing aren't working. This is *probably* a Windows problem.
I don't know very much about Windows ICS though. You may have better
luck on a Windows newsgroup.
-- 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
- Next message: Chris F.A. Johnson: "Re: partition size limit"
- Previous message: Grant Edwards: "Re: Mandrake 10.0 ifplugd can't update resolv.conf"
- In reply to: Andy Baxter: "Re: using linux with windows internet connection sharing"
- Next in thread: Andy Baxter: "Re: using linux with windows internet connection sharing"
- Reply: Andy Baxter: "Re: using linux with windows internet connection sharing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|