前面咱們是直接用 curl 測試 VIP,在更爲真實的場景中一般會使用 floating IP 訪問 VIP。web
下面咱們給 VIP 關聯一個 floating IP,再進行測試。網絡
訪問 Project -> Compute -> Access & Security,打開 Floating IPs 標籤頁,點擊 「Allocate IP to Project」 按鈕。curl
在下拉列表中選擇 「ext_net」,Neutron 將從該網絡中分配 floating IP。學習
點擊 「Allocate IP」。測試
分配到的 IP 爲 「10.10.10.7」。 點擊 「Associate」 按鈕。url
在 「Port to be associated」 列表中選擇 「VIP for web servers: 172.16.100.11」 並點擊 「Associate」。spa
成功將外網 IP 10.10.10.7 關聯到 VIP。server
下面是在 IP 爲 10.10.10.4 的 instance 中進行 curl 測試。ci
floating IP 生效,load balaner 工做正常。it
LBaaS 爲租戶提供了橫向擴展應用的能力。
租戶能夠將外部請求 balancing 到多個 instance 上,並經過 monitor 實現應用的高可用。
LBaaS 當前的實現是基於 HAProxy,其功能已經可以知足普通業務需求。
至此,Linux Bridge 實現 Neutron 網絡的所有內容已經討論完,下節咱們開始學習 Open vSwitch 實現。