在我开始之前,我想指出,我不想在这个问题上挂上DNS问题。 即使DNS问题显而易见,与基本的IPstream量无关,这就是这个问题。 我想知道是否有其他人之前遇到过这个问题…
我有一台机器设置了dynamicIP地址。 它工作得很好,没有任何问题。 我只是想设置一个静态的IP地址,所以它永远不会改变,总是相同的(用于共享等目的)。 将机器设置为dynamicIP时返回的当前DHCP信息如下所示:
IP: 10.10.63.152 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 10.10.63.1 Secondary DNS: (none) WINs Server: 10.10.63.1
我把所有的dynamic信息,并作为我的静态IP信息(完全相同)。 当我点击inputbutton申请我失去了互联网的所有networking连接。 我仍然可以访问本地networking资源(如ping 10.10.63.19等)。一个星期前,我使用10.10.63.80使用相同的信息只是一个不同的IP设置为一个静态IP地址,它是完美的工作。 只是麻烦拍摄我使用分配的DHCP IP,因为似乎一切工作(除非我静态设置)。 我也尝试了各种不同的设置,试图取得成功,如…
IP: 10.10.63.80 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 10.10.63.1 Secondary DNS: (none) WINs Server: 10.10.63.1 IP: 10.10.63.80 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 10.10.63.1 Secondary DNS: (none) WINs Server: (none) IP: 10.10.63.152 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 10.10.63.1 Secondary DNS: (none) WINs Server: 10.10.63.1 IP: 10.10.63.152 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 10.10.63.1 Secondary DNS: (none) WINs Server: 10.10.63.1 IP: 10.10.63.80 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 8.8.8.8 Secondary DNS: (none) WINs Server: (none) IP: 10.10.63.152 Subnet Mask: 255.255.225.0 Gateway: 10.10.63.1 Primary DNS: 8.8.8.8 Secondary DNS: (none) WINs Server: (none)
任何想法可能发生什么?
我试图ping当地的资源,当IP变成静态,结果是好的!
ping 10.10.63.19 Pinging 10.10.63.19 with 32 bytes of data: Reply from 10.10.63.19: bytes=32 time=64ms TTL=125 Reply from 10.10.63.19: bytes=32 time=64ms TTL=125 Reply from 10.10.63.19: bytes=32 time=64ms TTL=125 Reply from 10.10.63.19: bytes=32 time=63ms TTL=125 Ping statistics for 10.10.63.19: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 63ms, Maximum = 64ms, Average = 63ms
我试图ping一个互联网资源,结果失败。
ping 8.8.8.8 Pinging 8.8.8.8 with 32 bytes of data: PING: transmit failed. General failure. PING: transmit failed. General failure. PING: transmit failed. General failure. PING: transmit failed. General failure. Ping statistics for 8.8.8.8: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
我试图做一个跟踪路线,也失败了。
tracert 8.8.8.8 Tracing route to google-public-dns-a.google.com [8.8.8.8] over a maximum of 30 hops: 1 Transmit error: code 1231. Trace complete.
您的子网掩码255.255.225.0无效,可能会破坏您的networkingconfiguration。 它应该是255.255.255.0?
从你说的,你有一个DHCP地址,然后试图静态分配相同的IP。 这不是一个好办法。 您正在DHCP范围内分配一个IP。 这基本上告诉路由器给你一个IP,它可能已经或可能不再有,因为它把它租给另一台计算机。 你不告诉路由器这个IP是这台计算机,它仍然认为这是一个IP可以自由地给别人。
所以我想出了这个问题。 我正在远程设置静态IP(不是坐在电脑前)。 我以前从来没有见过Windows这样做,但当我去设置IP地址,并点击“确定”button,Windows正在删除默认网关! 我学到的唯一方法就是在不同的机器上远程跳转,然后使用该机器将RDP发送到发生问题的机器。 然后我很快意识到这个问题是默认网关被删除。
当远程设置静态IP时,默认网关被Windows自动删除。