Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

<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:

   ... keys snipped for brevity ...

.. 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?

share|improve this question
What is the subnet, prefix and gateway of the route you're trying to apply? – Mike Pennington Jul 5 '12 at 14:39
I'm not adding a network but a direct static route. So I provide 2 IPs: first one the destination (, the second is the gateway ( ipconfig getpacket en0 shows it as "static_route (ip_pairs): {IP1, IP2}" – NSSec Jul 5 '12 at 19:12
ok, but is a 32-bit host route? – Mike Pennington Jul 5 '12 at 19:14
yes, full ip to specific host. – NSSec Jul 5 '12 at 19:15
what does "ip getoption en0 33" show? – quadruplebucky Jul 7 '12 at 22:40
up vote 2 down vote accepted

FWIW, OSX clients don't appear to implement DHCP option 121 (which supercedes option 33), which is surprising considering Apple is listed as an author of RFC 3442.

I'd guess they're not supporting option 33 either (I can't get either to work from an ISC DHCPD).

One workaround is some launchd ugliness:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.