网络节点:192.168.10.99
控制节点: 192.168.10.95
计算节点: 192.168.10.101
网络节点:192.168.10.99
#[ml2]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,gre,vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers openvswitch
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 path_mtu 1550
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 segment_mtu 1550
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 physical_network_mtus external:1500
#[ml2_type_vxlan]
vni_ranges = 65537:69999
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vni_ranges 130000:139999
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vxlan_group 224.0.0.1
#[ovs]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs local_ip 192.168.10.99
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_type vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_bridge br-tun
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs integration_bridge br-int
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_id_ranges 130000:139999
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tenant_network_type vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs enable_tunneling true
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings external:br-ex
#[agent]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent tunnel_types vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent root_helper ‘sudo neutron-rootwrap /etc/neutron/rootwrap.conf‘
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent vxlan_udp_port 4789
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent l2_population False
#[securitygroup]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_security_group True
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_ipset True
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_flat flat_networks external
#*****************************************************************************************************
控制节点neutron 192.168.10.95
#[ml2]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,gre,vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers openvswitch
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 path_mtu 1550
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 segment_mtu 1550
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 physical_network_mtus external:1500
#[ml2_type_vxlan]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vni_ranges 130000:139999
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vxlan_group 224.0.0.1
#[securitygroup]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_security_group True
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_ipset True
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
计算节点neutron 192.168.10.101
#[ml2]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,gre,vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers openvswitch
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 path_mtu 1550
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 segment_mtu 1550
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 physical_network_mtus external:1500
#[ml2_type_vxlan]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vni_ranges 130000:139999
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vxlan vxlan_group 224.0.0.1
#[ovs]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs local_ip 192.168.10.101
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_type vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_bridge br-tun
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs integration_bridge br-int
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tunnel_id_ranges 130000:139999
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tenant_network_type vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs enable_tunneling true
#crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs bridge_mappings external:br-ex
#[agent]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent tunnel_types vxlan
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent root_helper ‘sudo neutron-rootwrap /etc/neutron/rootwrap.conf‘
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent vxlan_udp_port 4789
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini agent l2_population False
#[securitygroup]
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_security_group True
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_ipset True
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver