# 修改/etc/neutron/plugin.ini文件(网络节点)[ml2]type_drivers = flat,vlan,vxlan,gretenant_network_types = flatmechanism_drivers =openvswitch[ml2_type_flat]flat_networks = default[ovs]enable_tunneling = Falseintegration_bridge = br-intbridge_mappings =default:br-flat[securitygroup]firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriverenable_security_group = Trueenable_ipset = True# 修改/etc/neutron/plugin.ini文件(计算节点)[ml2]type_drivers = flat,vlan,vxlan,gretenant_network_types = flatmechanism_drivers =openvswitch[ml2_type_flat]flat_networks = default[ovs]enable_tunneling = Falseintegration_bridge = br-intbridge_mappings =default:br-flat[securitygroup]firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriverenable_security_group = Trueenable_ipset = True# 修改网络配置(网络节点和计算节点)[root@openstack-1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-br-dataDEVICE=br-flatBOOTPROTO=staticONBOOT=yesNM_CONTROLLED=noIPADDR=192.168.1.120NETMASK=255.255.255.0GATEWAY=192.168.1.1TYPE=OVSBridgeDEVICETYPE=ovs [root@openstack-1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0ONBOOT=yesNM_CONTROLLED=noTYPE=OVSPortDEVICETYPE=ovsOVS_BRIDGE=br-flatovs-vsctl add-br br-flat (网络节点和计算节点)ovs-vsctl add-br br-intovs-vsctl add-port br-flat eth0service neutron-openvswitch-agent restart# multi flat network的配置[root@node-120 ~]# cat /etc/neutron/plugin.ini[ml2]type_drivers = flat,vlan,vxlan,gretenant_network_types = flatmechanism_drivers =openvswitch[ml2_type_flat]flat_networks = telecom,unicom # 配置两个phynetwork_id[ovs]enable_tunneling = Falseintegration_bridge = br-intbridge_mappings = telecom:br-telecom,unicom:br-unicom[securitygroup]firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriverenable_security_group = Trueenable_ipset = True[root@node-120 ~]# ovs-vsctl show539bfcd0-17a0-41b2-ae47-87061857301b Bridge br-telecom Port br-telecom Interface br-telecom type: internal Port phy-br-telecom Interface phy-br-telecom type: patch options: {peer=int-br-telecom} Port "eth0" Interface "eth0" Bridge br-unicom Port br-unicom Interface br-unicom type: internal Port "eth3" Interface "eth3" Port phy-br-unicom Interface phy-br-unicom type: patch options: {peer=int-br-unicom}
参考链接: