維尼的蜂巢

Archive for the ‘memo’ Category

[memo]批次檔更改網路組態

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 既可

標籤:

Add to Google

這是一個月曆

十一月 2009
W
« 八月    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

最近的回應

simon on 留言板
亞當 on 玩WII不用放光碟
北方鹰 on error LNK2005 operator new(uns…
kevinlin on 留言板
小鬼 on 留言板