OpenStack 虚拟机可以Ping和SSH,但是无法上网
OpenStack 虚拟机可以Ping和SSH,但是无法上网
好不容易解决了SSH的问题,这次发现,创建的虚拟机无法上网,外部都可以SSH上实例了却无法上网,这究竟是神马原因!?毕业论文
虚拟机IP: (虚拟机本身关闭了iptables和ip6tables)
fix_ip: 192.168.1.7
floating_ip: 10.10.1.193
从虚拟机ping百度的结果如下:
[root@centos ~]# ping www.lwfree.com
PING www.lwfree.com (119.75.218.77) 56(84) bytes of data.
From 192.168.1.3: icmp_seq=2 Redirect Host(New nexthop: 10.10.1.254)
From 192.168.1.3: icmp_seq=3 Redirect Host(New nexthop: 10.10.1.254)
From 192.168.1.3: icmp_seq=4 Redirect Host(New nexthop: 10.10.1.254)
From 192.168.1.3: icmp_seq=5 Redirect Host(New nexthop: 10.10.1.254)
From 192.168.1.3: icmp_seq=6 Redirect Host(New nexthop: 10.10.1.254)
^C
--- www.lwfree.com ping statistics ---
7 packets transmitted, 0 received, 100% packet loss, time 6544ms
从虚拟机ping其所在的计算节点,结果如下:
[root@centos ~]# ping 10.10.1.161
PING 10.10.1.161 (10.10.1.161) 56(84) bytes of data.
64 bytes from 10.10.1.161: icmp_seq=1 ttl=64 time=0.182 ms
64 bytes from 10.10.1.161: icmp_seq=2 ttl=64 time=0.180 ms
64 bytes from 10.10.1.161: icmp_seq=3 ttl=64 time=0.115 ms
64 bytes from 10.10.1.161: icmp_seq=4 ttl=64 time=0.109 ms
64 bytes from 10.10.1.161: icmp_seq=5 ttl=64 time=0.105 ms
^C
--- 10.10.1.161 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4200ms
rtt min/avg/max/mdev = 0.105/0.138/0.182/0.035 ms
从虚拟机ping控制节点也是和ping百度的结果一样。
我本机159.226.10.87可以SSH到虚拟机,但是从虚拟机内部却无法上网,为何!?有人遇到过这个问题么?是我的nova配置问题,还是虚拟机镜像的问题?
nova采用kvm虚拟,加上multi_host的配置。
看看是不是安全组规则。要访问网页还需要tcp的80端口。
DNS的问题