Learn how to use ipconfig to view and modify network information on Windows.
Ipconfig stands for Internet Protocol configuration. It is a console application which displays all current TCP/IP network configuration values and refreshes DHCP and DNS settings.
You can use Windows for this lab.
We will begin by viewing the help information screen by executing the following command:
Open a command prompt to begin, and type “ipconfig” to view your networking information.
As you will see, there will be a lot of information shown, including your local IP addresses.
To display the fill TCP/IP configuration information for all network adapters, we can use the following command:
Assume that our machine has an IP address with DHCP. To release our current IPv4 or IPv6 address, we can use the following commands:
Renew our IP addresses via DHCP:
If we want to purge the DNS resolver cache, we can do that using the following command:
This will essentially get rid of the local cache of DNS information.
We can also refresh all DHCP leases and re-register DNS names using the following command:
You will need to run command prompt as administrator to execute this command.
We can display the content of the DNS Resolver Cache using the following command: