This technique is very useful for friends who often use laptops for business trips, such as in another environment, such as the customer's company, you always need to change the network to someone else's intranet address, gateway, DNS, and so on. Write a batch processing file, and then change it to the next one. It's faster than the mouse operation.
Form: http://blog.csdn.net/zmxj
Modify the IP address, subnet mask, gateway, and DNS. The "network connection name" is the connection name displayed in the Network Properties on your machine. Change the following name to your own connection name.
Netsh interface IP Set address "network connection name" static 192.168.0.88 255.255.255.0 192.168.0.1 1
Netsh interface IP Set DNS "network connection name" static 202.216.224.66
Netsh interface IP add DNS "network connection name" 202.216.224.67
If you want to change to dynamic IP Address Allocation and automatic DNS access, use the following command.
Netsh interface IP Set address "network connection name" DHCP
Netsh interface IP Set DNS "network connection name" DHCP
Your ad here