Computer Networks/Ipconfig/DHCP Options
(Redirected from Computer Networks/Troubleshooting/Tools/Ipconfig/DHCP Options)
ipconfig /renew renews the lease on dynamic (DHCP-assigned) IP addresses. ipconfig /release releases dynamic addresses. These activities will show you how to use ipconfig /renew and ipconfig /release.
Preparation
editTo prepare for this activity:
- Start Windows.
- Log in if necessary.
Activity 1 - Display DHCP Configuration Information
editTo display DHCP configuration information:
- Open a command prompt.
- Use ipconfig /all to display all IP configuration information.
- Observe whether you have any network adapters that are DHCP Enabled. If so, identify your DHCP Server, when it shows Lease Obtained, and when it shows Lease Expires.
Note: If none of your network adapters are DHCP enabled, you will not be able to complete the following activities.
Activity 2 - Renew DHCP-Assigned Address Lease
editTo renew the lease on DHCP-assigned IP address(es):
- Type ipconfig /renew and press Enter.
- Use ipconfig /all to display all IP configuration information.
- Observe the updated DHCP lease information. Dynamic IP addresses attempt to renew themselves automatically beginning at one-half of lease time. It is generally not necessary to renew DHCP-assigned addresses manually, but this approach may be used to test a DHCP server configuration from one or more clients.
Activity 3 - Release DHCP-Assigned Address
editNote: You will not be able to access the Internet or other devices on your network from this point forward until you complete Activity 4.
To release the DCHP-assigned IP address:
- Type ipconfig /release and press Enter.
Note that it now shows no IP address for the adapter(s). Dynamic IP addresses are released automatically when the system shuts down. It is generally not necessary to release DHCP-assigned addresses manually. - Wait ten seconds and then use ipconfig /all to display all IP configuration information.
- Observe the updated IP address information. It may show no IP address (0.0.0.0), or it may show an Automatic Private IP Address (APIPA) address, one that begins with 169.254.n.n. Systems will typically assign an APIPA address if they cannot obtain an address from a DHCP server after a few seconds. APIPA addresses can work on the local network to connect with other devices that have an APIPA address, but do not have a default gateway and are unable to access the Internet.
Activity 4 - Obtain a DHCP-Assigned Address
editTo obtain a DHCP-assigned address:
- Type ipconfig /renew and press Enter to obtain a DHCP-assigned IP address.
- Use ipconfig /all to display all IP configuration information.
- Observe the updated DHCP lease information. The system should now have a valid IP address on the network, and the address will very likely be the same address as the one displayed in Activity 1.
- Close the command prompt to complete this activity.