Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
DHCP/bootstrapping of various devices
- 05-09-2005
- Geronimo W. Christ Esq
May 9, 2005, 6:54 pm

Hi,
I'm working with a system where several different but related devices
may wish to boot by downloading an OS kernel from a central source. I
was hoping to achieve this using DHCP, which does everything I want
except one thing - I can't find a way to identify to the DHCP server
what type of device I am.
For example, I'd like to be able to tell the DHCP server that I am
device type A, and it would respond with the correct configuration
details appropriate for type A. If a type B device makes a request, the
DHCP server would respond with a type B configuration and so on.
Are there any standard ways of achieving this ?
I'm working with a system where several different but related devices
may wish to boot by downloading an OS kernel from a central source. I
was hoping to achieve this using DHCP, which does everything I want
except one thing - I can't find a way to identify to the DHCP server
what type of device I am.
For example, I'd like to be able to tell the DHCP server that I am
device type A, and it would respond with the correct configuration
details appropriate for type A. If a type B device makes a request, the
DHCP server would respond with a type B configuration and so on.
Are there any standard ways of achieving this ?

Re: DHCP/bootstrapping of various devices

Yes.
The DHCP protocol contains a Client ID option which is
sent from the client to the server. The server can
distinguish the different clients and the responses
sent by the identifier.
If the identifier is not sent separately, the server
uses the client MAC (Media Access Control) address,
e.g. the 6-byte Ethernet address instead.
The exact way how to tell the server the different
client configurations from the identifiers depends
on your server.
The Diskless-HOWTO from the Linux Documentation
Project might be of help.
HTH
--
Tauno Voipio
tauno voipio (at) iki fi
Tauno Voipio
tauno voipio (at) iki fi

Re: DHCP/bootstrapping of various devices

Ah, I see it. I didn't spot that when I looked at other summaries of the
protocol. I guess it is less frequently used since most people just want
to retrieve an IP address, gateway settings and so on.
I'd spoken to a few other people and they talked about using PXE, but
that seems quite overkill for what I need to do. All I need is a
filename and an IP address ;)
Thanks again for your help.
Site Timeline
- » Switching from and to read-only file systems
- — Next thread in » Embedded Linux
-
- » Embedded GUI libs w/alpha, anti-aliasing
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » pemohon
- — The site's Newest Thread. Posted in » Electronics Computer-Aided Design
-