LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-01-2003, 07:59 PM   #1
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Rep: Reputation: 15
problems with eth0 interface


hi friends!

i ve a debian 3.0 woody. i ve compiled the kernel 2.4.21. i think that i ve configured it well, but now i havent got my eth0 interface. if i do $ifconfig, it shows only the loopback interface and if i do $ifconifg eth0 it shows:
eth0: error fetching interface infoemation: device not found.
i ve got a Realteck RTL8139 PCI card and i think that i ve enabled it ok in the kernel config (but this is not sure 100%).
the /etc/hosts ans /etc/network/interfaces files are ok.

what can be wrong? is this a common problem? what can i do?

thanks and sorry for my poor english.
bye!
 
Old 07-02-2003, 12:07 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
What happens if you do an ifconfig eth0 192.168.0.1 (or what ever you want the IP address to be)?
 
Old 07-02-2003, 01:59 AM   #3
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Original Poster
Rep: Reputation: 15
#ifconfig eth 172.26.0.4

SIOCSIFADDR: no such device
eth: ERROR while getting inertface flags: No sucho devices

bye
 
Old 07-02-2003, 02:10 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Sounds like you did not enable support for your card. To check in a console window cat /path/to/config_file | grep 8139.
 
Old 07-02-2003, 02:36 AM   #5
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Original Poster
Rep: Reputation: 15
$cat .config | grep 8139

#CONFIG_8139CP is not set
CONFIG_8139TOO = y
# CONFIG_8139TO_PIO is not set
CONFIG_8139TOO_TUNE_TWISTER=y
CONFIG_8139TOO_8129=y
# CONFIG_8139_ODL_RX_RESET is not set

thanks for your time
 
Old 07-02-2003, 02:56 AM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you checked to see if the card is actually recognized on boot. dmesg | grep eth0 or lspci -v in a console window.
[edit]Maybe even lsmod to make sure the module was loaded. Places to check for the modules /etc/modules or /etc/modutils/aliases. Also I have a card that uses the tulip module and I had to put an aliases (alias eth0 tulip) in the /etc/modutils/aliases and run update-modules for the card to work when the module was loaded you may want to try this as well for your card.[/edit]

Last edited by HappyTux; 07-02-2003 at 03:07 AM.
 
Old 07-02-2003, 03:12 AM   #7
krakan
LQ Newbie
 
Registered: Jul 2002
Location: Stockholm, Sweden
Distribution: Debian
Posts: 16

Rep: Reputation: 2
> #ifconfig eth 172.26.0.4

> SIOCSIFADDR: no such device
> eth: ERROR while getting inertface flags: No sucho devices

Was that a typo? You did try "ifconfig eth0 172.26.0.4" too, didn't you?
 
Old 07-02-2003, 04:47 AM   #8
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Original Poster
Rep: Reputation: 15
first, thanks for your help.

1.- dmesg | grep eth0
it shows nothing.

2.- lspci -v
it shows :
...

00:07.3 Bridge: Intel Corp. 82371AB PIIX4 ACPI (rev 00)
Flags: medium devsel, IRQ 9

...

00:10.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (rev 0)
Flags: medium devsel, IRQ 9
I/O ports at 1080 [size=32]
Memory at fd0000000 (32-bit, non-prefetchable) [disabled] [size=32]


i dont understand this very well...

3.- lsmod

i havent got modules. this is the first or second time that i compile the kernel, and at the moment i preffer to built-in all in the kernel.
this may be the cause of my error?

in /etc/modules i ve got: af_packet

in /etc/modutils/aliases i ve gor nothing related with eth0.

4.- sorry, i wanted to say:
#ifconfig eth0 172.26.0.4

but this doesnt work and
#ifconfig eth .......
or #ifconfig eth1 ... neither

thanks and sorry for my poor english.
bye

pd: thanks for your help. i am seeing that the linux community is fantastic!

Last edited by serji; 07-02-2003 at 04:54 AM.
 
Old 07-02-2003, 12:29 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Well the card is there but it is not getting initialized during boot it looks like it is sharing an irq. Have you tried moving the card to another slot on the motherboard especially if it is in the slot next to the AGP. Compiling the module into the kernel should cause no problems.

Have you tried compiling the 2.4.21 with your working old .config making no changes and getting a working kernel then after this recompile removing the things you know you don't need and including support for your hardware this may be a better approach.

BTW your English is fine.

[edit]
I just noticed that you posted this in the members intro forum although double posting is discouraged you should think about posting this in another forum where more people will have the opportunity to respond to your problem. Maybe include a link to this thread as well.
[/edit]

Last edited by HappyTux; 07-02-2003 at 12:34 PM.
 
Old 07-02-2003, 12:46 PM   #10
solspin
Member
 
Registered: Apr 2003
Location: California, USA
Distribution: What works
Posts: 97

Rep: Reputation: 15
Try to recompile the kernel with the eth0 driver as a module. I was not able to pass any options to a compiled in driver. The modules.conf file is for modules, not compiled in drivers. When you say "alias eth0 tulip" in the modules.conf file, the system looks for the tulip.o driver in the kernel directories, but when the driver is compiled in the kernel, tulip.o does not exist. If you must have compiled in drivers, then pass the options to the kernel at boot time in the GRUB file, or whatever other boot method used.
 
Old 07-02-2003, 01:10 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
please try to use the correct forums, this is for saying "hello" only. moved to networking forums, thanks.
 
Old 07-04-2003, 07:52 AM   #12
serji
LQ Newbie
 
Registered: Jun 2003
Location: spain
Distribution: debian 3.0, FreeBSD 4.7
Posts: 27

Original Poster
Rep: Reputation: 15
Hi friends!

finally, i ve compiled the 2.4.21 kernel and the eth0 interface works ok. i ve followed your advice Happytux and i ve compiled the 2.4.21 with my working old .config.

thanks.

Now, i ve got a problem with NVIDIA drives. I ve explained it in the General forum.
 
Old 07-19-2003, 06:53 AM   #13
General_Tso
Member
 
Registered: Jan 2003
Location: New York, NY, USA
Distribution: Mac OS X (10.4.6), Ubuntu 6.06
Posts: 183

Rep: Reputation: 30
Quote:
Originally posted by HappyTux
Have you checked to see if the card is actually recognized on boot. dmesg | grep eth0 or lspci -v in a console window.
[edit]Maybe even lsmod to make sure the module was loaded. Places to check for the modules /etc/modules or /etc/modutils/aliases. Also I have a card that uses the tulip module and I had to put an aliases (alias eth0 tulip) in the /etc/modutils/aliases and run update-modules for the card to work when the module was loaded you may want to try this as well for your card.[/edit]
HappyTux,

I had a similar problem to serji when I installed Woody BF2.4. After the basic system install, I could not access apt-get sources during apt-get configuration. Another thread led me hear, and I tried the lspci -v command with the following results:

Quote:
02:0c.0 Ethernet controller: 3Com Corporation 3c905C-TX [Fast Etherlink] (rev 78)
Subsystem: Dell Computer Corporation: Unknown device 00c7
Flags: bus master, medium devsel, latency 64, IRQ 3
I/O ports at ec80 [size=128]
Memory at fbfff400 (32-bit, non-prefetchable) [size=128]
Expansion ROM at fc000000 [disabled] [size=128k]
Capabilities: <availability only to root>
There is also a device that I'm not sure about:

Quote:
[OHCI])
Subsystem: Texas Instruments: Unknown device 8019
Flags: bus master, medium devsel, latency 64, IRQ 3
I/O ports at ec80 [size=128]
Memory at fbfff800 (32-bit, non-prefetchable) [size=4K]
Memory at fbff8000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at fc000000 [disabled] [size=128k]
Capabilities: <availability only to root>
The above isn't a typo, it just says "[OCHI])". Do you have any advice that might help me?

Thanks,

GT

[Referring Thread]

Last edited by General_Tso; 07-19-2003 at 07:06 AM.
 
  


Reply



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 Delaying eth0 initialization. [ FA bansal_ashok Linux - Networking 4 05-27-2005 10:09 AM
Boot Problems [bringing up interface eth0] AndiM Mandriva 5 01-16-2005 08:06 PM
Problems with eth0 interface boris89 Linux - Networking 1 04-17-2004 09:52 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM
problems bringing up interface eth0 at startup engelbmj Linux - Networking 43 09-05-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration