Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows Server 2003 重設 Internet 通訊協定 (TCP/IP) 使用 netsh 指令

編輯:Windows Server 教學

問題

Windows Server 2003 整合網路功能,TCP/IP 為核心元件無法透過 GUI 移除/重裝。網路異常時需以命令列重設協定堆疊。

解決方案

使用 netsh int ip reset [log_file] 重寫 TCP/IP 相關登錄機碼:

  • SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
  • SYSTEM\CurrentControlSet\Services\DHCP\Parameters\

效果等同移除並重新安裝 TCP/IP。

指令範例

  1. 記錄檔於目前目錄:
    netsh int ip reset resetlog.txt
  2. 指定完整路徑:
    netsh int ip reset c:\resetlog.txt

執行後必須重新開機生效。

說明查詢

netsh ?
netsh int ?
netsh int ip ?
netsh int ip reset ?

結語

netsh int ip reset 是修復 TCP/IP 協定堆疊的標準指令,適用於 Windows Server 2003/XP/2000 (SP3+),網管必備技能。

Copyright © Windows教程網 All Rights Reserved