LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure "eth0"? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-eth0-203579/)

ScislaC 07-10-2004 10:20 PM

how to configure "eth0"?
 
I've tried in both Mandrake & Knoppix to get my NIC working and am just a little to uneducated with this stuff... When Mandrake boots it if I hit Esc for Verbose it says "eth0 [failed]"... It can detect it though in the configuration for the card (it recommends drivers, but then still doesn't work). It's a Linksys LNE100TX v4 and since it can detect it, I assume it's just not configured correctly. Anyone have any recomendations?

btmiller 07-10-2004 10:29 PM

Type "/sbin/ifconfig eth0" at the command prompt. If you see some cryptic looking junk, that's good. If you see something like "eth0: device not found" then your card isn't detected. Since your card is fairly standard issue and you say it is detected, I'll assume it actually is, unless you say otherwise after running ifconfig.

The next piece of information is how the card should be configured, i.e. do you have a static IP address or do you use DHCP? If you use DHCP, life is pretty simple, you can usually just type dhcpcd to start the DHCP client and it should get an IP address and set up everything for you. If it fails, then there's some problem with your DHCP server -- I suspect this might be what's giving you those failed messages.

You can probably use a static IP address until you figure out the problem. Do you know what IP addresses are used on your network? If your IP address is supposed to be, for instance, 192.168.0.10 you would do:

ifconfig eth0 192.168.0.10 netmask 255.255.255.0 up

(change the netmask if it's different for your subnet).

If you have a default gateway say at 192.168.0.1 you set that up with:

route add default gw 192.168.0.1

You'll have to add your nameservers to /etc/resolv.conf and you should be set. A reolv.conf lines looks like:

nameserver x.y.z.w

where x.y.z.w is the IP address of the nameserver.


All times are GMT -5. The time now is 06:59 PM.