Network Administration: IP Lease Commands

Follow these steps to quickly release and/or renew the Internet Protocol (IP) address, otherwise known as the lease, of a computer running Windows XP, Windows 2000, or Windows NT.


Renewing an IP lease


If you’re having an IP configuration problem, you can often solve it by renewing the computer’s IP lease. To do that, use a /renew switch, like this:


C:\>ipconfig /renew
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.110
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
C:\>

When you renew an IP lease, the ipconfig command displays the new lease information.


This command won’t work if you configured the computer to use a static IP address.


Releasing an IP lease


You can release an IP lease by using an ipconfig command with the /release parameter, like this:


C:\>ipconfig /release
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :
C:\>

As you can see, the DNS suffix and default gateway for the computer are blank, and the IP address and subnet mask are set to 0.0.0.0.


After you release the DHCP lease, you can use an ipconfig /renew command to obtain a new DHCP lease for the computer.




dummies

Source:http://www.dummies.com/how-to/content/network-administration-ip-lease-commands.html

No comments:

Post a Comment