打开计算机或将其退出睡眠模式时,是否曾经收到IP 地址(IP address) 错误消息?(error message)当同一LAN 网络(LAN network)上的两台计算机最终使用相同的IP 地址(IP address)时,就会出现这种情况。发生这种情况时,两台计算机最终都无法连接到网络资源或执行其他网络操作。
以下是出现IP 地址(IP address)问题时最常见的错误消息:(error message)
与网络上的另一个系统存在IP 地址(IP address)冲突
对于同一问题,您可能还会看到不同的错误消息:(error message)
This IP address is already in use on the network. Please reconfigure a different IP address.
此问题虽然很少见,但可能由于以下原因而发生:
- 为两台计算机分配了相同的静态 IP 地址
- 一台计算机分配了一个静态IP 地址(IP address),该地址属于本地网络的DHCP 范围(DHCP range),并且同一地址由DHCP 服务器分配给一台计算机(DHCP server)
- 笔记本电脑进入睡眠模式,然后在连接到已将相同IP 地址(IP address)分配给另一台计算机的另一个网络时打开
- 如果您有多个网络适配器,则计算机可能与自身存在IP 地址(IP address)冲突
- 如果您已将多个无线路由器连接到您的网络并且在多个设备上启用了DHCP(network and DHCP)
如何解决IP 地址冲突(IP Address Conflict)
有几种方法可以解决这个问题。我将从最简单的开始,然后继续(simplest and move)。首先(Firstly),继续并重新启动计算机。是的,这通常会自动解决问题!如果没有,请继续阅读下文。
更新 IP 地址(Renew IP Address)
您可以使用命令提示符(command prompt)释放和更新计算机的IP 地址(IP address)。单击(Click)开始并(CMD)输入CMD(Start)。
在提示符下,继续输入以下命令,这将释放您的IP 地址(IP address):
ipconfig /release
根据您在计算机上安装的适配器数量,您可能会从上面的命令中看到几个结果。对于以太网(Ethernet)端口,您将看到以太网适配器 Ethernetx(Ethernet adapter Ethernetx)标题,对于无线网卡,您将看到无线 LAN 适配器 Wi-Fi(Wireless LAN Adapter Wi-Fi)或类似的东西。
请注意,如果您的计算机设置了静态IP 地址(IP address),您将收到The operation failed as no adapter is in the state allowed for this operation(The operation failed as no adapter is in the state permissible for this operation) 错误消息(error message)。在这种情况下,请跳至重新配置静态 IP 地址( Reconfigure Static IP Address) 部分。
运行此命令后,您需要运行该命令来更新您的IP 地址(IP address),它将尝试从DHCP 服务器(DHCP server)获取该地址。
ipconfig /renew
几秒钟后,您应该会看到结果,并且应该在IPv4 Address旁边列出一个IP(IP address)地址。
重新配置静态 IP 地址(Reconfigure Static IP Address)
如果您的计算机使用的是静态IP 地址(IP address),那么您也可以考虑更改为不同的静态IP 地址(IP address)。当前IP 地址(IP address)可能与 DHCP 服务器提供的IP地址(DHCP server)集(IP address)冲突。
使用以下步骤,您还可以直接从DHCP 服务器获取(DHCP server)IP 地址(IP address),而不是手动输入IP 地址(IP address)。为了执行上述发布/更新命令,您必须从DHCP 服务器获取(DHCP server)IP 地址(IP address)。
为此,请单击控制面板(Control Panel),转到图标视图,然后单击网络和共享中心(Network and Sharing Center)。在左侧,单击更改适配器设置( Change adapter settings)。
右键单击(Right-click)当前用于Internet 连接(Internet connection)的网络适配器(network adapter),然后选择Properties。
单击Internet Protocol Version 4 (TCP/IPv4),然后单击属性(Properties)按钮。
在这里,您可以选择从DHCP服务器(DHCP server)获取 IP 地址(自动获取 IP 地址(Obtain an IP address automatically))(IP address)或输入静态 IP 地址(使用以下 IP 地址(Use the following IP address))。
除非您知道自己在做什么,否则您应该始终从DHCP 服务器(DHCP server)自动获取IP 地址(IP address)。DHCP已经知道哪些地址被占用,哪些地址可以发出。
如果发布/更新命令不能解决您的问题,则问题可能出在您的路由器上。
无线路由器
解决很多问题的一种解决方案是简单地重新启动您的无线路由器(wireless router)。如果它已经运行了数周或数月,有时该软件会开始出现故障。快速重启应该可以解决大多数问题。重新启动路由器后,最好也重新启动计算机。
在极少数情况下,实际的DHCP 服务器(DHCP server)可能会发生故障并(malfunction and assign)为多台计算机分配相同的IP 地址(IP address)。在这种情况下,最好尝试更新路由器上的固件。大多数人从不更新他们的路由器固件(router firmware),因此可能会出现此类问题。这不是世界上最容易做的事情,但如果你很久没有做过,它可能是值得的。
如果您仍然遇到IP 地址(IP address)冲突,请在此处发布您的问题,我会尽力帮助您!享受!
How to Fix an IP Address Conflict
Ever get an IP address error mеssagе when turning on your computer or taking іt out of sleep mode? This оccurs whеn two computers on the same LAN network end up with the same ІP address. When this occurs, both computers end up not being able to conneсt tо network resources or perform other network operations.
Here is the most common error message that will popup when you have an IP address issue:
There is an IP address conflict with another system on the network
You may also see a different error message for the same problem:
This IP address is already in use on the network. Please reconfigure a different IP address.
This problem, though rare, can occur because of the following reasons:
- Two computers are assigned the same static IP addresses
- One computer is assigned a static IP address that falls into the DHCP range for the local network and the same address is assigned to a computer by the DHCP server
- A laptop is put into sleep mode and then turned on while connected to another network that has already assigned the same IP address to another computer
- If you have multiple network adapters, it is possible for the computer to have an IP address conflict with itself
- If you have connected multiple wireless routers to your network and DHCP is enabled on more than one device
How to Resolve an IP Address Conflict
There are a few ways you can go about fixing this problem. I’ll start with the simplest and move on. Firstly, go ahead and restart your computer. Yes, that usually will fix the problem automatically! If not, then keep reading below.
Renew IP Address
You can release and renew the IP address for your computer using the command prompt. Click on Start and type in CMD.
At the prompt, go ahead and type in the following command, which will release your IP address:
ipconfig /release
Depending on how many adapters you have installed on your machine, you might see several results from the command above. For Ethernet ports, you’ll see the Ethernet adapter Ethernetx heading and for wireless cards you’ll see Wireless LAN Adapter Wi-Fi or something similar.
Note that if your computer is setup with a static IP address, you will get a The operation failed as no adapter is in the state permissible for this operation error message. In this case, skip down to the Reconfigure Static IP Address section.
After running this command, you need to run the command to renew your IP address, which it will try to get from the DHCP server.
ipconfig /renew
After a few seconds, you should see the results and there should be an IP address listed next to IPv4 Address.
Reconfigure Static IP Address
If your computer is using a static IP address, then you can also consider changing to a different static IP address. The current IP address may be conflicting with the set of IP addresses that the DHCP server is giving out.
Using the steps below, you can also get an IP address directly from the DHCP server rather than manually entering an IP address. In order to perform the release/renew commands above, you have to get an IP address from a DHCP server.
To do this, click on Control Panel, go to icons view and then click on Network and Sharing Center. On the left hand side, click on Change adapter settings.
Right-click on the network adapter that is currently being used for your Internet connection and then select Properties.
Click on Internet Protocol Version 4 (TCP/IPv4) and then click on the Properties button.
Here you can pick from getting an IP address from a DHCP server (Obtain an IP address automatically) or entering a static IP address (Use the following IP address).
Unless you know what you are doing, you should always obtain an IP address automatically from a DHCP server. The DHCP already know which addresses are taken and which ones it can give out.
If the release/renew commands don’t fix your problem, the issue could be with your router.
Wireless Router
One solution that fixes a lot of problems is simply restarting your wireless router. If it’s been on for weeks or months, sometimes the software starts to suffer from glitches. A quick reboot should fix most issues. After restarting the router, it’s a good idea to restart your computer too.
In some rare instances, the actual DHCP server can malfunction and assign more than one computer the same IP address. In this case, it is best to try and update the firmware on your router. Most people don’t ever update their router firmware, so issues like this can crop up. It’s not the easiest thing to do in the world, but it’s probably worth it if you haven’t done it in a long time.
If you’re still having an IP address conflict, post your problem here and I’ll try to help you out! Enjoy!