[lug] network settings

Calvin Dodge caldodge at fpcc.net
Wed Sep 20 04:52:11 MDT 2000


KRITZBERG DAVID OWEN wrote:
> 
> I think I may be making a simple mistake configuring my Mandrake 7.1
> install for the ethernet. Linux recognizes the nic card correctly
> and I can ping the other computers that are connected to the same
> hub, but I cannot for example ping colorado.edu, and my machine is on
> the university of colorado network. I have no idea whether there

Can you ping colorado.edu if you do it by IP address? (128.138.240.1)

If yes, then you need to reference a DNS server in /etc/resolv.conf.

If no, then you need to set a default route to the outside world.

On the assumption that the other computers on the local hub can ping the
outside world, I'd suggest you check their settings ('cat /etc/resolv/conf' and
'netstat -nr" on Linux, "winipcfg" on Windows, Control Panel:TCP/IP settings on
the Mac).

Here's the (edited) result of 'netstat -nr' on the computer I'm using right
now:

192.168.1.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth0
192.168.2.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth1
64.24.104.226   0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         64.24.104.226   0.0.0.0         UG        0 0          0 ppp0

Note the entry with "UG" (the "G" is for "gateway") in the fourth column. 
That's my current default route to the outside world (set by pppd on dialup).

You need a entry like that in your network tables.  You can put it there with
linuxconf (if you have it) or 'route add default gw XXX.XXX.XXX.XXX' (I think -
I'm a little weak on the usage of "route".

Calvin

-- 
Calvin Dodge
Certified Linux Bigot
http://www.caldodge.fpcc.net




More information about the LUG mailing list