这篇文章的共同创作者是 Stan Kats. Stan Kats是一位专业技术员,在美国加州西好莱坞的STG IT咨询集团担任首席运营官和首席技术员。他通过旗下的托管IT服务为企业提供全面的技术解决方案,并通过客户服务业务为个人提供服务。Stan获得了南加州大学的国际关系文科学士学位后,在世界500强IT企业开始自己的职业生涯。之后,他创办了自己的公司,为小型企业及个人提供企业级专业技术。
这篇文章已经被读过2,562次。
在无法连接互联网时,Windows的网络诊断疑难解答程序对解决问题很有帮助。但有时候,你只会看到一个含糊其词的错误消息,比如“以太网没有有效的IP配置”,它并没有给出详细的信息。这种情况一般发生在电脑通过以太网连接互联网,但路由器无法通过DCHP给电脑分配IP地址时。别担心,下面这些解决方法可以帮助Windows 10或11迅速重新连上网络。一起来看看要怎么做吧!
须知事项
- 当电脑无法获取IP地址时,Windows的网络疑难解答程序就会出现“以太网没有有效的IP配置”错误消息。
- 这个问题通常都和TCP/IP设置、以太网驱动程序或路由器有关。
- 即使是正确配置的路由器或交换机,也可能导致无效的IP配置。
步骤
- 打开“命令提示符”窗口。在Windows搜索栏中,输入cmd,然后点击搜索结果中的命令提示符。
- 输入ipconfig /release,然后按↵ Enter键。这样会释放最后一次使用的IP地址,并在窗口中显示几条“已断开连接”的信息。
- 输入ipconfig /renew,然后按↵ Enter键。Windows会向路由器请求新的IP地址。
- 更新IP地址后,你应该会在以太网适配器底下看到一个IPv4和(或)IPv6地址。
- 如果出现“此操作失败,因为没有适配器处于此操作允许的状态”错误消息,那就意味着你给电脑配置了一个静态IP地址。如果你的IP地址应该是由路由器动态分配的,需要打开TCP/IP设置,选择“自动获取IP地址”。
广告
- 以管理员身份打开“命令提示符”。如果你使用Windows 11,也可以选择以管理员身份打开“终端”。
- 在Windows的搜索栏中,输入cmd或terminal。
- 右键点击命令提示符或“终端”,然后选择以管理员身份运行。
- 点击是。
- 输入netsh int ip reset,然后按↵ Enter键。这项操作会覆盖注册表项来重置TCP/IP。[2]
- 输入netsh winsock reset,然后按↵ Enter键。你应该会看到“成功重置Winsock Catalog,必须重启电脑才能完成重置”的信息。
- 在“命令提示符”中输入shutdown /r /t 0,然后按Enter键,就能迅速重启电脑。
广告
参考
- ↑ https://answers.microsoft.com/en-us/windows/forum/all/windows-10-ip-address-lease-not-renewing-until/bb45402a-cf37-40f5-a444-e2cc7bdeb194
- ↑ https://support.microsoft.com/en-us/topic/how-to-reset-tcp-ip-by-using-the-netshell-utility-d954430c-9b11-43f0-6081-0fc9235a8b4a
- ↑ https://support.microsoft.com/en-us/windows/update-drivers-manually-in-windows-ec62f46c-ff14-c91d-eead-d7126dc1f7b6
这篇文章对你有帮助吗?
⚠️ Disclaimer:
Content from Wiki How 中文 language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.