在ubuntu中设置静态ipv6地址

我试图添加一个ipv6地址到一个已经存在的接口,以前只有ipv4。 这是我的configuration:

auto lo iface lo inet loopback auto eth8 iface eth8 inet static address 88.**.**.** netmask 255.255.255.0 gateway 88.**.**.** iface eth8 inet6 static pre-up modprope ipv6 address 2a01:**:**::5 netmask 120 gateway 2a01:**:**::7f 

但重启eth8后仍然只有一个本地链接地址:

 eth8 Link encap:Ethernet HWaddr 00:15:**:**:**:** inet addr:88.**.**.** Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::**:**:**:**/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 

我究竟做错了什么?

正如Peter提到的, modprope拼写错误。

这导致脚本不使用inet6 static部分,因为pre-up命令失败。 你可以摆脱它 – 不需要它。

 pre-up command Run command before bringing the interface up. If this command fails then ifup aborts, refraining from marking the interface as configured, prints an error message, and exits with status 0. This behavior may change in the future. 

除此之外,你的文件是正确的。 / 120不是通常的networking掩码,但大概你知道你在做什么。

你拼错modprobe,有可能模块没有正确加载?