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

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)
Solved by Steve Krawcke on Aug 10, 2011 7:44 AM Solved

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.

Reply by John Lockwood on Aug 10, 2011 4:22 AM Helpful

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.

Reply by Lerico on Aug 10, 2011 12:29 PM Helpful

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

All replies

  • John Lockwood Level 6 Level 6
    expertise.desktops
    Desktops

    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

    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

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

  • John Lockwood Level 6 Level 6
    expertise.desktops
    Desktops

    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

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