如何通过使用 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 社区通过社区翻译机构(CTF)技术进行后期编辑,或可能是由人工进行的翻译。Microsoft 同时向您提供机器翻译、人工翻译及社区后期编辑的文章,以便对我们知识库中的所有文章以多种语言提供访问。翻译的文章可能存在词汇、句法和/或语法方面的错误。Microsoft 对由于内容的误译或客户对内容的使用所导致的任何不准确、错误或损失不承担责任。

点击这里察看该文章的英文版: 299357
概要
您可以尝试重置 TCP/IP,如果有 Internet 连接问题。本文介绍了两种方法重置 TCP/IP。要为您有 usreset TCP/IP,请转到"这是简单的解决方法"一节。如果您手动喜欢 toreset TCP/IP,请转到"我自己修复此问题"一节。

这是简单的解决方法

Toreset TCP/IP 自动,请单击下载按钮。在文件下载对话框中,单击运行打开,然后按照很容易修复向导中的步骤。
  • 此向导可能只提供英文版本。但是,自动修复也适用于其他语言版本的 Windows。
  • 如果你不出现在此问题的计算机上,将很容易修复解决方案保存至闪存驱动器或 CD 中,然后在出现此问题的计算机上运行。
对于 Windows 8.1,Windows 8,Windows RT,Windows 7,Windows 服务器 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 重置 resetlog.txt
  3. 重新启动计算机。

重置命令运行时,它会覆盖以下注册表项,这两种由 TCP/IP:
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters SYSTEM\CurrentControlSet\Services\DHCP\Parameters
这与删除并重新安装 TCP/IP 的效果相同。若要成功运行手动命令,您必须指定netsh操作将被记录在日志文件的名称。(此日志文件称为"resetlog.txt"在本节前面部分中的手动过程。)


更多信息

这问题解决了吗?

检查问题是否已修复。如果是,您已完成此文章。如果不修复该问题,则可以 与支持部门联系.

有关 NETSH INT IP 重置示例日志文件

以下是发出netsh IP 重置命令时将生成日志文件的示例。实际的日志文件可能会因计算机的配置的不同而不同。当 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 配置参数

属性

文章 ID:299357 - 上次审阅时间:09/18/2016 03:35:00 - 修订版本: 17.0

Microsoft Windows XP Professional Edition, Microsoft Windows XP Home Edition, Microsoft Windows Server 2003 R2 Datacenter Edition (32-Bit x86), Microsoft Windows Server 2003 R2 Datacenter Edition (64-Bit x86), Microsoft Windows Server 2003 R2 Enterprise Edition (32-Bit x86), Microsoft Windows Server 2003 R2 Enterprise Edition (64-Bit x86), Microsoft Windows Server 2003 R2 Standard Edition (32-bit x86), Microsoft Windows Server 2003 R2 Standard Edition (64-Bit x86), Microsoft Windows Server 2003 Datacenter Edition, Microsoft Windows Server 2003, Datacenter x64 Edition, Microsoft Windows Server 2003, Enterprise x64 Edition, Microsoft Windows Server 2003 Enterprise Edition, Microsoft Windows Server 2003, Standard x64 Edition, Microsoft Windows Server 2003 Standard Edition, 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 Enterprise 64-bit edition, Windows Vista Home Basic 64-bit edition, Windows Vista Home Premium 64-bit edition, Windows Vista Ultimate 64-bit edition, Windows Vista Business, Windows Vista Enterprise, Windows Vista Home Basic, Windows Vista Starter, Windows Vista Ultimate, 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
反馈