ocata版本vxlan模式配置【ovs】

来源:互联网 发布:java线程池原理 编辑:程序博客网 时间:2024/06/08 01:21

作者:【吴业亮】云计算开发工程师
博客:http://blog.csdn.net/wylfengyujiancheng

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

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

[ml2]type_drivers = flat,vlan,gre,vxlantenant_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,vxlantenant_network_types = vxlan[ml2_type_flat]flat_networks = physnet1[ml2_type_vxlan]vni_ranges = 1:1000# line 248: changefirewall_driver = iptables_hybrid

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

[agent]tunnel_types = vxlanl2_population = Trueprevent_arp_spoofing = True[ovs]local_ip = 172.16.100.50bridge_mappings = physnet1:br-eth1

5、重启服务

# for service in dhcp-agent l3-agent metadata-agent openvswitch-agent; dosystemctl restart neutron-$servicedone

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

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

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

[agent]tunnel_types = vxlanl2_population = Trueprevent_arp_spoofing = True[ovs]local_ip = 172.16.100.51

3、重启服务

# systemctl restart neutron-openvswitch-agent
0 0
原创粉丝点击