Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-13-2012, 10:53 AM   #1
LQ Newbie
Registered: Sep 2009
Posts: 6

Rep: Reputation: 0
how to bring network up at boot time in linux


I am working on an embedded linux system, my aim is to activate ethernet interface at boot time. I am using u-boot as bootloader. I passed ip= and eth=00:05:F4:11:22:33 u-boot environment variables to the linux kernel as bootargs and configured linux kernel as IP:kernel level autoconfiguration , enabled. However, that didn't bring the network interface up, as "ifconfig eth0 up" do.

So, I am wondering if it is possible to instruct linux kernel to configure and activate eth0 interface without resorting to user space scripts (ifup and ifconfig)?

Last edited by Aymen; 11-13-2012 at 10:55 AM.
Old 11-13-2012, 11:30 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,224
Blog Entries: 10

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
Are you considering init scripts as "user space" scripts? These are run at boot time and generally what are used to start up networking by default. (e.g. /etc/init.d/network on RedHat derived distros is linked to /etc/rc?.d for the various run levels where you'd want to start networking automatically.
Old 11-14-2012, 02:36 AM   #3
LQ Newbie
Registered: Sep 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Currently I am making ethernet configuration and activation in init script. To me this is not sufficient as I want to have networking ready asap. Ethernet setup relatively takes a long time about 3s, so I want to start this operation earlier.
I am not using any of the autoconfiguration protocols: bootp, dhcp or rarp. Also, I am using ramdisk (not nfs) and macb.c driver.
Old 11-14-2012, 02:25 PM   #4
LQ Guru
Registered: Mar 2008
Posts: 13,496

Rep: Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719Reputation: 1719
Would any type of pxe or gpxe do?


boot, kernel, networking

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
Manually bring up network interface every time mahmoodn Ubuntu 8 11-25-2010 01:13 AM
Cannot bring up the KDE at boot time. swamprat SUSE / openSUSE 7 02-03-2007 12:01 PM
How to bring up the wireless network interface on first boot up? dejavu_01 Debian 1 05-20-2006 11:29 PM
Time allowed to bring up network? gjhicks Linux - Networking 2 03-09-2005 04:03 AM
time to bring up network mathfeel Linux - General 3 08-18-2002 01:20 AM

All times are GMT -5. The time now is 11:27 AM.

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