【发布时间】:2015-11-23 11:26:05
【问题描述】:
我有两个运行 CentOS 6.7 的 VM 的 VMWare Fusion,我正在尝试在它们(服务器和工作站)上部署 Chef。两个虚拟机之间的 Ping 和 ssh 工作正常,但是当我去 knife client list 时,它说它找不到到主机的路由。 Curl 和 telnet 也不起作用。一些信息:在 OS X Yosemite 上运行的 VMWare Fusion,禁用防火墙,两个 VM 上的网络设置都是“与我的 Mac 共享”。服务器上的nestat -puntal | grep nginx 产量:
tcp 0 0 0.0.0.0:9680 0.0.0.0:* LISTEN 1091/nginx
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1091/nginx
tcp 0 0 0.0.0.0:9683 0.0.0.0:* LISTEN 1091/nginx
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1091/nginx
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0C:29:5A:9E:EE
inet addr:172.16.20.131 Bcast:172.16.20.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe5a:9eee/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29039 (28.3 KiB) TX bytes:14305 (13.9 KiB)
错误:
[root@chefworkstation ~]# knife client list
ERROR: Errno::EHOSTUNREACH: No route to host - connect(2) for "chefsrv1" port 443
[root@chefworkstation ~]# curl chefsrv1
curl: (7) couldn't connect to host
[root@chefworkstation ~]# ping chefsrv1
PING chefsrv1.localdomain (172.16.20.131) 56(84) bytes of data.
64 bytes from 172.16.20.131: icmp_seq=1 ttl=64 time=0.685 ms
64 bytes from 172.16.20.131: icmp_seq=2 ttl=64 time=0.335 ms
64 bytes from 172.16.20.131: icmp_seq=3 ttl=64 time=0.319 ms
【问题讨论】:
-
service iptables status?
标签: curl nginx tcp centos chef-infra