[syslinux] pxelinux load configuration files (ARP type code, and IPaddress in hex)

Jeffrey Hutzelman jhutz at cmu.edu
Wed Nov 21 11:24:16 PST 2012


On Wed, 2012-11-21 at 10:19 -0800, H. Peter Anvin wrote:
> On 11/21/2012 06:49 AM, Torgeir.Wulfsberg at kongsberg.com wrote:
> > 
> > Is is possible to make pxelinux look for MAC and IP, removing one hex digit (or 2 for mac) and try again like this:
> > 
> >         /mybootdir/pxelinux.cfg/01-88-99-aa-bb-cc-dd
> >         /mybootdir/pxelinux.cfg/C000025B
> >         /mybootdir/pxelinux.cfg/01-88-99-aa-bb-cc
> >         /mybootdir/pxelinux.cfg/C000025
> >         /mybootdir/pxelinux.cfg/01-88-99-aa-bb
> >         /mybootdir/pxelinux.cfg/C00002
> >         /mybootdir/pxelinux.cfg/01-88-99-aa
> >         /mybootdir/pxelinux.cfg/C0000
> >         /mybootdir/pxelinux.cfg/01-88-99
> >         /mybootdir/pxelinux.cfg/C000
> >         /mybootdir/pxelinux.cfg/01-88
> >         /mybootdir/pxelinux.cfg/C00
> >         /mybootdir/pxelinux.cfg/01
> >         /mybootdir/pxelinux.cfg/C0
> >         /mybootdir/pxelinux.cfg/C
> >         /mybootdir/pxelinux.cfg/default
> > 
> > We could be in need for a custom file/menu for this group of addresses (as an example): /mybootdir/pxelinux.cfg/01-88-99-aa
> > 
> 
> Not really very useful; besides the rather obvious ambiguity, there
> simply isn't a lot of locality in MAC space.
> 
> There *may* be some value in specifically the OID portion of the MAC
> address (the 01 for Ethernet plus three octets), but I have yet to hear
> a compelling enough use case for everyone else to take the load time
> penalty.

On the other hand, you could configure your TFTP server to pattern-match
on the initial MAC address request, and map the entire range you're
interested in onto one set of files.  tftp-hpa is capable of doing this;
look for the -m option in the man page.


-- Jeffrey T. Hutzelman (N3NHS) <jhutz+ at cmu.edu>
   Sr. Research Systems Programmer
   School of Computer Science - Research Computing Facility
   Carnegie Mellon University - Pittsburgh, PA





More information about the Syslinux mailing list