2008年3月31日 星期一

自動設定網路 IP

Step 1:

把目前電腦的網路設定 export 出來即可

netsh -c interface dump > c:\A_IP.txt

Step 2:

要用時, import 之前的的設定檔即可

netsh -f c:\A_IP.txt

Reference

http://mqjing.blogspot.com/2008/02/ip-subnet-mask-gateway-netsh.html

http://www.petri.co.il/configure_tcp_ip_from_cmd.htm