使用OpenStack虚机启动的网卡是临时的,虚拟机重启就失效了,虚拟机挂起也会失效,网卡重启也会失效
The net that was activated with OpenStack is temporary, the virtual reboot lapses, the virtual hang-up lapses, and the reboot fails.
测试环境: 分别在三台机器上增加一个网卡,选择lan网段,地址172.16.0.0/24
Test environment: Add a net card to each of the three machines and select the lan section, address 172.1.0.0/24
(一)增加一个flat网络原因
(i) Reason for adding a flat network
(二)添加网卡eth1
(ii) Add Netcaeth1
控制节点:
Control node:
计算节点1:
Calculate Node 1:
计算节点2:
Calculate Node 2:
互相进行ping测试,测试连通性
Test each other for ping, test for connectivity.
(三)控制节点配置
1:控制节点
(iii) Control Node Configuration
1: Control Node
a:
b:
c:重启
systemctl restart neutron-server.service neutron-linuxbridge-agent.service
c: restart reboot neutron-server.service neutron-linuxbridge-agent.service
(四)计算节点配置
a:
(iv) Calculate node configuration
a:
b:重启
b: Restart
(五)创建网络
1、命令行创建:
neutron net-create --shared --provider:physical_network net172_16_0
--provider:network_type flat jiage
(v) Creation of network
1 with command line creation:
neutron net-create-shared-provider:physical_network net172_16_0br> --provider:network_type flatjiage
neutron subnet-create --name jiage
--allocation-pool start=172.16.0.1,end=172.16.0.250
--dns-nameserver 223.5.5.5 --gateway 172.16.0.254
jiage 172.16.0.0/24
查看创建的网络和子网详情
View created network and subnet details
2、web页面创建网络:
管理员-网络-创建网络(供应商:平面)
2. Web page creation network:
Administrator-network-creation network (supplier: plane)
创建子网
Create Subnet
创建实例测试网络是否可用:项目-实例-创建实例(创建过程中可以选择刚创建的网络)
Create example test network availability: project - example - create example (the creation process allows for the selection of a network that has just been created)
目前网络内网是通的,但是外网不通.因为指定的网关真实并不存在
需要创建一个linux系统作为路由器使用:
The network is currently accessible, but the outer network is not. Because the designated gateway does not exist
requires the creation of a linux system to be used as a router:
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论