5 Replies Latest reply: Aug 10, 2011 1:01 PM by Steve Krawcke
Lerico Level 1 Level 1 (0 points)

Working my way through the Lion Server Advanced Administration documentation.

 

I'm at the section "DHCP server configuration for your server"

 

I have a Comcast Business Gateway and connected to it is an Airport Extreme.

 

How do I know which device is my DHCP server?


Mac mini, Mac OS X (10.7)
  • John Lockwood Level 5 Level 5 (6,445 points)

    Lerico wrote:

     

    Working my way through the Lion Server Advanced Administration documentation.

     

    I'm at the section "DHCP server configuration for your server"

     

    I have a Comcast Business Gateway and connected to it is an Airport Extreme.

     

    How do I know which device is my DHCP server?

    You will have to check the configuration of each. For the AirPort this is done via the AirPort Utility program, for the Comcast device it is probably via a webpage. However a quick-and-dirty method of checking is to have just one of them turned on at a time, and then connect a computer and see if it gets a DHCP provided address. If it does you know that particular router is running as a DHCP server.

     

    Depending on your needs you could use the Mac server, the Comcast box, or the AirPort as your DHCP server. I don't know the details of the Comcast device but I have heard that some ISP provided devices are locked down such that you don't have the option to turn of DHCP, I can say the AirPort will let your turn its DHCP off.

  • Steve Krawcke Level 3 Level 3 (640 points)

    on your mac to find out what is issuing you the IP via DHCP open terminal and issue this command

     

     

    ipconfig getpacket en0 (or use what ever your active interface is)

     

    look for the line server_identifier

     

    that should be the IP of your DHCP server.

  • Lerico Level 1 Level 1 (0 points)

    Perfect, Steve!  Thank you very much!  :-)

  • John Lockwood Level 5 Level 5 (6,445 points)

    Steve Krawcke wrote:

     

    on your mac to find out what is issuing you the IP via DHCP open terminal and issue this command

     

     

    ipconfig getpacket en0 (or use what ever your active interface is)

     

    look for the line server_identifier

     

    that should be the IP of your DHCP server.

    The above will indeed identify which DHCP server you are currently using, but it will not identify whether more than one DHCP server is active unless you do this repeatedly over time and possibly from more than one machine to see if the result changes.

  • Steve Krawcke Level 3 Level 3 (640 points)

    you could use tcpdump and llok for traffic on the dhcp ports..

     

    sudo tcpdump -i en0 'udp portrange 67-68'

     

    or get wireshark and do the same thing...