我正在Debian机器上configurationIPv6地址,这就是我的接口文件。
auto eth0 iface eth0 inet6 static pre-up modprobe ipv6 address 2001:23:207:141:0:0:0:0 netmask 112 gateway 2001:23:207:129:0:0:0:0
当我运行命令/etc/init.d/networking restart ,出现以下错误。
SIOCSIFADDR file exist... failed to bring up eth0...
该网关在/ 112的不同子网中只能更改最后一个组。
一个112位的子网意味着16位的主机地址。 IPv6地址中的每个组都是16位。
而且,主机部分全部为0的地址不被推荐,因为它是networkingID。
主机部分全部为0的地址不是IPv6中的networkingID。 这些地址是预定义的“路由器任播”地址。 是的,他们不应该被用作接口地址。