博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
openstack新建虚机、网络、路由时候对应的ovs网桥的变化
阅读量:4549 次
发布时间:2019-06-08

本文共 9758 字,大约阅读时间需要 32 分钟。

 

 

[root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# [root@wb5 ~]# ovs-vsctl show =========================原始======================bf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# create admin-int=====================增加br-int的一个tap的port=========================-bash: create: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"-----------------------------------------------------------------            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add admin-router=============================没有变化================-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add ext-net======================================没有变化=========-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add ext-subnet  101~105 108~110=====================增加br-int的一个tap的port====================-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port "tap7d3cee3e-2b"            tag: 2            Interface "tap7d3cee3e-2b"----------------------------------------------------------------------                type: internal        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add interface to extnet in admin-router==========================没有变化========-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port "tap7d3cee3e-2b"            tag: 2            Interface "tap7d3cee3e-2b"                type: internal        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add interface to admin-int in admin-router===========================没有变化==================-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port "tap7d3cee3e-2b"            tag: 2            Interface "tap7d3cee3e-2b"                type: internal        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add a vm 192.168.1.6=====================================增加了br-int的一个qvo的port=======-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port "tap7d3cee3e-2b"            tag: 2            Interface "tap7d3cee3e-2b"                type: internal        Port "qvo1a7bcce3-c9"-------------------------------------------------------------            tag: 1            Interface "qvo1a7bcce3-c9"        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]# add a vm2 192.168.1.7=========================================增加了br-int的一个qvo的port=============-bash: add: command not found[root@wb5 ~]# ovs-vsctl showbf9e88f0-f9f7-4878-81df-6faa332ab037    Bridge br-tun        fail_mode: secure        Port patch-int            Interface patch-int                type: patch                options: {peer=patch-tun}        Port br-tun            Interface br-tun                type: internal    Bridge br-ex        Port br-ex            Interface br-ex                type: internal        Port "ens256"            Interface "ens256"    Bridge br-int        fail_mode: secure        Port "tap7d3cee3e-2b"            tag: 2            Interface "tap7d3cee3e-2b"                type: internal        Port "qvo1a7bcce3-c9"            tag: 1            Interface "qvo1a7bcce3-c9"        Port patch-tun            Interface patch-tun                type: patch                options: {peer=patch-int}        Port "qvo824b8f9d-c5"----------------------------------------------------------------------            tag: 1            Interface "qvo824b8f9d-c5"        Port br-int            Interface br-int                type: internal        Port "tapb3284d90-04"            tag: 1            Interface "tapb3284d90-04"                type: internal    ovs_version: "2.3.0"[root@wb5 ~]#

  

 

总结:

在增加  虚机  和   有子网的网络   的时候才会在br-int这个网桥增加一个port(虚机是qvo, 网络是tap)

转载于:https://www.cnblogs.com/juandx/p/5418296.html

你可能感兴趣的文章
python 传参问题
查看>>
rpm命令的使用
查看>>
python 面向对象
查看>>
暑假第一周进度总结
查看>>
The Anatomy of a COM Server(Chapter 2 of COM and .NET Interoperability) part2
查看>>
mysql的Navicat查看数据库的ER图
查看>>
A熟知SP.NET---WebForms UnobtrusiveValidationMode 必须“jquery”ScriptResourceMapping。
查看>>
alternatives命令使用方法
查看>>
IDEA Maven配置
查看>>
mapreduce 实现矩阵乘法
查看>>
Jquery EasyUI封装简化操作
查看>>
OO第一单元总结
查看>>
[原创]你所需要了解的软件测试相关标准
查看>>
最近这么火的iOS视频直播
查看>>
程序员陪女朋友自拍杆哪个好?自拍杆品牌推荐
查看>>
output 参数在存储过程中的用法
查看>>
大数加法和乘法(高精度)
查看>>
利用SynchronizationContext.Current在线程间同步上下文
查看>>
单片机reg51.h头文件详解(1)
查看>>
python各种类型转换-int,str,char,float,ord,hex,oct等
查看>>