將指令拷貝到*.bat,變換IP時,執行就可以了 設定區域連線為固定IP netsh interface ip set address name="區域連線" source=static addr=10.40.200.150 mask=255.255.255.0 gateway=10.40.200.1 gwmetric=0 netsh interface ip set dns 區域連線 source=static addr=168.95.1.1 netsh interface ip add dns 區域連線 addr=10.40.200.1 簡寫版 netsh interface ip set ad name="區域連線" s 10.40.200.150 255.255.255.0 10.40.200.1 0 netsh interface ip set dns 區域連線 s 168.95.1.1 netsh interface ip add dns 區域連線 10.40.200.1 設定區域連線為DHCP netsh interface ip set address name="區域連線" source=dhcp netsh interface ip set dns 區域連線 source=dhcp 簡寫版 netsh interface ip set ad name="區域連線" D netsh interface ip set dns 區域連線 D 代號縮寫 ad=address D=dhcp s=static addr=靜態ip mask=子網路遮罩 ga=gateway=預設閘道 gw=gwmetric=公制 將網路狀態設定匯出/匯入 匯出 netsh -c interface dump >c:\netset.txt interface可以簡寫成int,dump更可簡化成d,所以就變成了 netsh -c int d >c:\netset.txt 匯入 netsh -f c:\netset.txt
創作者介紹
創作者 korychen 的頭像
korychen

korychen

korychen 發表在 痞客邦 留言(1) 人氣( 767 )