配置neutron-server
编辑/etc/neutron/neutron.conf
[DEFAULT] router_distributed = True
编辑/etc/neutron/plugins/ml2/ml2_conf.ini,添加l2population
[ml2] mechanism_drivers = openvswitch,l2population
配置network节点
配置L2,编辑/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2] mechanism_drivers = openvswitch,l2population [agent] ... l2_population = True enable_distributed_routing = True arp_responder = True
配置L3,编辑/etc/neutron/l3_agent.ini
agent_mode = dvr_snat
配置计算节点
配置L2 agent
[ml2] mechanism_drivers = openvswitch,l2population [agent] ... l2_population = True enable_distributed_routing = True arp_responder = True
配置L3 agent,配置参数除agent_mode
,其余和网络节点一致
[DEFAULT] agent_mode = dvr
配置metadata
配置方式和network一致,在我的环境中,由dhcp提供metadata,就没有在计算节点上再配置metadata 服务
参考链接
https://wiki.openstack.org/wiki/Neutron/DVR/HowTo
http://docs.openstack.org/networking-guide/scenario_dvr_ovs.html
http://iceyao.blog.51cto.com/9426658/1594037
http://yeasy.gitbooks.io/openstack_understand_neutron/content/dvr/scenario.html
转载于:https://blog.51cto.com/penguintux/1688081