ipconfig command
The ipconfig command is widely used for basic configuration reporting and support tasks.
- for Windows
- Uses:
ipconfigdisplays the IP address, subnet mask, and default gateway (router) for all network interfaces to which TCP/IP is boundipconfig /alldisplays complete TCP/IP configuration parameters for each interface- includes DHCP and MAC address
ipconfig /renew interfaceforces a DHCP client to renew the lease it has for an IP addressipconfig /release interfacereleases the IP address obtained from a DHCP server- the interface(s) will no longer have an IP address
ipconfig /displaydnsdisplays the DNS resolver cacheipconfig /flushdnsclears the DNS resolver cacheipconfig /registerdnsregisters the host with a DNS server- if supports dynamic updates
ipconfig /release6andipconfig /renew6can also be used for DHCPv6- DHCP server supporting IPv6