[Techtalk] no gateway, yet it works!
Meredydd Luff
meredydd at everybuddy.com
Thu Sep 12 11:52:49 EST 2002
DHCP is capable of discovering a gateway automatically along with the IP, so
the gateway won't have been specified in any of your config files. Also,
ifconfig isn't the program to use to discover a gateway - if you want to look
at the routing table, use "route". "route -n" is what I usually use, as it
doesn't bother with reverse-lookups for all the IPs it sees. You'll see one
down for "default" or "0.0.0.0" - that's your gateway.
Meredydd
On Thursday 12 September 2002 05:25, Carla Schroder wrote:
> OK, here's a fun lil mystery. Nowhere can I find a gateway setting on my
> home network- I have a little Linksys NAT firewall box. The gateway is
> 192.168.1.1, how original, but none of the client PCs have a gateway
> assigned to them. I've looked in every config file I can find:
> -redhat-config-network, the GUI configurator
> -/etc/sysconfig/network- empty
>
> ifconfig shows no gateway. so why does it work? I have Internet and DHCP
> and everything, how in de hell do the client PCs find the Linksys box???
>
> I thought I knew this stuff......
--
MSN Developer, Everybuddy project
http://www.everybuddy.com/
MSN: blip109 at hotmail.com
AIM: blip109
Yahoo: modula7
More information about the Techtalk
mailing list