Posted by: kevinlin on: 七月 3, 2008
設定IP
netsh interface ip set address name=”區域連線” source=static addr=192.168.xxx.xxx mask=255.255.255.0
netsh interface ip set address name=”區域連線” gateway=192.168.xxx.254 gwmetric=1
netsh interface ip set dns name=”區域連線” source=static addr=168.95.1.1
設定成DHCP
netsh interface ip set address name=”區域連線” source=dhcp
netsh interface ip set dns name=”區域連線” source=dhcp
將網路狀態設定匯出/匯入
(1)匯出
netsh -c interface dump >c:\netset.txt
當然,interface可以簡寫成int,dump更可簡化成d,所以就變成了
netsh -c int d >c:\netset.txt
(2)匯入
netsh -f c:\netset.txt 既可
最近的回應