Techyou labs
真正的爱应该超越生命的长度,心灵的宽度,灵魂的深度
常用标签

电信分配了ipv6,某一天发现局域网某台ubuntu主机无法自动获取ipv6配置了,翻文档才发现,原来内核参数文档里有这么一段话


# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1

默认开启ipv6路由转发后将自动禁用stateless模式
解决办法也好办,把不需要转发得端口禁用转发就Ok了


net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.enp2s0f0.forwarding = 0

另:dhcpv6的工作端口在udp 546和547,与dhcp v4的67,68不同.

参考:
https://wiki.archlinux.org/index.php/IPv6
https://zh.wikipedia.org/wiki/DHCPv6
https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt

暂无评论

添加新评论