如何在接口上动态启用和禁用 IPv6,以便在启用时获取链路本地地址?我试过了:
sysctl net.ipv6.conf.all.disable_ipv6=1 禁用 IPv6
sysctl net.ipv6.conf.all.disable_ipv6=1
和
sysctl net.ipv6.conf.all.disable_ipv6=0 启用 IPv6。
sysctl net.ipv6.conf.all.disable_ipv6=0
还有其他方法吗?
configuration ipv6 networking
configuration ×1
ipv6 ×1
networking ×1