Skip to contentSkip to conversation

getting at bootp IP address

DISCUSSION Ben Sapp 2 participants 2 messages Sep 21, 2000 – Sep 25, 2000

lore
Share & tools
lore

Ben Sapp

author
#0 lore raw

Hi,

I have a number of MVME2300 computers that boot a small ramdisk with bootp and tftp. All the MVME2300s are doing basically the same thing so I would like to avoid having a different kernel for each computer. I would like the program that is started in place of init in the ram disk to set up the network based upon the IP address that was obtained from
bootp. I do not know how to get at this information though. Can I
read it from non-vlatile ram? Can I send out another bootp braodcast from user-land and get the information again?

Thanks for any leads.

--

Ben Sapp                         Los Alamos National Laboratory
email: <mailto:[email protected]>   Phone: (505)667-3277
Fax:   (505)665-7920             URL:   http://www.neutrino.lanl.gov/

--

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · Ben Sapp

I would like the program that is started in place of init in the ram disk to set up the network based upon the IP address that was obtained from bootp.

You should be able to get the ethernet interface's IP address using the SIOCSIFADDR ioctl (and friends) on ifr_name "eth0".

Regards,
Graham

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/