LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   initrd network support (https://www.linuxquestions.org/questions/linux-software-2/initrd-network-support-614687/)

Lord Protector 01-19-2008 01:35 AM

initrd network support
 
I've been attempting to add network support to my initrd.

From my attempts, I have been unable to get /dev/eth0 to appear after booting into my initrd (yes, I have made sure /dev is actually mounted).

From what I understood, all that is needed to get a device to appear in /dev is for the appropriate module(s) to be loaded.

Through experimentation, I have determined when booting normally (which networking functions) unloading the module pc32net removes /dev/eth0, and loading the module back reverses the removal of /dev/eth0.

I have ensured that this module (and its dependency 'mii') are loaded when booting into my initrd. I have infact ensured every module that loads during a normal boot loads within my initrd.

I have even unloaded pc32net and mii and loaded back mii then pc32net yet still have not seen /dev/eth0 appear after booting into my initrd.

What else is required to get /dev/eth0 to appear in /dev?

jailbait 01-20-2008 12:53 PM

Quote:

Originally Posted by Lord Protector (Post 3027845)
I've been attempting to add network support to my initrd.

From my attempts, I have been unable to get /dev/eth0 to appear after booting into my initrd (yes, I have made sure /dev is actually mounted).

From what I understood, all that is needed to get a device to appear in /dev is for the appropriate module(s) to be loaded.

Through experimentation, I have determined when booting normally (which networking functions) unloading the module pc32net removes /dev/eth0, and loading the module back reverses the removal of /dev/eth0.

I have ensured that this module (and its dependency 'mii') are loaded when booting into my initrd. I have infact ensured every module that loads during a normal boot loads within my initrd.

I have even unloaded pc32net and mii and loaded back mii then pc32net yet still have not seen /dev/eth0 appear after booting into my initrd.

What else is required to get /dev/eth0 to appear in /dev?

There is no such thing as /dev/eth0. The network interface is simply called eth0 and it is an integral part of the kernel. You configure eth0 using the ifconfig command. See:

man ifconfig

-----------------------
Steve Stites

linux_t_jagadesh 01-20-2008 01:40 PM

pls chk with your eth0 file path is /etc/syconfig/network-scripts/ifcfg-eth0


All times are GMT -5. The time now is 03:12 PM.