LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 11-13-2012, 11:53 AM   #1
Aymen
LQ Newbie
 
Registered: Sep 2009
Posts: 6

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


Hi,

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=169.254.1.1:::255.255.255.0:Eddy:eth0:off 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 11:55 AM.
 
Old 11-13-2012, 12:30 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
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, 03:36 AM   #3
Aymen
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, 03:25 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 12,073

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


Reply

Tags
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 02:13 AM
Cannot bring up the KDE at boot time. swamprat Suse/Novell 7 02-03-2007 01:01 PM
How to bring up the wireless network interface on first boot up? dejavu_01 Debian 1 05-21-2006 12:29 AM
Time allowed to bring up network? gjhicks Linux - Networking 2 03-09-2005 05:03 AM
time to bring up network mathfeel Linux - General 3 08-18-2002 02:20 AM


All times are GMT -5. The time now is 02:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration