我的环境是:两台机器搭建openstack环境 一台controller一台compute 每台机器两块网卡 eth0是内网(192.168.60.0) eth1是外网(172.16.60.0) 想问下桥接的问题,目前我是这么配置的: 在controller端执行 ovs-vsctl add-br br-int ovs-vsctl add-br br-ex ovs-vsctl add-port br-ex eth1 ovs-vsctl add-port br-int eth0 清空eth0的ip地址,配置到br-int中 清空eth1的ip地址,配置到br-ex中 在compute端执行 ovs-vsctl add-br br-int ovs-vsctl add-port br-int eth0 清空eth0的ip地址,配置到br-int中 Neutron中的网络是这样创建的: #neutron net-create ext-net --shared --router:external=True #neutron subnet-create ext-net --name ext-subnet --allocation-pool start=172.16.60.100,end=172.16.60.200 --disable-dhcp --gateway 172.16.60.1 172.16.60.0/24 #. demo-openrc.sh #neutron net-create demo-net #neutron subnet-create demo-net --name demo-subnet 10.5.5.0/24 --gateway 10.5.5.1 #neutron router-create demo-router #neutron router-interface-add demo-router demo-subnet #neutron router-gateway-set demo-router ext-net Controller端ovs-vsctl show:
c0c4d635-6929-421e-a969-49f753c94e8a Bridge br-ex Port "qg-d3373cc0-bd" Interface "qg-d3373cc0-bd" type: internal Port "eth1" Interface "eth1" Port br-ex Interface br-ex type: internal Bridge br-int fail_mode: secure Port phy-br-int Interface phy-br-int Port "tap98f78da0-d2" tag: 1 Interface "tap98f78da0-d2" type: internal Port "eth0" Interface "eth0" Port br-int Interface br-int type: internal Port int-br-int Interface int-br-int Port "qr-05290bfa-1f" tag: 1 Interface "qr-05290bfa-1f" type: internal ovs_version: "2.1.3" compute端ovs-vsctl show: 9f9236dc-e44e-4974-b719-c5e6ed5526aa Bridge br-int fail_mode: secure Port br-int Interface br-int type: internal Port phy-br-int Interface phy-br-int Port "eth0" Interface "eth0" Port int-br-int Interface int-br-int Port "qvobef2f180-f3" tag: 1 Interface "qvobef2f180-f3"
ovs_version: "2.1.3" 在启动的虚机中为什么ping不通网关(10.5.5.2)? 跪求大神帮忙
|