I need to configure OS X Server BOOTP to provide DHCP options 66 and 67 to provide PXE booting for PCs on the net work. I have tried following the bootpd MAN pages, but they are not specific enough. I have read conflicting informaiton on the net, but nothing definitive for Mountain Lion DHCP.
from bootpd man page:
bootpd has a built-in type conversion table for many more options, mostly those specified in RFC 2132, and will try to convert from whatever type the option appears in the property list to the binary, packet format. For example, if bootpd knows that the type of the option is an IP address or list of IP addresses, it converts from the string form of the IP address to the binary, network byte order numeric value.
If the type of the option is a numeric value, it converts from string, integer, or boolean, to the proper sized, network byte-order numeric value.
Regardless of whether bootpd knows the type of the option or not, you can always specify the DHCP option using the data property list type e.g.:
My TFTP server is 172.16.152.20 and the bootfile is pxelinux.0
I have edited /etc/bootpd.plist and added the following to the subnet dict:
According to the man page, the data elements are supposed to be Base64 encoded, but no matter what I try, I cannot get PXE clients to boot.
I have tried encoding 172.16.152.20 and pxelinux.0 using vaious methods:
- echo "172.16.152.20" | openssl enc -base64 returns MTcyLjE2LjE1Mi4yMAo=
- DHCP Option Code Utility (http://mac.softpedia.com/get/Internet-Utilities/DHCP-Option-Code-Utility.shtml) generating a string from 172.16.152.20 yields: LW4gLWUgMTcyLjE2LjE1Mi4yMAo= (used in the above example)
- DHCP Option Code Utility generating an IP Addresss from 172.16.152.20 yields: LW4gLWUgrBCYFAo=
Has anyone got this working?