Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transfer boot file base on client's MAC
2014-03-10, 15:01
Post: #3
RE: Transfer boot file base on client's MAC
(2014-03-07 08:51)vielktus Wrote:  Can you show me how to make the script "real_boot_script.php" change the filename based on client's MAC ?

You can include ${mac} within the DHCP filename, e.g.:

Code:
filename "http://my.web.server/boot.php?mac=${mac}";

Alternatively, you can use an iPXE script. This gives you the option to fall back to an alternative script if the one you want doesn't exist. For example:

Code:
#!ipxe
chain http://my.web.server/${mac:hexhyp}.php || chain http://my.web.server/default.php

(Note the use of the ":hexhyp" settings type to obtain the MAC address with hyphen separators rather than colons, since colons are generally not valid in filenames.)

Michael
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Transfer boot file base on client's MAC - mcb30 - 2014-03-10 15:01



User(s) browsing this thread: 3 Guest(s)