第 18 章 常见管理任务
有时,您可能需要在 Red Hat OpenStack Platform Networking 服务(neutron)上执行管理任务,如配置第 2 层填充驱动程序或指定内部 DNS 分配给端口的名称。
18.1. 配置 L2 填充驱动程序 复制链接链接已复制到粘贴板!
L2 Population 驱动程序使广播、多播和单播流量能够在大型覆盖网络上横向扩展。默认情况下,Open vSwitch GRE 和 VXLAN 将广播复制到每个代理,包括不托管目标网络的代理。这种设计需要接受大量网络和处理开销。L2 Population 驱动程序引入的替代设计为 ARP 解析和 MAC 学习流量实施部分网格;它还仅在托管网络节点间为特定网络创建隧道。此流量仅通过将流量作为目标单播封装到所需的代理中。
要启用 L2 Population 驱动程序,请完成以下步骤:
1.通过将 L2 填充驱动程序添加到机制驱动程序列表中,以启用 L2 填充驱动程序。您还必须启用至少一个隧道驱动程序:GRE、VXLAN 或这两者。在 ml2_conf.ini 文件中添加适当的配置选项:
[ml2] type_drivers = local,flat,vlan,gre,vxlan,geneve mechanism_drivers = l2population
[ml2]
type_drivers = local,flat,vlan,gre,vxlan,geneve
mechanism_drivers = l2population
Neutron 的 Linux Bridge ML2 驱动程序和代理已在 Red Hat OpenStack Platform 11 中弃用。Open vSwitch (OVS)插件 OpenStack Platform director 默认,建议红帽用于常规用途。
2.在 openvswitch_agent.ini 文件中启用 L2 填充。在包含 L2 代理的每个节点上启用它:
[agent] l2_population = True
[agent]
l2_population = True
要安装 ARP 回复流,请配置 arp_responder
标志:
[agent] l2_population = True arp_responder = True
[agent]
l2_population = True
arp_responder = True