配置 L2 Population - 天天5分鐘玩轉 OpenStack(114)

前面咱們學習了L2 Population 的原理,今天討論如何在 Neutron 中配置和啓用此特性。linux

目前 L2 Population 支持 VXLAN with Linux bridge 和 VXLAN/GRE with OVS。學習

能夠經過如下配置啓用 L2 Population。spa

在 /etc/neutron/plugins/ml2/ml2_conf.ini 設置 l2population mechanism driver。ci

mechanism_drivers = linuxbridge,l2populationit

同時在 [VXLAN] 中配置 enable L2 Population。io

L2 Population 生效後,建立的 vxlan-100 會多一個 Proxy ARP 功能。原理

查看控制節點上的 forwarding database,能夠看到 VTEP 保存了 cirros-vm2 的 port 信息。配置

cirros-vm2 的 MAC 爲 fa:16:3e:1d:23:a3。 VTEP IP 爲 166.66.16.11。plugin

當須要與 cirros-vm2 通訊時,控制節點 VTEP 166.66.16.10 會將封裝好的 VXLAN 數據包直接發送給計算節點的 VTEP 166.66.16.11。im

咱們再查看一下計算節點上的 forwarding database:

fdb 中保存了 cirros-vm1 和 dhcp 的 port 信息。 當須要與它們通訊時,計算節點 VTEP 知道應該將數據包直接發送給控制節點的 VTEP。

下節咱們開始學習 Neutron 的另外一個特性 -- Securet Group。

 

blob.png

相關文章
相關標籤/搜索