維尼的蜂巢

RealTime??!! It’s amazing!!!!

[memo]批次檔更改網路組態 七月 3, 2008

Filed under: memo — kevinlin @ 11:50 上午
Tags:

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

 

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s