Add static route through DHCP

Posted by MathieuK on Server Fault See other posts from Server Fault or by MathieuK
Published on 2012-07-05T14:00:58Z Indexed on 2012/07/05 15:17 UTC
Read the original article Hit count: 338

Filed under:
|
|

I'm trying to get an OSX Lion Server to provide a static route to its clients (all OSX Lion) over DHCP. I can't get the client to actually apply the static route.

So far, I've managed to get the DHCP server (BOOTPD) to actually serve the DHCP OPTION 33 (static_route) on the DHCP offers by editing /etc/bootpd.plist and adding something like:

<key>dhcp_option_33</key>
<data>[some base64 goes here]</data>

.. and restarting the DHCP service.

On the client I've managed to get the client to actually request the dhcp option by modifying and adding option 33 to the DHCPRequestedParameterList key:

<key>DHCPRequestedParameterList</key>
<array>
   ... keys snipped for brevity ...
   <integer>33</integer>
</array>

.. and rebooting the client. This makes the client request the static_route option from the DHCP server ( i can see the proper output in ipconfig getpacket en0 ) but it doesn't actually apply the rule.

Has anyone ever succeeded in applying static_route options on OSX clients through DHCP?

© Server Fault or respective owner

Related posts about networking

Related posts about macosx