這篇文章主要介紹openstack如何使用openvswitch實(shí)現(xiàn)vxlan,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
長(zhǎng)洲網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)建站,長(zhǎng)洲網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為長(zhǎng)洲上1000+提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站建設(shè)要多少錢,請(qǐng)找那個(gè)售后服務(wù)好的長(zhǎng)洲做網(wǎng)站的公司定做!
具體如下:
openstack環(huán)境:
1 版本:ocata
2 系統(tǒng):ubuntu16.04.2
3 控制節(jié)點(diǎn) 1個(gè) + 計(jì)算節(jié)點(diǎn) 1個(gè)
4 控制節(jié)點(diǎn)網(wǎng)卡為ens33,ip = 172.171.5.200 ens34 manual模式 無(wú)IP
一 下載openswitch
controller :
apt-get install neutron-openvswitch-agent
compute :
apt-get install neutron-openvswitch-agent
二 配置openvswitch
配置 /etc/neutron/plugins/ml2/ml2_conf.ini 文件
etc/neutron/plugins/ml2/openvswitch_agent.ini 在[ovs]增加
配置 /etc/neutron/l3_agent.ini
配置修改/etc/neutron/plugins/ml2/ml2_conf.ini 設(shè)置如下
配置修改/etc/neutron/plugins/ml2/openvswitch_agent.ini 設(shè)置如下
增加用于外部網(wǎng)絡(luò)的網(wǎng)橋
ovs-vsctl add-br br-ex
向外部網(wǎng)橋添加物理網(wǎng)卡
ovs-vsctl add-port br-ex ens33
三 dashboard配置租戶網(wǎng)絡(luò)
1 使用admin用戶登錄,創(chuàng)建外部網(wǎng)絡(luò)。
2 以demo用戶登錄,創(chuàng)建內(nèi)網(wǎng)。因?yàn)樵诤笈_(tái)配置時(shí)已經(jīng)選擇了內(nèi)部網(wǎng)絡(luò)為vxlan,所以demo用戶創(chuàng)建的網(wǎng)絡(luò)為vxlan。
這里配置的網(wǎng)段是創(chuàng)建的實(shí)例能夠分配的地址。
創(chuàng)建好內(nèi)網(wǎng)和外網(wǎng)之后,創(chuàng)建一個(gè)路由器連接兩個(gè)網(wǎng)段。在這個(gè)路由器上完成的功能是NAT,當(dāng)實(shí)例出外網(wǎng)時(shí),將內(nèi)網(wǎng)地址NAT成外網(wǎng)地址以便訪問公網(wǎng)。
當(dāng)網(wǎng)絡(luò)創(chuàng)建好之后,網(wǎng)絡(luò)拓?fù)鋺?yīng)該是如下圖所示。藍(lán)色為公網(wǎng)網(wǎng)段,黃色為私網(wǎng)網(wǎng)段,中間是路由器,連接黃色的為開啟的實(shí)例。
四 底層網(wǎng)絡(luò)分析
與Linux-bridge不同,使用Openvswitch作為網(wǎng)絡(luò)驅(qū)動(dòng)之后創(chuàng)建vxlan網(wǎng)絡(luò)會(huì)生成在controller生成三個(gè)網(wǎng)橋,分別是:
br-int 連接 DNSmasq,流表邏輯處理
br-ex 連接網(wǎng)卡,出外網(wǎng)網(wǎng)橋
br-tun 隧道端點(diǎn)
在compute節(jié)點(diǎn)生成兩中網(wǎng)橋,分別是:
br-int 連接虛擬機(jī)
br-tun 隧道端點(diǎn),連接到controller。
如下圖所示,分別是controller與compute節(jié)點(diǎn)的br-tun分析。
local_ip為本地隧道端點(diǎn)IP地址,remote_ip為對(duì)端隧道端點(diǎn)IP地址。本環(huán)境是管理網(wǎng)卡為隧道端點(diǎn),也可以使用單獨(dú)的網(wǎng)卡。
具體如下圖所示:
下圖為 compute節(jié)點(diǎn)的br-int網(wǎng)橋,網(wǎng)橋上掛有兩個(gè)端點(diǎn),第一個(gè)是與實(shí)例有關(guān),第二個(gè)連接br-tun
具體見下圖compute節(jié)點(diǎn)
下圖為controller節(jié)點(diǎn)的端口信息,第一個(gè)為controller上br-int與br-tun的連接;第二個(gè)是dhcp的設(shè)備;第三個(gè)是dashboard中創(chuàng)建的路由器的一端;第四個(gè)是br-int與br-ex的連接。
上圖對(duì)應(yīng)的連接為下圖所示
下圖為controller節(jié)點(diǎn)的br-ex網(wǎng)橋,三個(gè)端口分別是:
1 路由器的另一端(還有一端在br-int)
2 自身環(huán)回口,類似linux中的環(huán)回口。
3 外網(wǎng)網(wǎng)卡
上圖對(duì)應(yīng)的關(guān)系如下圖所示:
openstack使用openvswitch實(shí)現(xiàn)的VxLAN就如下圖所示。圖片出處為about 云 。
以上是“openstack如何使用openvswitch實(shí)現(xiàn)vxlan”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對(duì)大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!
分享文章:openstack如何使用openvswitch實(shí)現(xiàn)vxlan
URL地址:http://www.muchs.cn/article22/piejcc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、網(wǎng)頁(yè)設(shè)計(jì)公司、營(yíng)銷型網(wǎng)站建設(shè)、網(wǎng)站制作、網(wǎng)站設(shè)計(jì)公司、電子商務(wù)
聲明:本網(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)