LinuxQuestions.org
Review your favorite Linux distribution.
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 02-10-2010, 12:02 PM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 358

Rep: Reputation: 32
network interface not coming up automatically at boot


Hi all,

I installed Fedora 12 on an Eee PC 1001HA. This laptop has a Ralink
RT3070 wireless chipset, for which the driver is not yet in the kernel (still in staging I believe). However I downloaded the driver, compiled it, and installed it. AFAICT, it works fine.

One small obstacle remains: I am uable to get the network interface to come up automatically; I have to run # ifconfig ra0 up. Because of this NetworkManager never sees the wireless interface, making connecting to WAPs a chore.

I created a ifconf-ra0 file in /etc/sysconfig/network-scripts, and it includes the line ONBOOT=yes, but this doesn't do the trick.

Any ideas on what small piece of the puzzle I am missing here?
 
Old 02-10-2010, 01:09 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Kropotkin View Post
Any ideas on what small piece of the puzzle I am missing here?
Is the operating system trying to configure the device before the driver is loaded?

How does the driver get loaded?

Did you update your initrd image?
 
Old 02-10-2010, 01:21 PM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 358

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by David1357 View Post
Is the operating system trying to configure the device before the driver is loaded?
I have no idea. How would I determine this?

Quote:
How does the driver get loaded?
Well, presumably device is recognized and the driver loaded automatically, like any piece of hardware? Anyway, after booting, lsmod indicates the kmod has been loaded:
Code:
$ lsmod | grep 3090
rt3090sta             682720  1
Quote:
Did you update your initrd image?
Ah... no. I've been running Fedora since 2004, never heard of doing this.
 
Old 02-10-2010, 05:06 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Kropotkin View Post
I have no idea. How would I determine this?
What is the contents of "/etc/modules"?

Quote:
Originally Posted by Kropotkin View Post
Well, presumably device is recognized and the driver loaded automatically, like any piece of hardware?
I was trying to find out if you were loading the driver using modprobe in "/etc/rc.local" or some equivalent mechanism.

Quote:
Originally Posted by Kropotkin View Post
Anyway, after booting, lsmod indicates the kmod has been loaded:
That probably means that the driver is getting loaded during device enumeration when the kernel sends a uevent to udev.

Quote:
Originally Posted by Kropotkin View Post
Ah... no. I've been running Fedora since 2004, never heard of doing this.
Normally, most users would not have to know how to update their "initrd". The "initrd" files are located in "/boot". When you add a driver to your system that needs to be loaded during boot, you have to update your "initrd" file. The command to use on modern versions of Linux is "mkinitramfs". However, the syntax is more than a little difficult for a novice. On Debian based systems, there is a helper script named "update-initramfs". However, I do not know if Fedora has added this to their installations.

Your best bet is to read the man page for "mkinitramfs" and post your best guess as to the command line parameters here for us to review.
 
Old 02-13-2010, 08:52 AM   #5
Ahmed ezz
LQ Newbie
 
Registered: Feb 2010
Posts: 7

Rep: Reputation: 0
I had that problem before but in the wired connection interface not wireless anyway every time I boot up the system i have to run the command
#service network restart
to bring the interface up
what i am saying that it could be that simple just try to type that command as root
#chkconfig network on
So it will be permanent across reboots
 
0 members found this post helpful.
Old 02-15-2010, 03:08 PM   #6
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 358

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by David1357 View Post
The command to use on modern versions of Linux is "mkinitramfs"
This command is not available on my fedora system, nor does yum recognize it as a packagename. Where is it to be found?

Thanks
 
Old 02-15-2010, 03:11 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Kropotkin View Post
This command is not available on my fedora system, nor does yum recognize it as a packagename. Where is it to be found?
Look for "initramfs-tools" or something similar.
 
Old 02-15-2010, 03:24 PM   #8
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
On Fedora 12 there is system-config-network or something like it.
Look there, I have not spent a lot of time with F12, but remember that it was something about "to control or not by network manager"
 
Old 02-16-2010, 02:14 AM   #9
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 358

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by nimnull22 View Post
On Fedora 12 there is system-config-network or something like it.
Look there, I have not spent a lot of time with F12, but remember that it was something about "to control or not by network manager"
Yes, I know the program to which you are referring; it is in Fedora 11 but was removed, alas, from Fedora 12.
 
Old 02-16-2010, 02:07 PM   #10
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 358

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by David1357 View Post
Look for "initramfs-tools" or something similar.
the only thing yum returns in a search for "initramfs" is mkinitrd, which I already have installed, except for some dracut (?) related packages.

Note: If there is a fairly straightforward fix for this, great, otherwise I will just wait for the driver to appear in a future kernel (2.6.32?) and presumably this will all be fixed.

Last edited by Kropotkin; 02-16-2010 at 02:22 PM. Reason: + note
 
Old 02-16-2010, 05:53 PM   #11
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
Well, I tend to be a "quick & dirty" linux person when it comes to situations like this.

In the past, the 'buntus would not bring up my wireless interface properly, and I had to issue commands at the terminal before it would come up.

So I put those commands into /etc/rc.local just before the final exit 0 in that file.

Problem worked-around until the developers fixed it.

So you might need something like this in /etc/rc.local

Code:
# ra0 was mis-configured somehow, so start again
ifconfig ra0 down
# Now bring it up again, perhaps it'll work this time
ifconfig ra0 up
exit 0
Let us know how you get on.
 
Old 02-16-2010, 06:15 PM   #12
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Kropotkin View Post
the only thing yum returns in a search for "initramfs" is mkinitrd, which I already have installed, except for some dracut (?) related packages.
Maybe Fedora still uses "mkinitrd". If so, you should be able to use that to update your "initrd" file (Make a BACKUP of the current "initrd" first). I recently used it on a RedHat installation to do something similar.

It never occurred to me that Fedora was still using the same thing. I think almost all other distros are using "mkinitramfs".
 
  


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
packet coming through one interface route out via another interface and SNAT also saiyen2002 Linux - Networking 2 09-14-2009 07:56 PM
[SOLVED] how to stop automatically bringing up a network interface at boot danielldaniell Slackware 17 07-15-2009 02:25 PM
network interface not coming backup after reboot noir911 Linux - Server 2 02-11-2009 12:03 AM
Network not coming up at boot time CRX Linux - Networking 6 10-16-2007 05:14 PM
why is network interface activating automatically? ashlock Linux - Networking 4 04-29-2004 01:29 PM

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

All times are GMT -5. The time now is 05:00 AM.

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