# vi /etc/neutron/plugins/ml2/ml2_conf.ini
修改前:
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider
[ml2_type_vlan]
#network_vlan_ranges = provider:1:1000
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_ipset = true
->
修改前后:
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider
[ml2_type_vlan]
network_vlan_ranges = provider:1:1000
[ml2_type_vxlan]
# vni_ranges = 1:1000
[securitygroup]
enable_ipset = true
# vi /etc/neutron/plugins/ml2/openvswitch_agent.ini
[agent]
tunnel_types =
l2_population = True
[ovs]
bridge_mappings = provider:br-provider
local_ip = 10.0.0.11
[securitygroup]
firewall_driver = iptables_hybrid
重启计算及网络:
# systemctl restart openstack-nova-api.service
# systemctl restart neutron-*