Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 8th February 2008, 02:33 AM
vpg Offline
Registered User
 
Join Date: Jan 2008
Posts: 22
eth0 does not showup in ifconfig -a

when i do ifconfig -a, it shows only 'lo'.

lspci gives

01:06.0 Ethernet Controller: Macronix, Inc. [MXIC] MX987x5 (rev 25)

I upgraded from Fedora 8 to Fedoara 9 alpha version.

How can i fix this problem?

Thanks,
vpg
Reply With Quote
  #2  
Old 8th February 2008, 02:37 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Code:
ifconfig eth0 192.168.1.3
ifconfig -a
Reply With Quote
  #3  
Old 8th February 2008, 02:39 AM
vpg Offline
Registered User
 
Join Date: Jan 2008
Posts: 22
for #ifconfig eth0 192.168.1.3
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
Reply With Quote
  #4  
Old 8th February 2008, 02:43 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
post the contents of /etc/modules.conf, lsmod and dmesg|grep eth
Reply With Quote
  #5  
Old 8th February 2008, 02:45 AM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,218
Check page 4 and 5 here: http://forums.fedoraforum.org/forum/...=180333&page=5
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #6  
Old 8th February 2008, 03:07 AM
vpg Offline
Registered User
 
Join Date: Jan 2008
Posts: 22
#cat /etc/modules.conf
cat: /etc/modules.conf: No such file ot directory
#lsmod
Module Size Used by
dm_snapshot 17765 0
dm_zero 5825 0
dm_morror 21569 0
dm_mod
ata_generic
pata_amd
libata
sd_mod
scsi_mod
ext3
jbd
mbcache
uhci_hcd
ohci_hcd
ehci_hcd

#dmesg| greo eth
// No output
Reply With Quote
  #7  
Old 8th February 2008, 03:13 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
I think, Bob has the last word on this topic
Reply With Quote
  #8  
Old 8th February 2008, 03:15 AM
vpg Offline
Registered User
 
Join Date: Jan 2008
Posts: 22
Okay.. will wait for a fix since the culprit it Fedora 9 Alpha release:-)
Reply With Quote
  #9  
Old 8th February 2008, 04:14 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
When the interface doesn't appear in "ifconfig -a" or better yet "ip addr" but the hardware appears in lspci, this means that no driver claimed the hardware. Perhaps the driver is broken, or perhaps the install never caused the driver to load. Note that an entry in modprobe.conf does NOT cause drivers to load !

If you know the driver then try loading it, I suspect you need "su - ; modprobe ne2k-pci" but that's just my guess at the driver you need.
Reply With Quote
  #10  
Old 8th February 2008, 04:26 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Quote:
Originally Posted by stevea
When the interface doesn't appear in "ifconfig -a" or better yet "ip addr" but the hardware appears in lspci, this means that no driver claimed the hardware. Perhaps the driver is broken, or perhaps the install never caused the driver to load. Note that an entry in modprobe.conf does NOT cause drivers to load !

If you know the driver then try loading it, I suspect you need "su - ; modprobe ne2k-pci" but that's just my guess at the driver you need.

How do you find out which driver its trying to load?
Answer:
Code:
[root@server ~]# more /etc/modules.conf 
alias eth0 pcnet32
alias char-major-14 es1371
What is modprobe.conf used for?
Answer:
Code:
[root@server ~]# more /etc/modprobe.conf
alias eth0 pcnet32
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptscsih
alias snd-card-0 snd-ens1371
options snd-card-0 index=0
install snd-ens1371 /sbin/modprobe --ignore-install snd-ens1371 && /usr/sbin/alsactl restore >/dev/null 2>&1 || :
remove snd-ens1371 { /usr/sbin/alsactl store >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-ens1371
alias usb-controller uhci-hcd
Code:
When the interface doesn't appear in "ifconfig -a" or better yet "ip addr" but the hardware appears in lspci, this means that no driver claimed the hardware.
Very true.

Last edited by notageek; 8th February 2008 at 04:34 AM.
Reply With Quote
  #11  
Old 8th February 2008, 05:15 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Quote:
How do you find out which driver its trying to load?
Generally no one is *trying* to load a driver. You have to direct the kernel to load a driver.
The initrd ramdisk code has some drivers in it so it can handle the hard disk and some others. The /etc/init.d scripts load some drivers for the network basics and other kernel basic functionality. The startup scripts also execute and scripts called /etc/sysconfig/modules/*.modules and that is where you should add generic driver load commands (see below). As a special case *IF* you use the system-config-network RedHat system then when you execute "ifup eth0" (executed when you start at boot) then the driver for eth0 (see alias in /etc/modprobe.conf) is modprobe'd from the network-functions script. Normally eth0 is aliased to the real driver name in /etc/modprobe.conf .

To find which driver to load, you or anaconda must figure this out. You hunt through the kernel source code or google.com/linux ! Then YOU try to load the driver and see what "dmesg" or "ifconfig -a" reports as a result. It doesn't hurt to load a driver that isn't used, just try it.

Looking closer at your problem I see that your PCI Vend/part code should be
10d9 Macronix, Inc. [MXIC]
0531 MX987x5
(see /usr/share/hwdata/pci.ids)
And in the kernel source we have:
linux.../drivers/net/tulip/tulip_core.c:
{ 0x10d9, 0x0531, PCI_ANY_ID, PCI_ANY_ID, 0, 0, MX98715 },

So I guess it's the tulip driver not the ne2k-pci.
Try "su -; modprobe tulip"
then see what ifconfig -s reports.
If that works AND you want to use the redhat ifup stuff, then change modprobe.conf to
Quote:
alias eth0 tulip

Quote:
What is modprobe.conf used for?
Several things - there is a blacklist of drivers that shouldn't be loaded and there are compound commands that pass options to driver like
Quote:
alias snd-card-0 snd-intel8x0
options snd-card-0 index=0
options snd-intel8x0 index=0
And it creates alias names for drivers.
Quote:
alias scsi_hostadapter libata
alias scsi_hostadapter1 ata_piix
As I said th eRH scripts try to load the drivers aliased to eth0 ,eth1 ... when you 'ifup' that interface, but you must have the correct driver aliesed or .... your problem occurs.

modprobe.conf does not directly cause any driver to load.



===

If you want a driver loaded at boot time you can create a script called something.modules in /etc/sysconfig/modules to do it like:

cat /etc/sysconfig/modules/tulip.modules
Quote:
#!/bin/sh
modprobe tulip >/dev/null 2>&1
Make the owner/perms like this: -rwxr-xr-x 1 root root
Reply With Quote
  #12  
Old 8th February 2008, 05:20 AM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Quote:
As a special case *IF* you use the system-config-network RedHat system then when you execute "ifup eth0" (executed when you start at boot) then the driver for eth0 (see alias in /etc/modprobe.conf) is modprobe'd from the network-functions script. Normally eth0 is aliased to the real driver name in /etc/modprobe.conf
Quote:
Several things - there is a blacklist of drivers that shouldn't be loaded and there are compound commands that pass options to driver like
At least you seem to agree on the basics, when troubleshooting don't you think its necessary to look up device aliases? Then try to load them manually.

All this is a moot point really considering Bob's post.
Reply With Quote
  #13  
Old 8th February 2008, 05:20 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Oh yeah - run "lspci -nn" and see if the PCI code is 10d9:0531, for the tulip driver.


If it's "1022:2000" or "1022:2001" then the pcnet32 driver is the correct one.
Reply With Quote
  #14  
Old 8th February 2008, 05:29 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
I suggested manually loading a driver right off as a test, but you should probably ignore the modprobe.conf table until you find the right driver.

By default there are no blacklisted drivers - so the only thing the modprobe.conf does is act as an indirection table for ethN. We know that indirection/alias loads the wrong driver, so modprobe.conf doesn't help us [[I suppose it removes one driver from the list of those to consider]].


Quote:
Originally Posted by notageek
All this is a moot point really considering Bob's post.

Really ? Maybe I missed it in the volume, but Bob's thread just said some other people had network problems. It didn't say that everyone did or that the driver selection wasn't the problem. I think it's very likely that this can be used to create a working network unless something is seriously messed up in the kernel or the base network libraries.

Last edited by stevea; 8th February 2008 at 05:33 AM.
Reply With Quote
  #15  
Old 8th February 2008, 12:27 PM
vpg Offline
Registered User
 
Join Date: Jan 2008
Posts: 22
Ah.. i rebuilt my system with Fedora 8. Should have waited for me replies..

Thank you all for helping me out.
Reply With Quote
Reply

Tags
eth0, ifconfig, showup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DELL SP2208WFP 22" 1680x1025 does not showup vpg Hardware & Laptops 1 17th July 2008 03:33 AM
Kernel update won't showup in grub or /boot skjohn59 Installation and Live Media 0 28th June 2005 04:17 PM
ifconfig eth0:0 <IP> is forgotten on restart bonsaidouglas Servers & Networking 6 13th January 2005 10:16 AM


Current GMT-time: 03:20 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat