net.ipv6.conf.all.forwarding = 1 是未知密钥

net.ipv6.conf.all.forwarding = 1 是未知密钥

我有几个系统有 ipv6 地址。我想将请求从一个系统转发到另一个系统。因此我保留了该选项

net.ipv6.conf.all.转发 = 1

在 sysctl.conf 中

但请求没有像在 ipv4 中那样被转发,它在启动时也给我错误。net.ipv6.conf.all.forwarding 1 是一个未知的密钥

答案1

您可能没有在所指的系统上加载 ipv6 内核模块。如果执行,sysctl -a|grep ipv6您将获得所有可用的 sysctl 列表,这些 sysctl 专门引用 ipv6。如果该列表为空,则会让我相信 ipv6 未加载。

如果您确实在该 sysctl grep 中看到了 net.ipv6.conf.all.forwarding 条目,那么我建议将输出中的行直接复制并粘贴到 sysctl.conf 中,以确保没有添加任何不正确的字符。如果配置显示为 0(已禁用),只需将 0 更改为 1。

相关内容