ipconfig command


The ipconfig command is widely used for basic configuration reporting and support tasks.

  • for Windows
  • Uses:
    • ipconfig displays the IP address, subnet mask, and default gateway (router) for all network interfaces to which TCP/IP is bound
    • ipconfig /all displays complete TCP/IP configuration parameters for each interface
      • includes DHCP and MAC address
    • ipconfig /renew interface forces a DHCP client to renew the lease it has for an IP address
    • ipconfig /release interface releases the IP address obtained from a DHCP server
      • the interface(s) will no longer have an IP address
    • ipconfig /displaydns displays the DNS resolver cache
    • ipconfig /flushdns clears the DNS resolver cache
    • ipconfig /registerdns registers the host with a DNS server
      • if supports dynamic updates
    • ipconfig /release6 and ipconfig /renew6 can also be used for DHCPv6
      • DHCP server supporting IPv6