Your laptop needs to access the Internet in multiple places, but the IP address is automatically obtained at home. The lab has its own subnet and the dormitory has another subnet, you have to manually change the TCP/IP settings for each change, which is very troublesome. I saw an article on the internet today.ArticleIn the past, it was very simple to solve this problem without installing any software. The following is my practice.
First, set TCP/IP to lab in network properties. Run cmd to open the command line window and enter the following command:
Netsh - C Interface Dump > Lab.txt
In this way, you can get a lab.txt file under "C: \ Documents ents and Settings \ administrator.pdf". Of course, you can also use the absolute path in the command above to change its storage location.
Next, let's talk about home.txtand dorm.txt by setting TCP/IP as their respective configuration and using the same command to generate different files.
When you need to change the TCP/IP settings, for example, if you want to switch to the Internet, you just need to execute the following command:
Netsh - F home.txt
The switchover is complete. It is very convenient. In short, there are two: netsh dump export settings and netsh-f import settings.
Note that if you switch to the automatic IP address acquisition method, you 'd better use the "ipconfig/renew" command to forcibly obtain the IP address. Otherwise, you will have to wait for a while before accessing the Internet.