上一節咱們建立了 "flat_net",本節將在此網絡中部署 instance 並驗證連通性。網絡
launch 新的 instance 「cirros-vm1」,選擇網絡 falt_net。ci
cirros-vm1 分配到的 IP 爲 172.16.1.103。部署
cirros-vm1 被 schedule 到控制節點,對應的 tap 設備爲 tapc1875c7f-cb,而且已經鏈接到 bridge。network
當前 flat_net 的結構以下:im
繼續用一樣的方式 launch instance cirros-vm2,分配到的 IP 爲 172.16.1.104。blob
cirros-vm2 被 schedule 到計算節點,對應的 tap 設備爲 tapfb3fb197-24,而且鏈接到 bridge。img
這裏有兩點須要提醒:ping
由於計算節點上沒有 hdcp 服務,因此 brctl show 中沒有 dhcp 對應的 tap 設備。
計算節點上 bridge 的名稱與控制節點上一致,都是 brqf153b42f-c3,代表是同一個 network。
當前 flat_net 的結構以下:
cirros-vm1(172.16.1.103) 與 cirros-vm2(172.16.1.104) 位於不一樣節點,經過 flat_net 相連,下面執行 PING 驗證連通性。 在 cirros-vm1 控制檯中執行 ping 172.16.1.104
如咱們預料,ping 成功。
flat network 至此告一段落。下節將開始深刻討論以前屢次涉及的環節:
instance 如何從 Neutron 的 DHCP 服務得到 IP?