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

本文共 9708 字,大约阅读时间需要 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)

转载地址:http://zucpx.baihongyu.com/

你可能感兴趣的文章
CCNA- 距离矢量路由协议学习
查看>>
企业实践用户邮箱导入/导出(第2部分)
查看>>
如何学习Linux命令-初级篇
查看>>
从Oracle Public Yum为Oracle Linux建立本地的Yum源
查看>>
静态路由和默认路由
查看>>
关于阿里开发者招聘节 |这5道笔试真题 你会吗!???
查看>>
C#的异常处理机制
查看>>
vsftp:500 OOPS: could not bind listening IPv4 sock
查看>>
Linux安装BTCPayServer并设置比特币BTC和Lightning支付网关
查看>>
mysql安装,远程连接,以及修改密码
查看>>
Mybatis查询返回Map类型数据
查看>>
java的深拷贝与浅拷贝
查看>>
程序员如何提高工作效率
查看>>
promise
查看>>
将Java应用部署到SAP云平台neo环境的两种方式
查看>>
数据批量导入Oracle数据库
查看>>
调用lumisoft组件发邮件 不需要身份验证 不需要密码
查看>>
DW 正则
查看>>
抓屏原理
查看>>
UNIX网络编程读书笔记:TCP输出、UDP输出和SCTP输出
查看>>