LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-08-2006, 07:19 PM   #1
adodo
LQ Newbie
 
Registered: May 2004
Posts: 3

Rep: Reputation: 0
eth0: ERROR while getting interface flags: No such device - using Kanotix


I have installed Kanotix on my hard drive, but I am having trouble getting the ethernet driver working.

I have an ASUS P4C800 deluxe motherboard. (875 chipset) Based on my experiences to date, I won't be recommending this particular board to anyone.

Why did I choose Kanotix?
Well it was the first distribution I have found that accurately detected most of my hardware and the functionality I desired appeared to work from the live CD.

However after installing to the hard drive I have the following problem. Only a loopback network interface appears when I execute 'ifconfig'. If I execute 'dhclient eth0' I receive the following error message:

eth0: ERROR while getting interface flags: No such device

I would post this problem to the Kanotix forum, except I don't know German and could not seem to find a forum registration page in English.

I would love to get my nic working, so I don't mind delving into debug logs and boot scripts, if anyone is able to provide me helpful hints on how to compare the live cd system with the one that gets installed on the hard drive.

Other bits of information that might help:
the onboard nic is a 3com.
near as I can tell both knoppix and kanotix live cds are using the sk98lin driver.
knoppix does not give me suitable video resolution, so I have not bothered trying to install it.

Thanks in advance to anyone who may be able to help.
 
Old 04-10-2006, 04:54 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
near as I can tell both knoppix and kanotix live cds are using the sk98lin driver
If you're sure about that then run, as root:
Code:
modprobe sk98lin
and take a look at the output of "dmesg". If there are no errors then you can use your distro's network config tool to configure your network.
If you see errors in "dmesg" then you should use another driver. To verify your nic's model run:
Code:
lspci -v|grep -i ethernet
and load the driver for that model.

Regards
 
Old 04-10-2006, 06:22 AM   #3
adodo
LQ Newbie
 
Registered: May 2004
Posts: 3

Original Poster
Rep: Reputation: 0
I tried modprobe sk98lin. No errors in dmesg that I noticed. Executing "dhclient eth0" returned this:

Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

firewire0: unknown hardware address type 24
eth0: ERROR while getting interface flags: No such device
firewire0: unknown hardware address type 24
Bind socket to interface: No such device
exiting.

"lspci -v|grep -i ethernet" returned this:

0000:02:05.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)

Of interest to me, "cat /proc/modules" included these:

sk98lin 196184 0 - Live 0xf9555000
skge 32656 0 - Live 0xf9464000

When I looked back through /var/log/dmesg, I found these:

skge addr 0xfeaf8000 irq 11 chip Yukon rev 1
skge eth0: addr <mac-address>

Then I booted the system up through the live CD. This post is done through live cd system.

Booting the live CD system does not seem to write log files - both dmesg and messges showed up as empty when cat-ed and showed 0 bytes size when ls-ed.

"cat /proc/modules" included these:

sk98lin 196184 0 - Live 0xf94bd000
skge 32656 0 - Live 0xf93bc000

"dhclient eth0" returned this:

Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

eth1: unknown hardware address type 24
eth1: unknown hardware address type 24
Listening on LPF/eth0/<mac-address>
Sending on LPF/eth0/<mac-address>
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
receive_packet failed on eth0: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.100 -- renewal in 3600 seconds.

ifconfig obviously returns an eth0 interface as well as the lo interface.

See why I am somewhat baffled.

Last edited by adodo; 04-10-2006 at 06:27 AM.
 
Old 04-10-2006, 07:28 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,895

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Try to add the following in your /etc/modprobe.conf:
Code:
alias eth0 sk98lin
to see if it helps. Else according to this you have to d/l and compile yourself the kernel module for you nic from Asus.
 
Old 04-11-2006, 04:04 AM   #5
adodo
LQ Newbie
 
Registered: May 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Found a workaround to activate my ethernet

Thanks for the help.

I don't consider the following to be a complete solution, but it is a work around to get my nic working.

The sk98lin was the correct driver it turns out. Here is what I discovered:
If I removed the sk98lin and skge modules from memory then used modprobe to reload the sk98lin module, my nic would start working.

Now I just need to work my way through the startup scripts and edit the appropriate one, if I can find it so that my nic will work from startup
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bringing up interface eth0 error tommytomato Linux - Networking 1 11-05-2005 11:56 PM
915gavl--eth0: unknown interface: No such device dgermann Linux - Networking 1 06-25-2005 04:05 PM
Bringing up interface eth0 error tommytomato Linux - Newbie 11 05-19-2004 09:10 PM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM
Mandrake no such interface, device etc eth0 nforce DijitalX Linux - Networking 3 11-16-2003 10:25 PM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration