13.CentOS7下Openstack-Train版本安装--创建虚拟网络

1.准备工作

1.1.在控制节点与计算节点互相ping对方主机名与IP地址

1.2.在控制节点与计算节点删除NetworkManager软件包

yum remove NetworkManager -y

2.创建虚拟网络

2.1.创建网络

[[email protected] ~]# source admin-openrc
[[email protected] ~]# openstack network create --share --external --provider-physical-network provider --provider-network-type flat vm-network
+---------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                     | Value                                                                                                                                                   |
+---------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up            | UP                                                                                                                                                      |
| availability_zone_hints   |                                                                                                                                                         |
| availability_zones        |                                                                                                                                                         |
| created_at                | 2020-01-21T07:04:39Z                                                                                                                                    |
| description               |                                                                                                                                                         |
| dns_domain                | None                                                                                                                                                    |
| id                        | 3f003554-62fa-4b6a-b204-0a12b28d26af                                                                                                                    |
| ipv4_address_scope        | None                                                                                                                                                    |
| ipv6_address_scope        | None                                                                                                                                                    |
| is_default                | None                                                                                                                                                    |
| is_vlan_transparent       | None                                                                                                                                                    |
| location                  | cloud=‘‘, project.domain_id=, project.domain_name=‘Default‘, project.id=‘a72c37c8aaaa45b5af3833acbc2cf1d4‘, project.name=‘admin‘, region_name=‘‘, zone= |
| mtu                       | 1500                                                                                                                                                    |
| name                      | vm-network                                                                                                                                              |
| port_security_enabled     | True                                                                                                                                                    |
| project_id                | a72c37c8aaaa45b5af3833acbc2cf1d4                                                                                                                        |
| provider:network_type     | flat                                                                                                                                                    |
| provider:physical_network | provider                                                                                                                                                |
| provider:segmentation_id  | None                                                                                                                                                    |
| qos_policy_id             | None                                                                                                                                                    |
| revision_number           | 1                                                                                                                                                       |
| router:external           | External                                                                                                                                                |
| segments                  | None                                                                                                                                                    |
| shared                    | True                                                                                                                                                    |
| status                    | ACTIVE                                                                                                                                                  |
| subnets                   |                                                                                                                                                         |
| tags                      |                                                                                                                                                         |
| updated_at                | 2020-01-21T07:04:39Z                                                                                                                                    |
+---------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+

2.2.创建子网

[[email protected] ~]# openstack subnet create --network vm-network --allocation-pool start=172.17.0.225,end=172.17.0.230 --dns-nameserver 218.30.19.50 --gateway 172.17.0.1 --subnet-range 172.17.0.0/24 vm-subnetwork
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field             | Value                                                                                                                                                   |
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+
| allocation_pools  | 172.17.0.225-172.17.0.230                                                                                                                               |
| cidr              | 172.17.0.0/24                                                                                                                                           |
| created_at        | 2020-01-21T07:11:23Z                                                                                                                                    |
| description       |                                                                                                                                                         |
| dns_nameservers   | 218.30.19.50                                                                                                                                            |
| enable_dhcp       | True                                                                                                                                                    |
| gateway_ip        | 172.17.0.1                                                                                                                                              |
| host_routes       |                                                                                                                                                         |
| id                | d5ec9bb2-b1f5-4bb8-87e6-559001f07c5c                                                                                                                    |
| ip_version        | 4                                                                                                                                                       |
| ipv6_address_mode | None                                                                                                                                                    |
| ipv6_ra_mode      | None                                                                                                                                                    |
| location          | cloud=‘‘, project.domain_id=, project.domain_name=‘Default‘, project.id=‘a72c37c8aaaa45b5af3833acbc2cf1d4‘, project.name=‘admin‘, region_name=‘‘, zone= |
| name              | vm-subnetwork                                                                                                                                           |
| network_id        | 3f003554-62fa-4b6a-b204-0a12b28d26af                                                                                                                    |
| prefix_length     | None                                                                                                                                                    |
| project_id        | a72c37c8aaaa45b5af3833acbc2cf1d4                                                                                                                        |
| revision_number   | 0                                                                                                                                                       |
| segment_id        | None                                                                                                                                                    |
| service_types     |                                                                                                                                                         |
| subnetpool_id     | None                                                                                                                                                    |
| tags              |                                                                                                                                                         |
| updated_at        | 2020-01-21T07:11:23Z                                                                                                                                    |
+-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+

3.查看网络配置

[[email protected] ~]# openstack network list
+--------------------------------------+------------+--------------------------------------+
| ID                                   | Name       | Subnets                              |
+--------------------------------------+------------+--------------------------------------+
| 3f003554-62fa-4b6a-b204-0a12b28d26af | vm-network | d5ec9bb2-b1f5-4bb8-87e6-559001f07c5c |
+--------------------------------------+------------+--------------------------------------+
[[email protected] ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0c:29:17:73:d4 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.211/24 brd 172.17.0.255 scope global noprefixroute ens192
       valid_lft forever preferred_lft forever
    inet6 fe80::d176:ba69:c9a9:74b7/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
3: tap1b5e2f47-47@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ea:14:2b:c5:a3:3d brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::5241:6957:a3e7:cef3/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
4: brq3f003554-62: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
    link/ether 06:55:35:4e:5f:98 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.211/24 brd 172.17.0.255 scope global brq3f003554-62
       valid_lft forever preferred_lft forever
    inet6 fe80::455:35ff:fe4e:5f98/64 scope link
       valid_lft forever preferred_lft forever
[[email protected] ~]# systemctl restart network
[[email protected] ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens192: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master brq3f003554-62 state UP group default qlen 1000
    link/ether 00:0c:29:17:73:d4 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.211/24 brd 172.17.0.255 scope global ens192
       valid_lft forever preferred_lft forever
    inet6 fe80::b76a:73d4:31fe:f693/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe17:73d4/64 scope link
       valid_lft forever preferred_lft forever
3: tap1b5e2f47-47@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master brq3f003554-62 state UP group default qlen 1000
    link/ether ea:14:2b:c5:a3:3d brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 fe80::5241:6957:a3e7:cef3/64 scope link noprefixroute
       valid_lft forever preferred_lft forever
4: brq3f003554-62: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:0c:29:17:73:d4 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.211/24 brd 172.17.0.255 scope global brq3f003554-62
       valid_lft forever preferred_lft forever
    inet6 fe80::455:35ff:fe4e:5f98/64 scope link
       valid_lft forever preferred_lft forever

原文地址:https://www.cnblogs.com/dukun166/p/12221875.html

时间: 2024-10-08 22:35:30

13.CentOS7下Openstack-Train版本安装--创建虚拟网络的相关文章

Centos7下vim最新版本安装

一直以来用的都是vim,因为之前都是系统自带的vim没有研究过怎么自己安装,今天趁着刚装完新系统,顺便装下vim. 同样vim也有两种安装方法: 一.yum安装,centos下安装软件最简单的方法了,还能解决依赖问题,首推该方法,缺点是源里面有一些软件并不是其官网上最新的 sudo yum install -y vim 二.源码编译安装,今天重点介绍这种方法,不过也挺简单的 1.通过git下载vim最新版 git clone https://github.com/vim/vim.git 2.解决

11-SCVMM2012之创建虚拟网络

4.6.创建虚拟网络SCVMM可以给Hyper-V主机配置逻辑交换机或者标准交换机.所谓标准交换机,就是在Hyper-V主机上配置的虚拟网络,无法通过SCVMM进行端口带宽配置,如果要为虚拟机带宽做配置,只能通过Hyper-V管理器或者群集管理器单独为VM做配置.通过SCVMM为Hyper-V建立标准交换机,映射的是Hyper-V主机上的某块网卡,如果主机没有做NIC组,要充分利用多网卡,就需要做多个标准交换机,或者建立NIC组,将标准交换机映射到虚拟的NIC组上,这些工作完全是手动的,对于少数

Tungsten Fabric与K8s集成指南丨创建虚拟网络

作者:吴明秘 Hi!欢迎来到Tungsten Fabric与Kubernetes集成指南系列,本文介绍通常创建虚拟网络的五个步骤.Tungsten Fabric与K8s集成指南系列文章,由TF中文社区为您呈现,旨在帮助大家了解Tungsten Fabric与K8s集成的基础知识.大家在相关部署中有什么经验,或者遇到的问题,欢迎与我们联系. 在做好架构部署,并确认Tungsten Fabric和Kubernetes(K8s)集群的初始状态没有问题后,就可以开始尝试创建虚拟网络了. 第1步:新建命名

Windows Azure系列 -《基础篇》- 创建虚拟网络

如何在Windows Azure中创建虚拟网络,以构建云环境中的虚拟局域网: 1.登陆Windows Azure平台,点击侧边栏网络按钮,在中间点击"创建虚拟网络". 2.在接下来的配置页面,填写虚拟网络的名称.选择地理外置和地缘组(如果已有),没有则选择创建新的地缘组. 3.接下来填写DNS服务器地址(没有则留空) 4.规划和配置IP网络,选择适用的地址空间. 5.最后点击确认按钮完成. Windows Azure系列 -<基础篇>- 创建虚拟网络,布布扣,bubuko.

vmware下ubuntu不能上网 =&gt; 恢复默认虚拟网络

1.关闭虚拟机ubuntu 2.打开:编辑=> 虚拟网络编辑器 3.打开后点击左下角恢复默认 4.重启ubuntu就可以了 vmware下ubuntu不能上网 => 恢复默认虚拟网络

【CentOS】在Centos7 下无图形界面安装 Oracle11g

目标 - 在虚拟机CentOS7中无图形界面安装Oracle11G R2版本 ① 系统要求以及准备 1. 物理内存不小于1G: 查看方式: # grep MemTotal /proc/meminfo 2. 可用硬盘不小于8G: 查看方式: # df 3.Swap分区空间不小于2G: 查看方式: # grep SwapTotal /proc/meminfo 4. 关闭firewalld防火墙 # systemctl status firewalld.service #查看firewalld防火墙状

centos7下keepalived1.3.4安装与使用

keepalived是集群管理中保证集群高可用的一个服务软件,其功能类似于heartbeat,用来防止单点故障. 一.下载keepalived http://www.keepalived.org/ 如:keepalived-1.3.4.tar.gz 二.安装keepalived > tar xf keepalived-1.3.4.tar.gz > cd keepalived-1.3.4 > ./configure --prefix=/data/keepalived > make &

CentOS7 下配置svn的安装及基础配置介绍

[[email protected] ~]# yum install subversion 查看是否安装安装成功[[email protected] ~]# svnserve --versionsvnserve, version 1.7.14 (r1542130) compiled Jun 9 2014, 18:54:44 Copyright (C) 2013 The Apache Software Foundation.This software consists of contributio

centos7下oracle11g详细的安装与建表操作

一.oracle的安装,在官网下载oracle11g R2 1.在桌面单击右键,选择"在终端中打开",进入终端 输入命令:su 输入ROOT密码: 创建用户组oinstall:groupadd oinstall 创建用户组dba:groupadd dba 创建oracle用户,并加入到oinstall和dba用户组:useradd -g oinstall -g dba -m oracle 设置用户oracle登录密码,需要确认一次,注意两次密码要一样(注意:此处的密码是oracle账户