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.service

计算节点

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 list