可寫成 .bat 批次檔快速切換
- DHCP
- Windows 2000 / XP / 2003
netsh interface ip set address "區域連線" source=dhcp
netsh interface ip set dns "區域連線" source=dhcp - Windows Vista / 2008
netsh interface ip set address "區域連線" source=dhcp
netsh interface ip set dnsserver "區域連線" source=dhcp
- Windows 2000 / XP / 2003
- 指定 IP
- Windows 2000 / XP / 2003
netsh interface ip set address "區域連線" static 10.10.1.168 255.255.255.0 10.10.1.254 1
netsh interface ip set dns "區域連線" static 10.10.1.1 primary - Windows Vista / 2008
netsh interface ip set address "區域連線" static 10.10.1.168 255.255.255.0 10.10.1.254 1
netsh interface ip set dnsserver "區域連線" static 10.10.1.254 primary
- Windows 2000 / XP / 2003
- 標準的指令公式如下:
- Windows 2000 / XP / 2003
netsh interface ip set address "<介面名稱>" static [IP] [子網路遮罩] [預設閘道] [閘道公制]
netsh interface ip set dns "<介面名稱>" static [名稱伺服器位址] primary - Windows Vista / 2008
netsh interface ip set address "<介面名稱>" static [IP] [子網路遮罩] [預設閘道] [閘道公制]
netsh interface ip set dnsserver "<介面名稱>" static [名稱伺服器位址] primary
- Windows 2000 / XP / 2003
- 輸出完整記錄
netsh -c interface dump > netsh_office.cfg - 回覆記錄
netsh -f netsh_office.cfg
沒有留言:
張貼留言