ip-helper and OSX netboot clients

Hagenrud Håkan hakan.hagenrud at atea.se
Fri Jun 15 11:02:23 UTC 2012


The dhcpd server ("net boot" server) is serving out a class for Mac clients that need to netboot. That is the only option that gets served from this server. No ip range is defined since this server should not serve ip numbers, only the options needed when mac clients are requesting a netboot set.


Setup is as following:

DHCP server is a Windows 2003 server that serves the subnet 10.200.112.0/23
"netboot" server is a RedHat 6.2 Enterprise server running three services:
tftp
httpd
dhcpd

a ip-helper is defined for this subnet pointing to the second dhcpd server (the "netboot" server).

The following dhcpd.conf file works in our setup but inconsistently

################Start of dhcpd.conf#############################
authoritative;
ping-check on;

class "Applei386" {
match if substring (option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386";
if (substring(option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386"){
option dhcp-parameter-request-list 1,3,17,43,60;
filename "i386/booter";
if (option dhcp-message-type = 1) {
option vendor-class-identifier "AAPLBSDPC/i386";
option vendor-encapsulated-options 08:04:81:00:00:67;
}
option root-path "http://10.200.116.183/boot/booter.dmg";
}
if (option dhcp-message-type = 8) {
  option vendor-class-identifier "AAPLBSDPC";
  if (substring(option vendor-encapsulated-options, 0, 3) = 01:01:01) {
option dhcp-parameter-request-list 1,3,17,43,60;
filename "i386/booter";
option vendor-encapsulated-options
  01:01:01:
  09:0c:81:00:00:01:07:6e:65:74:62:6f:6f:74;
option root-path "http://10.200.116.183/boot/booter.dmg";
  } else {
option dhcp-parameter-request-list 1,3,17,43,60;
filename "i386/booter";
option vendor-encapsulated-options
  01:01:02:
  08:04:81:00:00:01;
option root-path "http://10.200.116.183/boot/booter.dmg";
}
}
}

subnet 10.200.116.0 netmask 255.255.254.0 {}
subnet 10.200.112.0 netmask 255.255.254.0 {}
################End of dhcpd.conf#############################



The messages log file (after a restart of dhcpd)


Jun 12 10:17:03 thehostname dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Jun 12 10:17:03 thehostname dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Jun 12 10:17:03 thehostname dhcpd: All rights reserved.
Jun 12 10:17:03 thehostname dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Jun 12 10:17:03 thehostname dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Jun 12 10:17:03 thehostname dhcpd: Wrote 0 class decls to leases file.
Jun 12 10:17:03 thehostname dhcpd: Wrote 0 leases to leases file.
Jun 12 10:17:03 thehostname dhcpd: Listening on LPF/eth0/00:50:56:93:3c:dc/10.200.116.0/23
Jun 12 10:17:03 thehostname dhcpd: Sending on   LPF/eth0/00:50:56:93:3c:dc/10.200.116.0/23
Jun 12 10:17:03 thehostname dhcpd: Sending on   Socket/fallback/fallback-net
Jun 12 10:17:13 thehostname dhcpd: DHCPINFORM from 10.200.112.183 via 10.200.112.1
Jun 12 10:17:13 thehostname dhcpd: DHCPACK to 10.200.112.183 (f0:de:f1:34:13:29) via eth0
Jun 12 10:17:28 thehostname dhcpd: DHCPDISCOVER from b8:8d:12:53:49:96 via 10.200.112.1: network 10.200.112.0/23: no free leases
Jun 12 10:17:32 thehostname dhcpd: DHCPDISCOVER from b8:8d:12:53:49:96 via 10.200.112.1: network 10.200.112.0/23: no free leases
Jun 12 10:17:32 thehostname dhcpd: DHCPREQUEST for 10.200.113.52 (10.200.116.11) from b8:8d:12:53:49:96 via 10.200.112.1: unknown lease 10.200.113.52.
Jun 12 10:17:34 thehostname dhcpd: DHCPINFORM from 10.200.113.52 via 10.200.112.1
Jun 12 10:17:34 thehostname dhcpd: DHCPACK to 10.200.113.52 (b8:8d:12:53:49:96) via eth0
Jun 12 10:17:34 thehostname dhcpd: DHCPINFORM from 10.200.113.52 via 10.200.112.1
Jun 12 10:17:34 thehostname dhcpd: DHCPACK to 10.200.113.52 (b8:8d:12:53:49:96) via eth0
Jun 12 10:17:36 thehostname dhcpd: DHCPREQUEST for 10.200.112.212 from f0:de:f1:79:47:99 via 10.200.112.1: unknown lease 10.200.112.212.
Jun 12 10:17:36 thehostname xinetd[1512]: START: tftp pid=15856 from=10.200.113.52
Jun 12 10:17:37 thehostname in.tftpd[15857]: RRQ from 10.200.113.52 filename i386/booter
Jun 12 10:17:37 thehostname in.tftpd[15857]: tftp: client does not accept options
Jun 12 10:17:37 thehostname in.tftpd[15858]: RRQ from 10.200.113.52 filename i386/booter
Jun 12 10:17:39 thehostname dhcpd: DHCPREQUEST for 10.200.112.212 from f0:de:f1:79:47:99 via 10.200.112.1: unknown lease 10.200.112.212.
Jun 12 10:17:45 thehostname dhcpd: DHCPREQUEST for 10.200.112.212 from f0:de:f1:79:47:99 via 10.200.112.1: unknown lease 10.200.112.212.
Jun 12 10:17:49 thehostname in.tftpd[15867]: RRQ from 10.200.113.52 filename i386/com.apple.Boot.plist
Jun 12 10:17:49 thehostname in.tftpd[15867]: tftp: client does not accept options
Jun 12 10:17:49 thehostname in.tftpd[15868]: RRQ from 10.200.113.52 filename i386/com.apple.Boot.plist
Jun 12 10:17:49 thehostname in.tftpd[15869]: RRQ from 10.200.113.52 filename i386/PlatformSupport.plist
Jun 12 10:17:49 thehostname in.tftpd[15869]: tftp: client does not accept options
Jun 12 10:17:49 thehostname in.tftpd[15870]: RRQ from 10.200.113.52 filename i386/PlatformSupport.plist
Jun 12 10:17:49 thehostname in.tftpd[15871]: RRQ from 10.200.113.52 filename i386/x86_64/kernelcache
Jun 12 10:17:49 thehostname in.tftpd[15871]: tftp: client does not accept options
Jun 12 10:17:49 thehostname in.tftpd[15872]: RRQ from 10.200.113.52 filename i386/x86_64/kernelcache
Jun 12 10:17:52 thehostname dhcpd: DHCPREQUEST for 10.200.112.212 from f0:de:f1:79:47:99 via 10.200.112.1: unknown lease 10.200.112.212.
Jun 12 10:18:03 thehostname dhcpd: DHCPREQUEST for 10.200.112.212 from f0:de:f1:79:47:99 via 10.200.112.1: unknown lease 10.200.112.212.
Jun 12 10:18:06 thehostname dhcpd: DHCPREQUEST for 10.200.112.212 from f0:de:f1:79:47:99 via 10.200.112.1: unknown lease 10.200.112.212.
Jun 12 10:18:18 thehostname dhcpd: DHCPREQUEST for 10.200.112.237 from f0:de:f1:7e:d4:f7 via 10.200.112.1: unknown lease 10.200.112.237.

Client is (10.200.113.52) and this time it worked. But sometimes it does not work

Any advice or input is welcome!


Håkan Hagenrud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120615/4f2257f9/attachment-0001.html>


More information about the dhcp-users mailing list