欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

OpenStack實(shí)踐(二):LinuxBridge方式實(shí)現(xiàn)LocalNetwork

版本信息

創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)整合營(yíng)銷推廣、網(wǎng)站重做改版、哈巴河網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、HTML5建站商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為哈巴河等各大城市提供網(wǎng)站開(kāi)發(fā)制作服務(wù)。

openstack版本pike
控制節(jié)點(diǎn)主機(jī)openstack-controller(ubuntu 16.04.5) 172.27.34.37
計(jì)算節(jié)點(diǎn)主機(jī)openstack-computer(ubuntu 16.04.5) 172.27.34.38
鏡像cirros-0.3.3-x86_64-disk.img

ubuntu安裝詳見(jiàn):Ubuntu16.04.5以lvm方式安裝全記錄

openstack安裝詳見(jiàn):OpenStack實(shí)踐(一):Ubuntu16.04下DevStack方式搭建p版OpenStack

local網(wǎng)絡(luò)

local網(wǎng)絡(luò)與其他網(wǎng)絡(luò)和節(jié)點(diǎn)隔離。不會(huì)與宿主機(jī)的任何物理網(wǎng)卡相連,也不關(guān)聯(lián)任何的 VLAN ID,local網(wǎng)絡(luò)中的instance只能與位于同一節(jié)點(diǎn)上同一網(wǎng)絡(luò)的instance通信,local網(wǎng)絡(luò)主要用于單機(jī)測(cè)試。

目標(biāo):cirros01和cirros02互通,cirros03與cirros01、cirros02不通,三個(gè)虛擬機(jī)都與宿主機(jī)不通。網(wǎng)絡(luò)拓?fù)淙缦拢?/p>

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

一、制作鏡像

上傳介質(zhì)cirros-0.3.3-x86_64-disk.img至/tmp目錄,鏡像下載地址:http://download.cirros-cloud.net/

制作鏡像:

root@openstack-controller:~#?su?-?stack
stack@openstack-controller:~$?source?devstack/openrc?admin?admin
stack@openstack-controller:~$?glance?image-create?--name?cirros-cli?--file?/tmp/cirros-0.3.3-x86_64-disk.img?--disk-format?qcow2?--container-format?bare?--progress

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

查看新建的image:

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

二、在ML2中配置local network
1.Neutron默認(rèn)使用ML2作為core plugin,控制節(jié)點(diǎn)和計(jì)算節(jié)點(diǎn)分別編輯ML2的配置文件/etc/neutron/plugins/ml2/ml2_conf.ini

tenant_network_types?=?local?
mechanism_drivers?=?linuxbridge
type_drivers?=?local,flat,vlan,gre,vxlan,geneve

2.重啟neutron服務(wù)

stack@openstack-controller:~$?sudo?systemctl?restart?devstack@q*

三、創(chuàng)建local network

1.創(chuàng)建local-network01

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

下一步,配置子網(wǎng)

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

子網(wǎng)為172.16.1.0/24

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

子網(wǎng)網(wǎng)段為172.16.1.2至172.16.1.50

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

2.創(chuàng)建localnetwork02

localnetwork01創(chuàng)建完成,同理創(chuàng)建localnetwork02,網(wǎng)段為172.16.1.51至172.16.1.100

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

四、創(chuàng)建instance

因?yàn)镈HCP agent在控制節(jié)點(diǎn)上運(yùn)行,local網(wǎng)絡(luò)的流量只能局限在本節(jié)點(diǎn)之內(nèi),故計(jì)算節(jié)點(diǎn)部署的instance發(fā)送的DHCP請(qǐng)求無(wú)法到達(dá)控制節(jié)點(diǎn),無(wú)法獲取到ip地址。

本文的instance都位于控制節(jié)點(diǎn)

1.查看實(shí)例類型

stack@openstack-controller:~$?nova?flavor-list

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

本文選擇m1.tiny

2.查看主機(jī)名和zone

stack@openstack-controller:~$?nova?service-list

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

3.指定控制節(jié)點(diǎn)啟動(dòng)虛擬機(jī)cirros01和cirros02,網(wǎng)絡(luò)為localnetwork01

stack@openstack-controller:~$?nova?boot?--flavor?m1.tiny?--image?cirros-cli??--availability-zone?nova:openstack-controller?--nic?net-name=localnetwork01?cirros01

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

stack@openstack-controller:~$?nova?boot?--flavor?m1.tiny?--image?
cirros-cli??--availability-zone?nova:openstack-controller?--nic?
net-name=localnetwork01?cirros02

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

4.新建虛擬機(jī)cirros03,網(wǎng)絡(luò)為localnetwork02

stack@openstack-controller:~$?nova?boot?--flavor?m1.tiny?--image?cirros-cli??--availability-zone?nova:openstack-controller?--nic?net-name=localnetwork02?cirros03

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

5.控制臺(tái)查看新建實(shí)例

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

6.查看虛擬網(wǎng)卡

命令查看tap

root@openstack-controller:~#?brctl?show

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

控制面板查看

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

可以看到Linux bridge01 brq91c5618d-18包含的虛擬網(wǎng)卡為tap08d6746a-10和tap4909a73b-da,Linux bridge02 brq7bd9076e-84包含的虛擬網(wǎng)卡為tap3efd4160-79。

五、測(cè)試

分別登陸cirros01、cirros02、cirros03,互ping和ping宿主機(jī)

1.cirros01

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

獲取的ip為172.16.1.19

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

ping cirros02通的,ping cirros03和宿主機(jī)不通。

2.cirros02

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

獲取的ip為172.16.1.12

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

ping cirros01通的,ping cirros03和宿主機(jī)不通。

3.cirros03

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

獲取的ip為172.16.1.52

OpenStack實(shí)踐(二):Linux Bridge方式實(shí)現(xiàn)Local Network

ping cirros01、cirros02和宿主機(jī)都不通。

測(cè)試結(jié)果符合預(yù)期

本文題目:OpenStack實(shí)踐(二):LinuxBridge方式實(shí)現(xiàn)LocalNetwork
文章轉(zhuǎn)載:http://www.chinadenli.net/article2/iiihoc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航商城網(wǎng)站靜態(tài)網(wǎng)站微信公眾號(hào)軟件開(kāi)發(fā)關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都網(wǎng)頁(yè)設(shè)計(jì)公司