看板 EZsoft 關於我們 聯絡資訊
※ 引述《jeffonett (杰°UCKCS)》之銘言: : 因為筆電會用在兩個不同地方 : 請問如何快速設定TCP/IP裡面的 : IP位址、網路遮罩、預設閘道、主要DNS、次要DNS ? 謝謝^^ : 而關於以下的指令,我不知道如何讓主要及次要DNS同時出現 : netsh interface ip set address name="區域連線" static 172.16.71.172 : 255.255.255.0 172.16.71.254 1 : netsh interface ip set dns name="區域連線" static 10.1.1.100 我也跟你遇過一樣的問題 附上我在用的兩個批次檔內容 DHCP.bat ------------------------------------------------- netsh interface ipv4 set address "區域連線" dhcp netsh interface ipv4 set dns "區域連線" dhcp ------------------------------------------------- 下面的用法是設定兩個 DNS Lab.bat ------------------------------------------------------------------ netsh interface ipv4 set address "區域連線" static xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 1 netsh interface ipv4 set dns "區域連線" static xxx.xxx.x.x primary netsh interface ipv4 add dns "區域連線" xxx.xxx.x.x 2 ------------------------------------------------------------------ 黃字部份請自行修改 以上是 Vista 版本,若要在 xp 上使用,請將 ipv4 改為 ip -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.126.143.76