配置

要启用 DVR,比较简单,分别在各个节点的网络配置文件上做如下修改或添加。

Neutron Server

/etc/neutron/neutron.conf

  1. router_distributed = True

L3 Agent

/etc/neutron/l3_agent.ini

  1. agent_mode = [dvr_snat | dvr | legacy ]

网络节点上配置为 dvr_snat,计算节点上配置为 dvr。

L2 Agent

/etc/neutron/plugins/ml2/ml2_conf.ini

  1. [ml2]
  2. mechanism_drivers = openvswitch,linuxbridge,l2population
  3. [agent]
  4. l2_population = True
  5. tunnel_types = vxlan
  6. enable_distributed_routing = True