openstack配置扁平網絡(一個內網,一個外網,兩個網卡)

  1. 修改配置文件
    管理節點
    vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    [linux_bridge]
    physical_interface_mappings = public:eth0,internal:eth1
vim /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2_type_flat]
flat_networks = public,internal

systemctl restart neutron-server.service neutron-linuxbridge-agent.servicelinux

計算節點vim

vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge]
physical_interface_mappings = public:eth0,internal:eth1

systemctl restart neutron-linuxbridge-agent.service網絡

  1. 在控制節點添加網絡和子網
    openstack network create  --share --external \
    --provider-physical-network internal \
    --provider-network-type flat internal
openstack subnet create --network internal \
  --allocation-pool start=10.201.2.100,end=10.201.2.200 \
  --dns-nameserver 202.96.134.133 --gateway 10.201.2.254 \
  --subnet-range 10.201.2.0/24 internal

openstack network listapp

相關文章
相關標籤/搜索