使用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. 【CLR in c#】属性

    1.无参属性 1.为什么有字段还需要属性呢? 因为字段很容易写出不恰当的代码,破坏对象的状态,比如Age=-1.人的年纪不可能为负数.使用属性后你可以缓存某些值或者推迟创建一些内部对象,你可以以线程安 ...

  2. MFC 动态修改对话框标题

    在对应对话框的初始化函数OnInitDialog()中添加以下代码: CString title; title.Format("%d",Id);//在标题栏动态显示Id的值 thi ...

  3. 使用Soapui测试webservice接口

    本来想自己写一个的,但下面这个资料比较详细(截图和步骤细节),就省事了,具体内容见: http://blog.csdn.net/oracle_microsoft/article/details/568 ...

  4. HTML DOM domain 属性

    定义和用法 domain 属性可返回下载当前文档的服务器域名. 语法 document.domain 说明 该属性是一个只读的字符串,包含了载入当前文档的 web 服务器的主机名. 提示和注释 提示: ...

  5. WPF中获取形状范围

    在没加入到Canvas时,也能获取形状的方法: var polygon = new Polygon(); polygon.Points.Add(new Point(xStart, yStart)); ...

  6. CF# Educational Codeforces Round 3 F. Frogs and mosquitoes

    F. Frogs and mosquitoes time limit per test 2 seconds memory limit per test 512 megabytes input stan ...

  7. 几个Windows电脑小技巧

    1. 为cmd命令提示符设置默认的初始路径: 到开始菜单-附件-属性  里面有起始位置选项 其中%HOMEDRIVE%%HOMEPATH%就代表起始位置 如想每次键cmd进入命令提示符后的初始位置是 ...

  8. C#数组的声明方式

    C#数组的五种声明方式 一.声明一个未经初始化的数组引用,以后可以把这引用初使化为一个数组实例 int[] intArray; intArray = new int[10]; 注:数组的引用必须以相同 ...

  9. Hive内部表外部表转化分析(装)

    link:http://anyoneking.com/archives/127hive表分为内部表和外部表.外部表在删除的时候并不会删除到hdfs中的文件,比较安全,所以对于重要的需要进行分析的日志建 ...

  10. Activiti工作流学习(一)部署对象和流程定义

    一.前言 前一段时间在工作中,使用了流程审批,对api的调用非常不熟悉,都是调用别人写好的接口在界面上进行显示,基本了解了流程审批的主要步骤,现对流程审批进行学习,主要是调用api进行CRUD操作,感 ...