史萊姆論壇

史萊姆論壇 (http://forum.slime.com.tw/)
-   軟體應用問題討論區 (http://forum.slime.com.tw/f5.html)
-   -   2 or more 區域連線設定 (http://forum.slime.com.tw/thread98700.html)

dvdyang8 2004-03-06 04:25 PM

2 or more 區域連線設定
 
Is it possible to have 2 or more 區域連線設定 in my XP,cause the IP and DNS setting of my office and home is different,so every time I get home,I've to change the setting manually,it's so inconvenient!:( :blink:

Thank you in advance!!!:) :D

psac 2004-03-06 08:49 PM

MultiNetworkManager....
http://www.netswitcher.com/
or:

個方法:
NetSH -f S:\IP.NCF


IP.NCF



#========================
# 連接頭配置
#========================
pushd interface

reset all


popd
# 連接頭配置結束

#========================
# Interface configuration
#========================
pushd interface ipv6

uninstall


popd
# End of interface configuration



# ----------------------------------
# ISATAP Configuration
# ----------------------------------
pushd interface ipv6 isatap



popd
# End of ISATAP configuration



# ----------------------------------
# 6to4 Configuration
# ----------------------------------
pushd interface ipv6 6to4

reset



popd
# End of 6to4 configuration

#========================
# Port Proxy configuration
#========================
pushd interface portproxy

reset


popd
# End of Port Proxy configuration



# ----------------------------------
# 連接頭 IP 配置
# ----------------------------------
pushd interface ip


# "本地連接" 的連接頭 IP 配置

set address name="本地連接" source=static addr=192.168.1.1 mask=255.255.255.0
set address name="本地連接" gateway=192.168.1.1 gwmetric=0
set dns name="本地連接" source=static addr=202.96.134.133 register=PRIMARY
add dns name="本地連接" addr=202.96.128.143 register=PRIMARY
set wins name="本地連接" source=static addr=none


popd
# 連接頭 IP 配置結束

實就兩句批次處理:

1. 儲存當前配置. 用法: dump 配置名

dump.bat
netsh -c inter dump > %1.cfg



2. 儲存當前配置. 用法: restore 配置名

restore.bat
netsh -f %1.cfg

其實netsh的本事大了, 這個應用說明不及...

沒有用第三方軟體,用的是windows自己帶的netsh,同樣又快又好用!
首選:挨個配置好自己常用的IP位址,如何DHCP的,上公司網的,上internet的,然後用netsh存成相應文本檔案如(dhcp.txt, company.txt internet.txt , 。

>netsh -c interface ip dump > c:\txtip\internet.txt

用的時候直接執行:
>netsh -f interface.txt
就可以了,不用從起電腦,也不用disable/enable網卡,而且非常快。


所有時間均為台北時間。現在的時間是 09:46 AM

Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.

『服務條款』

* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *


SEO by vBSEO 3.6.1