我试过:
auto wls3
iface wls3 inet manual
iface wls3 inet6 auto
iface wls3 inet6 static
address new_static_ip
netmask 64
gateway fe80::1
之后
service network-manager restart
wifi 不再工作了。
我想要 dhcp 和静态 IPv6
答案1
对我有用的唯一方法是:我添加了 2 个文件
对于 if-up:/etc/network/if-up.d/add-ipv6.sh
内容:
ip -6 addr add ipv6-address/64 dev wls3
和 /etc/network/if-down.d/add-ipv6.sh
内容:
ip -6 addr del ipv6-address/64 dev wls3