Thursday, May 8, 2014

Reset TCP/IP Network Stack in Windows

Sometimes your DHCP service is not able to pull an IP address, the reason could be that the network stack on Windows and fail to connect. To fix the problem, open command prompt with administrator privilege (click on Start → type in “cmd” → right click on the command prompt and choose “Run as Administrator”) and type these command:
netsh int ip reset C:\netsh.log.txt
netsh winsock reset
… then all your network configuration will be reset.

The command netsh is very powerful, you can control a lot of things in Windows with it, like network interfaces, route table …

Some examples:
  • Set the LAN adapter to static IP address:
    netsh interface ip set address name="Local Area Connection" static 192.168.10.15 255.255.255.0 192.168.10.1 1
  • Set the LAN adapter to DHCP:
    netsh interface ip set address name="Local Area Connection" dhcp
  • Configure the LAN adapter’s secondary DNS:
    netsh interface ip add dns name="Local Area Connection" 8.8.8.8 index=2
Please LIKE and SHARE, Thank you!

0 σχόλια :

Post a Comment