Check DHCP Configuration

Is a system is set to DHCP:

Windows:

  • Open a Command Prompt or PowerShell.
  • Type ipconfig /all and press Enter.
  • Look for the line “DHCP Enabled” and a corresponding “Yes” value.

MacOS:

  • Type networksetup -getinfo en0 on the command line (that’s en and the numeral zero)
    • The first line of the response should be DHCP Configuration
  • Alternatively, open System Settings.
    • Go to Network.
    • Select your connection.
    • Click “Advanced…”
    • In the “TCP/IP” tab, check if “Configure IPv4” is set to “Using DHCP”.

Linux:

  • Open a terminal, and type ip addr show. Look for lines showing “dynamic” or “dhcp”
  • Alternatively, use dhclient -v to see DHCP client configuration and status
  • or nmcli connection show to check the connection type.

    These methods will help you determine whether your system is configured to receive an IP address and other network settings dynamically from a DHCP server.