最新消息
Windows下快速切換IP位置
在Windows中我們可以使用批次檔(.bat)來快速切換IP位置
將下列指另儲存成.bat檔即可, 適用於常常需要更改IP設定的電腦
rem --- 動態取得IP位置, 英文版請將"區域連線"改成"Local Area Connection" ---
netsh interface ip set address "區域連線" dhcp
netsh interface ip set dns "區域連線" dhcp
netsh interface ip set wins "區域連線" dhcp
rem --- 靜態IP位置, 物理所內部網路範例 ---
netsh interface ip set address "區域連線" static 192.168.97.81 255.255.248.0 192.168.103.253 1
netsh interface ip set dns "區域連線" static 140.109.103.250
netsh interface ip add dns "區域連線" static 140.109.1.10
netsh interface ip set wins "區域連線" static 192.168.102.231
netsh interface ip add wins "區域連線" static 192.168.101.101
netsh interface ip add wins "區域連線" static 140.109.13.125
相關連結:
張貼者:
張貼日期:2011-01-21