无法ping本地主机/或无法访问本地托管的域


0

我无法访问本地托管的域,在测试中我发现自己也无法ping localhost或实际IP。操作系统是Windows7 64位Pro。

DNS可以正常工作,我可以对网络上的其他人执行ping操作,他们可以对我进行ping操作,然后他们可以到达托管域。我发现的唯一问题是我无法访问本地托管的域!

C:\Users\ian>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : leda
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : hcs

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : hcs
   Description . . . . . . . . . . . : Atheros AR8121/AR8113/AR8114 PCI-E Ethern
et Controller
   Physical Address. . . . . . . . . : 00-23-54-7C-E2-2A
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.0.12(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1
   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network #2:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter #2
   Physical Address. . . . . . . . . : 08-00-27-00-88-4A
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Autoconfiguration IPv4 Address. . : 169.254.205.215(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :
   NetBIOS over Tcpip. . . . . . . . : Enabled

C:\Users\ian>ping localhost

Pinging leda [127.0.0.1] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 127.0.0.1:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Users\ian>ping coachmaster.leda.hcs

Pinging coachmaster.leda.hcs [192.168.0.12] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.0.12:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Users\ian>

我可以在VirtualBox中访问托管的VM,并且该VM可以浏览托管的站点。

我已经删除了区域警报并禁用了Windows防火墙-同样的结果。

那么,如何浏览本地托管的站点?有什么可以阻止它?


我的旧netgear路由器有时会这样做。我所有的计算机都可以访问外部ip,但不能访问内部ip。我只是拔出电源,等待30秒钟,然后再次打开电源,问题就消失了(一个月左右)。
Nifle

我尝试了等效操作-关闭所有内容,重新启动linux防火墙,然后重新启动其余部分。它帮助我查看了所有正确的机器。但是我仍然无法从内部ping通本地计算机的IP(192.168.0。??或127.0.0.1),但是其他人可以ping通我。很奇怪。
伊恩

你有没有想过?如果其他人可以访问它,但不能到达那个系统,那么首先要检查的是hosts文件。
Synetech 2014年

尝试也显示路由表(netstat -nr)。您可以ping 192.168.0.12吗?在学校里,我被教导要重新安装TCP / IP网络堆栈,以解决是否无法ping 127.0.0.1(尽管我不记得遇到过这种情况)。
TOOGAM'17年

Answers:


0

首先有两件事是您无法浏览本地托管的域。如果您使用代理服务器访问Internet,则需要告诉浏览器忽略IE中的192.168.0.0/24 inf Firefox或192.168.0。*。网络,或尝试不使用代理服务器直接连接互联网。至于ping,我通常会假设ICMP Echo已禁用,因此没有ping回复,但是情况并非如此,因为其他人也可以ping您。

另一个好的测试是打开与端口80的telnet连接:

telnet 192.168.0.12  80

我不知道您的意思是无法浏览本地托管的域-我可以访问Win2K,WinXP和Linux中的本地托管网站。但是这不是Win7机器。所有站点均为直接站点-无代理(NAT防火墙)。启用了Ping,并且未安装telnet。更令人困惑的是-等待2个小时后,我现在可以访问该网站,但仍然无法ping localhost或域。我所更改的只是一个备份脚本,并且一直在浏览互联网。
伊恩2010年

0
ipconfig /release

ipconfig /renew

可能有帮助。


0

我将其从域中删除,重新启动...将其设置为dhcp ...将其重新放置到具有dhcp的域中。上面约翰提到的“ ipconfig / release”和“ ipconfig / renew”应该已经解决了这个问题。我认为还有另一台主机使用定义的IP ...


-1

不是真正的解决方案,但是您可以使用“ leda”代替“ localhost”。DNS客户端应转换为192.168 ....

“本地主机”名称由DNS管理,但我知道DNS客户端从不向DNS请求地址,而是使用本地地址。

这很奇怪。顺便说一句,路由器与此无关,本地主机是本地主机,没有外部主机...


您的主机文件如何?可能已损坏,某些病毒喜欢修改主机以禁用某些AV功能。\ windows \ system32 \ drivers \ etc
Alex Angelico 2010年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.