DHCP on OS X Server with an Airport Extreme on the network!

Hello there

right now I have my Airport Extreme to handle DHCP, and I have recently setup an os x server to handle print, file, dns and more...

so the layout is like this.

I have and gateway from my ISP that connects to the internet via phone line. its an Zyxle P660H-D1 that connects to my Airport Extreme witch shares my public IP and creates the LAN for my computers.

if I would like to have my server to handle DHCP how can i do that in my case? im a little lost here...

thanks in advance.

MacBook Pro unibody15,4" (2.8Ghz) (4GB) (9600m GT 512) (500GB 7200), Mac OS X (10.6.6)

Posted on Feb 16, 2011 12:32 PM

Reply
22 replies

Feb 23, 2011 6:55 AM in response to Mulle

so finally got in touch with my ISP, and there sending me an new router (Thomson TG712).

in that router I should be able to do NAT and DHCP.

so im thinking, turning off DHCP in the Airport Extreme and setting it to Bridge Mode, and turning off DHCP on the new router for the LAN, and turning on DHCP in the Server...

that way I can do NAT in the Router and DHCP, DNS, File, Print, Web, Mail and more on my server...

dose that sound like the way to do it...

Feb 24, 2011 4:14 AM in response to Mulle

Mulle wrote:
so finally got in touch with my ISP, and there sending me an new router (Thomson TG712).

in that router I should be able to do NAT and DHCP.

so im thinking, turning off DHCP in the Airport Extreme and setting it to Bridge Mode, and turning off DHCP on the new router for the LAN, and turning on DHCP in the Server...

that way I can do NAT in the Router and DHCP, DNS, File, Print, Web, Mail and more on my server...

dose that sound like the way to do it...


Yes, I am currently using a Thomson (ISP supplied) router myself a TG585, I have just double checked and you can turn off the DHCP server and still use the NAT in the Thomson routers.

As you are using an Apple AirPort Extreme, you might want to consider turning off the built-in WiFi in your Thomson router and reducing the chance of interference. You could use both and put them in different locations to provide greater coverage.

Feb 25, 2011 3:17 AM in response to Mulle

Okay so the new router is installed and it's working fine. But the wireless clients that connects to my wireless network (airport Extreme) ore via ethernet cable directly to the airport get an IP address from my server (mac os X Server) and can communicate with the rest off the network but cannot connect to the internet...

if if plug my mac in the routers switch then i can connect to the internet, and all the other clients...

no matter how I connect to the network I can ping everything. but I can only get on the internet if I'm directly connected via cable to the router...

I hope theres someone that can crake this nut for me...


im a little lost on that one as

Feb 28, 2011 4:23 AM in response to Mulle

Mulle wrote:
Weird. It's working now...


I was going to suggest checking the router address being advertised by the DHCP server was still correct in case the Thomson router had a different address. However since it is now working my guess might be that an Ethernet switch was still holding a ARP entry that was no longer valid due to your swapping routers and now that it is working it has probably expired that entry and a new correct entry is working.

Sep 10, 2011 4:18 PM in response to Mulle

Based on what Joe Lucia has said, this is quite doable and the result is quite elegant. In the instructions below, I have assumed that you want to run a DHCP service on a Mac server. However, the concept would apply to any DHCP server which will run in parallel with your Airport.


  1. Use aiport utility and set the airport to "Share a public IP address" mode.
  2. Using the aiport utility go to the DHCP tab and set the IP address range to distribute just one address which will become the server's address, eg: start address 192.168.1.2 and end address 192.168.1.2. Add a "DHCP Reservation" and set it to the address that you entered in the range, eg: 192.168.1.2. This will become the IP that will be distributed to the Mac server itself.
  3. On the Mac server, using "Network preferences..." set your local network interface to DHCP so it will get the address that you chose in step 2 from the aiport. Also configure the Mac server's DNS in "Advanced..." to point to itself, following the example address above, it should be 192.168.1.2.
  4. Configure the DHCP service on the Mac server, specifying the regular range for your clients. In this case, with the example addresses above, Aiport will have the address 192.168.1.1 and your Mac server will get 192.168.1.2 from the airport. Thus, your range should start at 192.168.1.3 and go to whatever end address you choose. Additionally, while configuring the DHCP service, make sure you set the DNS / LDAP and so on to, following this example, 192.168.1.2 which will be the address of the Mac server. Lastly, while configuring the DHCP service, set the router IP to the IP of the aiport station, which, following this example, will be 192.168.1.1.


It is pretty elegant because the Airport will dish out the address to your server when it comes up and will not interfere after that because it has only IP within its range. When your clients will broadcast for an address, the Aiport will not pick it up since its address is already taken and in case the server is down, it will not pick it up either because it has only one IP which is reserved. Then, the only DHCP server on your network will be your Mac server that will pick-up the requests and dish out addresses to clients on the network.


It is true that if your Mac server goes down, there will be no DHCP server on the network to answer the requests. However, that's how DHCP servers are and, of course, there's nothing stopping you from adding another Mac server (or any other DHCP server) to Airport and extending the range of distributed addresses to two so that you have some load balancing.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

DHCP on OS X Server with an Airport Extreme on the network!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.