※ 引述《GTGTCO03 (@.@)》之銘言:
: 由於使用實驗室電腦的關係
: 需切換自動取得IP跟手動輸入才能列印
: 想寫一個能夠
: 點完後自動設定
: 172.20.0.19
: 255.255.255.0
: 172.20.0.1
: DNS
: 設定
: 192.83.194.3
: 168.95.1.1
: 有關於這方面的資料嗎
: 我查了半天
: 都是其他訊息跟講解而已
netsh就可以做到了
手動輸入的部份
netsh interface ip set address "區域連線" static 172.20.0.19 255.255.255.0 172.20.0.1
netsh interface ip set dns "區域連線" static 192.83.194.3 primary
自動取得的部份
netsh interface ip set dns "區域連線" dhcp
netsh interface ip set address "區域連線" dhcp
--
: 由於使用實驗室電腦的關係
: 需切換自動取得IP跟手動輸入才能列印
: 想寫一個能夠
: 點完後自動設定
: 172.20.0.19
: 255.255.255.0
: 172.20.0.1
: DNS
: 設定
: 192.83.194.3
: 168.95.1.1
: 有關於這方面的資料嗎
: 我查了半天
: 都是其他訊息跟講解而已
netsh就可以做到了
手動輸入的部份
netsh interface ip set address "區域連線" static 172.20.0.19 255.255.255.0 172.20.0.1
netsh interface ip set dns "區域連線" static 192.83.194.3 primary
自動取得的部份
netsh interface ip set dns "區域連線" dhcp
netsh interface ip set address "區域連線" dhcp
--
All Comments