Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

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 (77.245.xxx.xxx), the second is the gateway (10.0.1.6). ipconfig getpacket en0 shows it as "static_route (ip_pairs): {IP1, IP2}" –  MathieuK Jul 5 '12 at 19:12
    
ok, but is 77.245.xxx.xxx a 32-bit host route? –  Mike Pennington Jul 5 '12 at 19:14
    
yes, full ip to specific host. –  MathieuK Jul 5 '12 at 19:15
    
what does "ip getoption en0 33" show? –  quadruplebucky Jul 7 '12 at 22:40
show 2 more comments

1 Answer 1

up vote 2 down vote accepted
+100

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:

https://discussions.apple.com/thread/1757618?start=0&tstart=0

share|improve this answer
add comment

Your Answer

 
discard

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.