ocata版本vxlan模式配置【ovs】

作者:吴业亮
博客:https://wuyeliang.blog.csdn.net/

本文基于《Neutron采用Openvswitch通用配置【ocata】》,具体配置请参见上文。

一、控制节点
1、修改配置文件/etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vxlan
[ml2_type_flat]
flat_networks = physnet1
[ml2_type_vxlan]
vni_ranges = 1:1000

2、重启服务

# systemctl restart neutron-server

二、网络节点
1、创建网桥

# ovs-vsctl add-br br-eth1 

2、将网卡添加到网桥上

# ovs-vsctl add-port br-eth1 eth1

3、修改配置文件/etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vxlan
[ml2_type_flat]
flat_networks = physnet1
[ml2_type_vxlan]
vni_ranges = 1:1000
# line 248: change
firewall_driver = iptables_hybrid

4、修改配置文件/etc/neutron/plugins/ml2/openvswitch_agent.ini

[agent]
tunnel_types = vxlan
l2_population = True
prevent_arp_spoofing = True
[ovs]
local_ip = 172.16.100.50
bridge_mappings = physnet1:br-eth1

5、重启服务

# for service in dhcp-agent l3-agent metadata-agent openvswitch-agent; do
systemctl restart neutron-$service
done

三、计算节点
1、修改配置文件/etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vxlan
[ml2_type_flat]
flat_networks = physnet1
[ml2_type_vxlan]
vni_ranges = 1:1000
firewall_driver = iptables_hybrid

2、修改配置文件/etc/neutron/plugins/ml2/openvswitch_agent.ini

[agent]
tunnel_types = vxlan
l2_population = True
prevent_arp_spoofing = True
[ovs]
local_ip = 172.16.100.51

3、重启服务

# systemctl restart neutron-openvswitch-agent

你可能感兴趣的:(openstack)