-   Linux - Networking (
-   -   how to bring network up at boot time in linux (

Aymen 11-13-2012 11:53 AM

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)?

MensaWater 11-13-2012 12:30 PM

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.

Aymen 11-14-2012 03:36 AM

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.

jefro 11-14-2012 03:25 PM

Would any type of pxe or gpxe do?

All times are GMT -5. The time now is 08:14 AM.