Mac OS X Server comes with a number of DHCP options available; most notably the options available in the GUI. But what about options that aren’t available in the GUI, such as NTP. Well, using /etc/bootpd.plist, the same file we used to define servers allowed to relay, you can also define other options. These begin with the following keys that can be added into your property list:
- dhcp_time_offset (option 2)
- dhcp_router (option 3)
- dhcp_domain_name_server (option 6)
- dhcp_domain_name (option 15)
- dhcp_network_time_protocol_servers (option 42)
- dhcp_nb_over_tcpip_name_server (option 44)
- dhcp_nb__over_tcpip_dgram_dist_server (option 45)
- dhcp_nb_over_tcpip_node_type (option 46)
- dhcp_nb_over_tcpip_scope (option 47)
- dhcp_smtp_server (option 69)
- dhcp_pop3_server (option 70)
- dhcp_nntp_server (option 71)
- dhcp_ldap_url (option 95)
- dhcp_netinfo_server_address (option 112)
- dhcp_netinfo_server_tag (option 113)
- dhcp_url (option 114)
- dhcp_domain_search (option 119)
- dhcp_proxy_auto_discovery_url (option 252)
But you can also add options by their numerical identifier. To add them, add the following into your /etc/bootpd.plist file and then restart the DHCP service:
<string>dhcp_option_120</string>
<data>
192.168.210.7
</data>
In the above, you’d replace the option 120 (SIP) with the option you wish to use. Numbers correspond to options as follows:
0 – Pad1 – Subnet Mask3 – Router4 – Time Server5 – Name Server6 – Domain Name Server7 – Log Server8 Quote Server9 – LPR Server10 – Impress Server11 – Resource Location Server12 – Host Name13 – Boot File Size14 – Merit Dump File15 – Domain Name16 – Swap Server17 – Root Path18 – Extensions Path19 – IP Forwarding20 – WAN Source Routing21 – Policy Filter22 – Maximum Datagram Reassembly Size23 – Default IP Time-to-live24 – Path MTU Aging Timeout25 – Path MTU Plateau Table26 – Interface MTU27 – All Subnets are Local28 – Broadcast Address29 – Perform Mask Discovery30 – Mask supplier31 – Perform router discovery32 – Router solicitation address33 – Static routing table34 – Trailer encapsulation.35 – ARP cache timeout36 – Ethernet encapsulation37 – Default TCP TTL38 – TCP keep alive interval39 – TCP keep alive garbage40 – Network Information Service Domain41 – Network Information Servers42 – NTP servers43 – Vendor specific information44 – NetBIOS over TCP/IP name server45 – NetBIOS over TCP/IP Datagram Distribution Server46 – NetBIOS over TCP/IP Node Type47 – NetBIOS over TCP/IP Scope48 – X Window System Font Server49 – X Window System Display Manager50 – Requested IP Address51 – IP address lease time52 – Option overload53 – DHCP message type54 – Server identifier55 – Parameter request list56 – Message57 – Maximum DHCP message size58 – Renew time value59 – Rebinding time value60 – Class-identifier61 – Client-identifier62 – NetWare over IP Domain Name63 – NetWare over IP information64 – Network Information Service Domain65 – Network Information Service Servers66 – TFTP server name67 – Bootfile name68 – Mobile IP Home Agent69 – Simple Mail Transport Protocol Server70 – Post Office Protocol Server71 – Network News Transport Protocol Server72 – Default World Wide Web Server73 – Default Finger Server74 – Default Internet Relay Chat Server77 – User Class Information78 – SLP Directory Agent79 – SLP Service Scope80 – Rapid Commit81 – Fully Qualified Domain Name82 – Relay Agent Information83 – Internet Storage Name Service85 – NDS servers86 – NDS tree name87 – NDS context88 – BCMCS Controller Domain Name list89 – BCMCS Controller IPv4 address list90 – Authentication91 – Client Last Transaction Time92 – Associated IP93 – Client System Architecture Type94 – Client Network Interface Identifier95 – LDAP, Lightweight Directory Access Protocol97 – Client Machine Identifier98 – Open Group User Authentication100 – IEEE 1003.1 TZ String101 – Reference to the TZ Database112 – NetInfo Parent Server Address113 – NetInfo Parent Server Tag114- URL116 – Auto-Configure117 – Name Service Search118 – Subnet Selection119 – DNS domain search list120 – SIP Servers DHCP Option121 – Classless Static Route Option123 – GeoConfiguration124 – Vendor-Identifying Vendor Class125 – Vendor-Identifying Vendor Specific128 – TFPT Server IP address129 – Call Server IP address130 – Discrimination string131 – Remote statistics server IP address132 – 802.1P VLAN ID133 – 802.1Q L2 Priority134 – Diffserv Code Point135 – HTTP Proxy for phone-specific applications136 – PANA Authentication Agent139 – IPv4 MoS140 – IPv4 Fully Qualified Domain Name MoS150 – TFTP server address176 – IP Telephone220 – Subnet Allocation221 – Virtual Subnet Selection252 – Proxy auto-discovery254 – Private use255 – End