配置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 = Trueenable_distributed_routing = Truearp_responder = True
配置L3,编辑/etc/neutron/l3_agent.ini
agent_mode = dvr_snat
配置计算节点
配置L2 agent
[ml2]mechanism_drivers = openvswitch,l2population[agent]...l2_population = Trueenable_distributed_routing = Truearp_responder = True
配置L3 agent,配置参数除agent_mode
,其余和网络节点一致
[DEFAULT]agent_mode = dvr
配置metadata
配置方式和network一致,在我的环境中,由dhcp提供metadata,就没有在计算节点上再配置metadata 服务
参考链接