您目前已離線,請等候您的網際網路重新連線

如何使用 NetShell 公用程式重設 TCP/IP

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

請注意--重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,且可能由 Microsoft Community 利用 Community Translation Framework技術或人工進行事後編修。翻譯過程並無專業譯者參與。Microsoft 同時提供使用者人為翻譯、機器翻譯及社群編修後的機器翻譯三種版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,所有翻譯文章都可能不盡完美,內容都可能出現詞彙、語意或文法上的錯誤。就翻譯內容之不正確或錯誤,或客戶因使用翻譯內容所產生的任何損害,微軟不負擔任何責任。Microsoft將依合理的商業努力不斷地更新機器翻譯軟體和工具,以期能為使用者提供更好的服務。

按一下這裡查看此文章的英文版本:299357
結論
如果您有網際網路連線問題,您可以嘗試重設 TCP/IP。本文說明兩種方式可以重設 TCP/IP。若要讓您有 usreset TCP/IP,請至 「簡易修正> 一節。如果想手動 toreset TCP/IP,請移至"讓我自行修正此問題> 一節。

簡易修正

Toreset TCP/IP 自動,按一下 [下載] 按鈕。在 [檔案下載] 對話方塊中,按一下 [執行] 或 [開啟],然後遵循輕易解決精靈中的步驟。
  • 此精靈可能僅以英文顯示。不過,自動修正程式也適用於其他語言版本的 Windows。
  • 如果您不在發生問題的電腦上,將簡易修正程式方案儲存到快閃磁碟機或 CD 上,然後在發生問題的電腦上加以執行。
適用於 Windows 8.1、Windows 8、Windows RT、Windows 7、Windows Server 2012R2、Windows Server 2012、Windows Server 2008 R2


適用於 Windows Vista、Windows XP、Windows Server 2008 或 Windows Server 2003

讓我自行修正此問題

若要以手動方式重設 TCP/IP,請依照下列步驟執行︰

附註您必須以系統管理員身分登入電腦以執行這些步驟。

Windows 8 和 Windows 8.1
  1. 開始 畫面中,輸入CMD.在搜尋結果中,以滑鼠右鍵按一下 [命令提示字元] ,然後以系統管理員身分按一下 [執行]。
  2. 在命令提示字元中,輸入下列命令,並按 Enter:
    netsh int ip reset c:\resetlog.txt
    請注意,如果您不想要指定記錄檔的目錄路徑,則執行下列命令:
    netsh int ip reset 
  3. 重新啟動電腦。
Windows 7 和 Windows Vista

  1. 若要開啟命令提示字元,請按一下 [開始] ,然後輸入 cmd 在 [搜尋程式及檔案] 方塊中。
  2. 程式下方,以右鍵按一下 CMD.exe 圖示,然後按一下 [以系統管理員身分執行]。
  3. 當 [使用者帳戶控制] 方塊出現時,請按一下 []。
  4. 在命令提示字元中,輸入下列命令,並按 Enter:
    netsh int ip reset c:\resetlog.txt
    附註如果您不想要指定記錄檔的目錄路徑,則執行下列命令︰
    netsh int ip reset resetlog.txt
  5. 重新啟動電腦。
Windows XP
  1. 若要開啟命令提示字元,請按一下 [開始],然後按一下 [執行]。在 [開啟] 方塊中,輸入下列命令,然後按 ENTER 鍵:
    cmd
  2. 在命令提示字元中,輸入下列命令,並按 Enter:
    netsh int ip reset c:\resetlog.txt
    附註如果您不想要指定記錄檔的目錄路徑,則執行下列命令︰
    netsh int ip reset resetlog.txt
  3. 重新啟動電腦。

當您執行重新設定命令時,它會覆寫下列登錄機碼,下列兩者皆由 TCP/IP 使用:
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters SYSTEM\CurrentControlSet\Services\DHCP\Parameters
這與移除和重新安裝 TCP/IP 有相同效果。若要成功執行的手動命令,您必須指定記錄 netsh 動作的記錄檔名稱。(這個記錄檔在本節前面的手動程序中稱為 resetlog.txt。)


其他相關資訊

這樣是否已修正問題?

檢查是否已修正問題。如果是,您便已完成本文。如果問題尚未修正,您可以 請連絡支援部門.

NETSH INT IP 重設的範例記錄檔

以下是發出 IP 重設命令時,由 netsh 產生的記錄檔的範例。實際的記錄檔可能會有所不同,視電腦的設定而定。如果 TCP/IP 登錄機碼的原始設定未遭到修改,則可能沒有任何動作記錄在檔案中。
reset   SYSTEM\CurrentControlSet\Services\Dhcp\Parameters\Options\15\RegLocation            old REG_MULTI_SZ =                SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\?\DhcpDomain                SYSTEM\CurrentControlSet\Services\TcpIp\Parameters\DhcpDomainadded   SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\NetbiosOptionsadded   SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BAA9D128-54BB-43F6-8922-313D537BE03E}\NetbiosOptionsreset   SYSTEM\CurrentControlSet\Services\Netbt\Parameters\Interfaces\Tcpip_{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\NameServerList            old REG_MULTI_SZ =                10.1.1.2deleted SYSTEM\CurrentControlSet\Services\Netbt\Parameters\EnableLmhostsadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\AddressTypeadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DefaultGatewayMetricadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DisableDynamicUpdatedeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\DontAddDefaultGatewayreset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\EnableDhcp            old REG_DWORD = 0added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\NameServeradded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\RawIpAllowedProtocolsadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\TcpAllowedPortsadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{2DDD011E-B1B6-4886-87AC-B4E72693D10C}\UdpAllowedPortsadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\DisableDynamicUpdatereset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\EnableDhcp            old REG_DWORD = 0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAddress            old REG_MULTI_SZ =                12.12.12.12deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAutoconfigurationAddressdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAutoconfigurationMaskdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\IpAutoconfigurationSeedreset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\RawIpAllowedProtocols            old REG_MULTI_SZ =                0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\SubnetMask            old REG_MULTI_SZ =                255.255.255.0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\TcpAllowedPorts            old REG_MULTI_SZ =                0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{5B3675C3-6EB9-4936-B991-04DA31024C4E}\UdpAllowedPorts            old REG_MULTI_SZ =                0added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\AddressTypeadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DefaultGatewayMetricadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DisableDynamicUpdatedeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\DontAddDefaultGatewayreset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\EnableDhcp            old REG_DWORD = 0added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\NameServeradded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\RawIpAllowedProtocolsadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\TcpAllowedPortsadded   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BAA9D128-54BB-43F6-8922-313D537BE03E}\UdpAllowedPortsreset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DefaultGateway            old REG_MULTI_SZ =                10.1.1.2                reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DefaultGatewayMetric            old REG_MULTI_SZ =                0               added   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\DisableDynamicUpdatereset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\EnableDhcp            old REG_DWORD = 0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAddress            old REG_MULTI_SZ =                10.1.1.1               deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationAddressdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationMaskdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\IpAutoconfigurationSeedreset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\NameServer            old REG_SZ = 10.1.1.2,10.1.1.3reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\RawIpAllowedProtocols            old REG_MULTI_SZ =                0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\SubnetMask            old REG_MULTI_SZ =                255.255.255.0               reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\TcpAllowedPorts            old REG_MULTI_SZ =                0reset   SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{BD2859BA-B26A-4E2B-A3FE-3D246F90A81A}\UdpAllowedPorts            old REG_MULTI_SZ =                0deleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DontAddDefaultGatewayDefaultdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableIcmpRedirectdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\EnableSecurityFiltersdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchListdeleted SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\UseDomainNameDevolution<completed>Note In Windows Server 2003 Service Pack 1, you can use  the netsh winsock reset command to repair Winsock. 
如需詳細資訊,按一下下面的文件編號,以檢視「Microsoft 知識庫」中的文件:
314067 如何疑難排解 Windows xp 的 TCP/IP 連線
811259 如何判斷,以及從 Windows Server 2003、 Windows XP 和 Windows Vista 的 Winsock2 損毀復原
314053 Windows XP 的 TCP/IP 和 NBT 設定參數

內容

文章識別碼:299357 - 最後檢閱時間:08/18/2016 08:47:00 - 修訂: 16.0

Microsoft Windows XP Professional, Microsoft Windows XP Home Edition (家用版), Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86), Microsoft Windows Server 2003 R2 Datacenter x64 Edition, Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86), Microsoft Windows Server 2003 R2 Enterprise x64 Edition, Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86), Microsoft Windows Server 2003 R2 Standard x64 Edition, Microsoft Windows Server 2003, Datacenter Edition (32-bit x86), Microsoft Windows Server 2003, Datacenter x64 Edition, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows Server 2003, Enterprise Edition (32-bit x86), Microsoft Windows Server 2003, Standard x64 Edition, Microsoft Windows Server 2003, Standard Edition (32-bit x86), Windows Server 2008 Datacenter without Hyper-V, Windows Server 2008 Enterprise without Hyper-V, Windows Server 2008 for Itanium-Based Systems, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard, Windows Server 2008 Service Pack 2, Windows Server 2008 Standard without Hyper-V, Windows Server 2008 Datacenter, Windows Server 2008 Enterprise, Windows Server 2008 Standard, Windows Vista 商用進階 64 位元版, Windows Vista 家用入門 64 位元版, Windows Vista 家用進階 64 位元版, Windows Vista 旗艦 64 位元版, Windows Vista 商用入門版, Windows Vista 商用進階版, Windows Vista 家用入門版, Windows Vista Starter, Windows Vista 旗艦版, Windows 7 Enterprise, Windows 7 Home Premium, Windows 7 Professional, Windows 7 Ultimate, Windows 7 Home Basic, Windows 8 Enterprise, Windows 8 Pro, Windows 8, Windows 8.1 Enterprise, Windows 8.1 Pro, Windows 8.1

  • kbmsifixme kbfixme kbhowto kbenv kbnetwork kbcip kbprodselector kbconsumer kbmt KB299357 KbMtzh
意見反應
ync=""> var varAutoFirePV = 1; var varClickTracking = 1; var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write("