使用packstack安装,版本为M,默认为vxlan网络, 操作系统为centos7.

由于学习的需要修改为flat网络。

首先修改配置文件:

/etc/neutron/plugins/ml2/ml2_conf.ini

type_drivers = flat

tenant_network_types =flat

mechanism_drivers =openvswitch

flat_networks = physnet1

然后修改/etc/neutron/plugins/ml2/openvswitch_agent.ini

bridge_mappings = physnet1:br-phy

增加ovs br-phy,并且绑定对外端口:

[root@myopenstack ml2]# ovs-vsctl show
73bdadc0-287a-4c0f-9c54-6ad6fb575347
Bridge br-ex
Port "qg-2ccfa701-cd"
Interface "qg-2ccfa701-cd"
type: internal
Port br-ex
Interface br-ex
type: internal
Bridge br-phy
Port "enp0s3"
Interface "enp0s3"
Port phy-br-phy
Interface phy-br-phy
type: patch
options: {peer=int-br-phy}
Port br-phy
Interface br-phy
type: internal

  然后重启service:    neutron-server  neutron-dhcp-agent neutron-openvswitch-agent

创建网络:

创建一个instance,使用这个网络。

但是instance创建完成后,不能够与外界通信。

自己尝试分析原因:

[root@myopenstack ml2]# brctl show
bridge name bridge id STP enabled interfaces
qbr187d132b-9d 8000.ce4f9fccba4d no qvb187d132b-9d
                  tap187d132b-9d

instance创建一个linux bridge, 端口为qvb187d132b-9d。

[root@myopenstack ml2]# ovs-vsctl show
73bdadc0-287a-4c0f-9c54-6ad6fb575347
Bridge br-ex
Port "qg-2ccfa701-cd"
Interface "qg-2ccfa701-cd"
type: internal
Port br-ex
Interface br-ex
type: internal
Bridge br-phy
Port "enp0s3"
Interface "enp0s3"
Port phy-br-phy
Interface phy-br-phy
type: patch
options: {peer=int-br-phy}
Port br-phy
Interface br-phy
type: internal
Bridge br-tun
fail_mode: secure
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-flat
Port br-flat
Interface br-flat
type: internal
Port phy-br-flat
Interface phy-br-flat
type: patch
options: {peer=int-br-flat}
Bridge br-int
fail_mode: secure
Port int-br-phy
Interface int-br-phy
type: patch
options: {peer=phy-br-phy}
Port "int-br-eth0"
Interface "int-br-eth0"
type: patch
options: {peer="phy-br-eth0"}
Port br-int
Interface br-int
type: internal
Port "tap239b2780-1b"
tag: 2
Interface "tap239b2780-1b"
type: internal
Port int-br-flat
Interface int-br-flat
type: patch
options: {peer=phy-br-flat}
Port "qvo187d132b-9d"
tag: 1
Interface "qvo187d132b-9d"
Port "qr-9e110b6b-5d"
tag: 2
Interface "qr-9e110b6b-5d"
type: internal
Port "tap2b05a39d-da"
tag: 1
Interface "tap2b05a39d-da"
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
ovs_version: "2.5.0"

  

linux bridge 连接到bridage br-int 而不是预期的 bridge br-phy.

谁能帮忙看看这个问题的原因何在?

非常感谢。

openstack-flat 网络问题的更多相关文章

  1. OpenStack入门篇(二十)之实现阿里云ESC多FLAT网络

    1.给两台虚拟机增加网卡,使用仅主机模式,网段为:192.168.57.0/24 2.修改两台主机网卡配置 [root@linux-node1 ~]# cp /etc/sysconfig/networ ...

  2. OpenStack虚拟网络与物理网络的衔接(flat方式)

    by 无若 这边以CentOS7+Liberty版本为例. 过去一段时间(Juno版本之前版本),OpenStack内的虚拟网络与真正的物理网络衔接主要使用openvswitch,其主要问题是在配置网 ...

  3. openstack的网络模式(转)

    单节点上虚拟机和虚拟机之间通信 直接同过linuxbridge转发数据,即可通信 虚拟机跨物理节点通信 利用交换机的包转发机制,在大二层网络中转发数据包 虚拟机跟外网通信 同样利用交换机转发,将数据包 ...

  4. openstack——neutron网络服务

    一.neutron 介绍:   Neutron 概述 传统的网络管理方式很大程度上依赖于管理员手工配置和维护各种网络硬件设备:而云环境下的网络已经变得非常复杂,特别是在多租户场景里,用户随时都可能需要 ...

  5. 028-实现阿里云ESC多FLAT网络

    实现类似于阿里云ECS的网络结构,其效果为云主机拥有两块和两个不同的网络,一个网络是用于用于和外网连接,一个用于内网通信,但宿主机上至少有两个网卡,整体配置如下:1.在wmare里给宿主机添加一块网卡 ...

  6. Openstack neutron 网络服务 (七)

    引用: https://docs.openstack.org/ocata/zh_CN/install-guide-rdo/common/get-started-networking.html neut ...

  7. OpenStack (neutron 网络服务)

    neutron介绍 提供 OpenStack 虚拟网络服务,也是 OpenStack 重要的核心模块之一,该模块最开始是 Nova 的一部分,叫 nova-network,后来从 Nova 中分离出来 ...

  8. Namespace:Openstack的网络实现

    前言:众所周知在linux系统中PID.IPC.Network等都是全局性的资源,不论什么的改动和删减都会对整个系统造成影响.这也是为什么kvm之类的虚拟化技术须要模拟一个完毕主机系统的原因. 可是. ...

  9. openstack的网络、子网、端口的关系

    network network 是一个隔离的二层广播域.Neutron 支持多种类型的 network,包括 local, flat, VLAN, VxLAN 和 GRE. locallocal 网络 ...

  10. OpenStack虚拟机网络问题

    当发现你的OpenStack虚拟机网络有问题,不妨先试一下这16个步骤   1. Security Group全部打开,这是最基本的,但是很多人容易忘记 其实遇到过无数这种场景了,Debug了半天网络 ...

随机推荐

  1. codeforces 519E A and B and Lecture Rooms LCA倍增

    Time Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64u Submit Status Prac ...

  2. jQuery Cycle Plugin的使用

    jQuery幻灯片效果或者Slideshow效果当中如果不考虑touch效果的话,jQuery Cycle插件实在是太强大了,各种高大上的动画效果,如果想加上touch效果可以结合本blog介绍的wi ...

  3. # asp.net core 1.0 项目结构

    1.环境 开发:VS2015 平台:window 7 2.解决方案级别结构 创建一个ASP.NET 5 Template Empty项目: src:存放项目(projects) global.json ...

  4. Unity 状态转化机器

    using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /** 有限状 ...

  5. BZOJ4644 : 经典傻逼题

    设每个点的权值为和它相连的所有边的权值的异或和,那么等价于选若干个点,使得点权异或和最大,这显然只需要维护一组线性基,然后从高位到低位贪心选取即可. 对于本题,因为有修改操作,所以考虑按时间分治,并用 ...

  6. HDU - The Suspects

    Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁.为了减少传播给别人的机会, 最好的策略是隔离可能的患者. 在Not ...

  7. HDU-I Hate It

    Problem Description 很多学校流行一种比较的习惯.老师们很喜欢询问,从某某到某某当中,分数最高的是多少.这让很多学生很反感. 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写 ...

  8. 【BZOJ2818】Gcd 欧拉筛

    Description 给定整数N,求1<=x,y<=N且Gcd(x,y)为素数的数对(x,y)有多少对. Input 一个整数N Output 如题 Sample Input 4 Sam ...

  9. 51nod算法马拉松14

    这次太丢人了只搞出来了A到D,那就将就写一写A到D... A 棋盘问题 脑筋急转弯题,不难发现每一次两个人只能染白奇数个格子,所以数数有奇数还是偶数个白格子就行了. #include<cstdi ...

  10. ubuntu 装机及装机以后干的事情

    一.装系统 下载ubuntu镜像 ubuntu 16.04 镜像下载(linux公社) 安装unetbootin (u盘启动盘制作工具) sudo apt-get install unetbootin ...