免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3131 | 回复: 0
打印 上一主题 下一主题

[OpenStack] juno版本连不上虚拟机实例 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-01-15 09:51 |只看该作者 |倒序浏览
求大神指教怎么可以连上虚拟机实例


环境:
操作系统:RedHat7,安装包使用的centos7的源,openstack版本juno

网络环境:单一扁平网络 flat模式,网段192.168.2.0/24,处于vlan2,测试连接虚拟机实例环境vlan1,网段192.168.1.0/24,vlan1和vlan2网络是互通的,云平台搭建在vlan2网络,ip地址分配2.0网段,实例ip为2.0网段

问题:

在创建完虚拟机实例后,vlan2的2.0网段的同网段所有用户都可以访问虚拟机实例,但是vlan1的1.0网络的用户不能访问虚拟机实例,但是vlan1的1.0网络的用户可访问vlan2的controller及node1服务器没有问题。iptables规则是允许的都

iptables规则:
[root@node1 ~]# iptables -nvL
Chain INPUT (policy ACCEPT 27410 packets, 2659K bytes)
pkts bytes target     prot opt in     out     source               destination         
743K   72M nova-compute-INPUT  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     udp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:53
    0     0 ACCEPT     tcp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53
    0     0 ACCEPT     udp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:67
    0     0 ACCEPT     tcp  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:67
    7   588 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           
   93  6684 ACCEPT     all  --  *      *       192.168.1.0/24       0.0.0.0/0           

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         
418K  370M nova-filter-top  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
181K   12M nova-compute-FORWARD  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     all  --  *      virbr0  0.0.0.0/0            192.168.122.0/24     ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     all  --  virbr0 *       192.168.122.0/24     0.0.0.0/0           
    0     0 ACCEPT     all  --  virbr0 virbr0  0.0.0.0/0            0.0.0.0/0           
    0     0 REJECT     all  --  *      virbr0  0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
    0     0 REJECT     all  --  virbr0 *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT 29500 packets, 2572K bytes)
pkts bytes target     prot opt in     out     source               destination         
814K   80M nova-filter-top  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
798K   79M nova-compute-OUTPUT  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain nova-compute-FORWARD (1 references)
pkts bytes target     prot opt in     out     source               destination         
181K   12M ACCEPT     all  --  brq584698c8-d8 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     all  --  *      brq584698c8-d8  0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     udp  --  *      *       0.0.0.0              255.255.255.255      udp spt:68 dpt:67

Chain nova-compute-INPUT (1 references)
pkts bytes target     prot opt in     out     source               destination         
    5  2148 ACCEPT     udp  --  *      *       0.0.0.0              255.255.255.255      udp spt:68 dpt:67

Chain nova-compute-OUTPUT (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain nova-compute-inst-73 (1 references)
pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0            state INVALID
237K  358M ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED
   79  9789 nova-compute-provider  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
   17  5637 ACCEPT     udp  --  *      *       192.168.2.30         0.0.0.0/0            udp spt:67 dpt:68
   19  1572 ACCEPT     all  --  *      *       192.168.2.0/24       0.0.0.0/0           
   43  2580 nova-compute-sg-fallback  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain nova-compute-local (1 references)
pkts bytes target     prot opt in     out     source               destination         
237K  358M nova-compute-inst-73  all  --  *      *       0.0.0.0/0            192.168.2.51        

Chain nova-compute-provider (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain nova-compute-sg-fallback (1 references)
pkts bytes target     prot opt in     out     source               destination         
   43  2580 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain nova-filter-top (2 references)
pkts bytes target     prot opt in     out     source               destination         
1216K  449M nova-compute-local  all  --  *      *       0.0.0.0/0            0.0.0.0/0
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP