Search The Site

How To Use The IPConfig Command

Using the ipconfig command. The Ipconfig tool shows all the TCP/IP configuration values, this is of particular use on systems running DHCP. It is used to refresh the DHCP settings and determine the TCP/IP configuration values which are assigned by DHCP. If the Ipconfig tool is used with no parameters, it will show the IP addresses, subnet masks, and also the gateways for all adapters on a system. The adapters can be either physical network adapters or else logical adapters like dialup connections. To display the parameters used for ipconfig, open a command prompt with admin priviledges and type ipconfig /?

Accepted parameters for Ipconfig are as follows:

  • /all : Shows all the TCP/IP configuration values.
  • /displaydns : Shows the contents of the DNS client resolver cache.
  • /flushdns : Resets and also flushes all the contents of the DNS client resolver cache. This also includes entries which have been made dynamically.
  • /registerdns : Specifies the manual dynamic registration for DNS names and the IP addresses that are configured on a system. This can be especially useful when troubleshooting DNS name registrations or any dynamic update issues between the DNS server and client.
  • /release[Adapter] : This sends a DHCP release message to a DHCP server to disregard the DHCP-configured settings for adapters, this only available for DHCPenabled clients. If there is no adapter is specified, the IP address configuration is released for all the adapters.
  • /renew[Adapter] : Renews the DHCP configuration for all the adapters (if no adapter has been specified) and also for a specific adapter if an Adapter parameter has been included. This is only available for clients which are DHCP-enabled.
  • /setclassid Adapter [classID] : Configures the DHCP class ID for a certain adapter, this can configure the DHCP class ID for all the adapters by including a wildcard (*) character in place of the Adapter.
  • /showclassid Adapter : Shows the DHCP class ID for a certain adapter.
  • /allcompartments : Shows info about all the compartments.
  • /allocmpartments /all : Shows detailed info on all compartments.

Ipconfig shows the assigned configuration for the system such as default gateway, local IP address, DNS servers, subnet mask etc. When debugging network problems, you may use the Ipconfig tool to confirm that the correct TCP/IP settings are set for a system so that a server will properly communicate on the network.