求助,ping主机名不通ping ip能通是什么原因
linux吧
全部回复
仅看楼主
level 11
Async0xs 楼主
系统是Centos6.5
ping 127.0.0.1通
ping localhost 通
ping 192.168.1.119通(这个就是虚拟机的ip地址)
ping Centos01不通(虚拟机的 hostname)
2014年05月11日 06点05分 1
level 4
DNS
2014年05月11日 06点05分 3
dns怎么设置,我试了host 主机名好像没通,我是host-only应该连不上外网吧?
2014年05月11日 06点05分
level 11
Async0xs 楼主
/etc/sysconfig/network 的主机名是Centos01
/etc/hosts 映射关系是192.168.1.119 Centos01
为什么ping localhost能通,ping Centos01不通
2014年05月11日 06点05分 4
level 11
Async0xs 楼主
host Centos01出现连接超时 是dns的问题吗
2014年05月11日 06点05分 5
level 11
Async0xs 楼主
我只要求主机能ping通虚拟机的主机名就行了 dns要怎么设置
2014年05月11日 06点05分 6
level 11
你没有发现你写的是l92不是192吗
2014年05月11日 06点05分 7
瞬间笑喷[笑眼]
2014年05月11日 06点05分
卧槽。。。瞎了,昨晚捣鼓了好久。。。。。。。。。。。。。。。。。。[乖]
2014年05月11日 06点05分
+1
2014年05月11日 06点05分
层主好眼力。
2014年05月11日 09点05分
level 1
果然好眼里
2015年01月21日 08点01分 9
level 12
哈哈哈
2015年01月21日 08点01分 10
level 11
然而7楼早已看穿一切
2015年01月21日 08点01分 12
level 9
无法直视
2015年01月21日 09点01分 13
level 1
把主机的防火墙关了,应该就能PING通了。
2017年09月14日 08点09分 14
level 6
主机ping虚拟机用host only 用nat的话主机ping不了虚拟机
2017年09月14日 13点09分 15
1