kolla配置provider网络

根据https://blog.51cto.com/penguintux/2539670安装openstack
kolla默认使用flat作外网,现调整eth1为trunk,重新配置neutron

编辑ml2_conf.ini

cat <<EOF>> /etc/kolla/config/neutron/ml2_conf.ini 
[ml2_type_vlan]
network_vlan_ranges = physnet1:10:1000
# 也可以不指定vlan的范围
# network_vlan_ranges = physnet1:10:1000,physnet2

[ml2_type_flat]
flat_networks = 
EOF

重新配置neutron

kolla-ansible \
   -i kolla-ansible/ansible/inventory/all-in-one  \
   reconfigure \
   --tags neutron

创建provider网络作为外网

  • --provider-segment:vlan id
openstack network create  \
  --provider-network-type vlan   \
  --provider-physical-network physnet1 \
  --provider-segment 100 \
  --external \
  --project service \
  public
上一篇:kolla单节点部署openstack


下一篇:python – 将16位灰度转换为QImage