ovn fip dnat_and_snat 如何配置 mac 地址

44 阅读1分钟

在分布式 router 场景,需要给 dnat_and_snat 配置 一个外部的 mac 地址,以便让 nat 后的公网流量直接从 lsp 所在的节点直接出去,不用像集中式网关那样经过集中式网关

image.png

image.png

这个 mac 就是从 lsp 上直接来的

历史上有一个相关的 bug,同一个 mac 不能配置到多个 dnat snat 上,否则 northd 会崩溃

image.png

结论:

如果想使用分布式网关 fip, 需要指定 mac, 集中式网关不需要指定 mac,用的是 lrp 的 mac。

历史 bug 参考:

bugzilla.redhat.com/show_bug.cg…