Search Results for 'netsh'


1 POSTS

  1. 2007/04/11 快速切換IP設定 by Kelvin

快速切換IP設定

因為最近工作上要把二十幾台的電腦設定固定IP,又要在短時間把IP回復成DHCP,
基於小弟我實在有點懶,只好寫寫批次檔,只要到每台電腦上點點各別的批次檔就搞定啦!
相信有許多朋友都有筆記型電腦,電腦總是遊走在公司與家裡,甚至是客戶那裡,網路設定總是要改來改去,要解決這種問題有很多方法,只是不用錢又簡單就是這個方法啦!
呵呵呵!有需要的朋友請參考吧!

真的是『科技使終來自於惰性

請將虛線內文字存成.bat或.com不含虛線,請依您的需求適當修改IP。

靜態IP設定:
==================================================
netsh interface ip set address name="區域連線" source=static addr=192.168.1.1 mask=255.255.255.0 gateway=192.168.1.254 gwmetric=1
netsh interface ip set dns name="區域連線" source=static addr=168.95.1.1 register=primary

==================================================

DHCP設定:
==================================================
netsh interface ip set address name="區域連線" source=DHCP
netsh interface ip set dns name="區域連線" source=DHCP register=PRIMARY

==================================================

Posted by Kelvin

2007/04/11 12:23 2007/04/11 12:23
,
Response
0 Trackbacks , 0 Comments
RSS :
http://localhost/rss/response/170

Leave a comment

블로그 이미지

歡迎來到 Kelvin & Amy 的部落格!

- Kelvin

Archives

Authors

  1. Kelvin

Calendar

«   2012/02   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Site Stats

Total hits:
300973
Today:
198
Yesterday:
274
www.flickr.com
這是一個 Flickr 徽章,顯示來自 chiensx 的公開相片和視訊。在此處製作你自己的徽章。