A good way to switch IP with Vista using laptops

  
Friends who use Windows Vista system on notes, especially those of office workers, many of them will face the network environment of company and home, and always need to manually modify/switch IP. I have summed up a little trick here to share with you through the Zhongguancun online Vista channel.
The method is very simple. You copy the following code into a blank notepad file and save them as a .bat file. When you are at the company or at home, run the corresponding bat file.
Copy the following code into a text file and save it as "Unit IP.bat":
@ECHO OFFrem Unit IPcmd /c netsh interface ip set address name="Local Connection" source=static addr=172.30 .5.153 mask=255.255.255.0 gateway=172.30.5.254 gwmetric=1cmd /c netsh interface ip set dnsserver name="local connection" source=static addr=202.106.196.115
Copy the following code into a text file, then Save as "home IP.bat":
@ECHO OFFrem home IPcmd /c netsh interface ip set address name="local connection" source=dhcp gwmetric=0cmd /c netsh interface ip set dnsserver name="local connection" source =dhcp
Friends who are familiar with the code should understand that the above code is actually modifying the IP address, subnet mask and gateway, but I use the batch method, which simplifies the trouble of manual operation every time. !
In addition, I may not be very clear about what I wrote. If any master feels wrong, please reply to me and thank you!

Copyright © Windows knowledge All Rights Reserved