Re: Network Problems Upon Install


Subject: Re: Network Problems Upon Install
From: Mark Fassler (mfassler@terraplex.com)
Date: Wed Sep 08 1999 - 17:56:03 MDT


Phil Kirschner wrote...
>
> Just installed YDL on a beige G3 tower. When prompted for LAN
> settings, I entered all the info that was working for my machine in
> MacOS. When I booted into linux, the network didn't work, and I
> don't know how to remedy this. I can ping myself (ping the IP i
> assigned myself) and it returns fine, so I assume that proves my
> ethernet port works. ANY SUGGESTIONS? I am new to this, so I could
> use any help I can get.
>

One handy source of info for network is 'ifconfig'. As root, type

ifconfig

The output will be something like this (this is from a machine with one
ethernet card configured):

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          UP LOOPBACK RUNNING MTU:3924 Metric:1
          RX packets:185 errors:0 dropped:0 overruns:0 frame:0
          TX packets:185 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0

eth0 Link encap:Ethernet HWaddr 02:07:01:1A:38:DB
          inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:4578 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7286 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0
          Interrupt:9 Base address:0xff40

ifconfig (short for "interface config") allows you to manually configure
any aspect of a hardware network interface. Normally, you just want to
use the scripts provided ("ifup ifcfg-eth0" and "ifdown ifcfg-eth0") but
ifconfig is good for troubleshooting.

You should also check that you have the default route set correctly using
the "route" command. As root type, "route -n" to see your routing tables.
Most of it gets set up automagically, but you want to make sure that you
have a line that looks like this:

0.0.0.0 123.123.123.123 0.0.0.0 UG 0 0 0 eth0

or,

default my.gateway.com 0.0.0.0 UG 0 0 0 eth0

("route -n" gives you numeric results, whereas "route" gives you named
results. "route -n" is better if DNS isn't working yet.)

You might also want to check the files:
/etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-eth0

and make sure that everything in there is set how you think it should be.

-- 
Mark Fassler
Terra Soft Solutions, Inc.
   Yellow Dog Linux
   "The Ultimate Companion for a Dedicated Server"
   http://www.yellowdoglinux.com/



This archive was generated by hypermail 2a24 : Fri Oct 01 1999 - 16:13:43 MDT