# 修改/etc/neutron/plugin.ini文件(网络节点) [ml2] type_drivers = flat,vlan,vxlan,gre tenant_network_types = flat mechanism_drivers =openvswitch [ml2_type_flat] flat_networks = default [ovs] enable_tunneling = False integration_bridge = br-int bridge_mappings =default:br-flat [securitygroup] firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver enable_security_group = True enable_ipset = True # 修改/etc/neutron/plugin.ini文件(计算节点) [ml2] type_drivers = flat,vlan,vxlan,gre tenant_network_types = flat mechanism_drivers =openvswitch [ml2_type_flat] flat_networks = default [ovs] enable_tunneling = False integration_bridge = br-int bridge_mappings =default:br-flat [securitygroup] firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver enable_security_group = True enable_ipset = True # 修改网络配置(网络节点和计算节点) [[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-br-data DEVICE=br-flat BOOTPROTO=static ONBOOT=yes NM_CONTROLLED=no IPADDR=192.168.1.120 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 TYPE=OVSBridge DEVICETYPE=ovs [[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes NM_CONTROLLED=no TYPE=OVSPort DEVICETYPE=ovs OVS_BRIDGE=br-flat ovs-vsctl add-br br-flat (网络节点和计算节点) ovs-vsctl add-br br-int ovs-vsctl add-port br-flat eth0 service neutron-openvswitch-agent restart
参考链接:http://www.server-world.info/en/note?os=CentOS_7&p=openstack_kilo&f=15
时间: 2024-09-29 08:02:58