san*_*lad 1 ipv6 keys forwarding ip-forwarding sysctl
我的系统很少有 ipv6 地址。我想将请求从一个系统转发到另一个系统。因此我保留了这个选项
net.ipv6.conf.all.forwarding = 1
在 sysctl.conf 中
但是请求没有像在 ipv4 中那样被转发,它也给我在启动时出错。net.ipv6.conf.all.forwarding 1 是未知密钥
您所指的系统上可能没有加载 ipv6 内核模块。如果执行,sysctl -a|grep ipv6
您将获得所有可用 sysctl 的列表,这些列表专门针对 ipv6。如果该列表为空,那将使我相信未加载 ipv6。
如果您确实在该 sysctl grep 中看到 net.ipv6.conf.all.forwarding 条目,那么我建议将输出中的行直接复制并粘贴到 sysctl.conf 中,以确保没有任何错误添加的字符。如果它显示为 0(已禁用),只需在配置中将 0 更改为 1。