online杜甫在ubuntu配置IPV6
杜甫上运行的是ubuntu 16.04,正在尝试给机子配置IPV6,希望每次启动后自动获取IPV6按online官网的配置试了,reboot 后会卡在下图那里10分钟才能完全起来,而且不能获取ipv6地址
online官网配置如下:
/etc/dhcp/dhclient6.conf :
interface "eno1" {
send dhcp6.client-id
DUID
;
}
etc/network/interfaces comme suit :
iface eno1 inet6 static
pre-up modprobe ipv6
pre-up dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -d -v eno1
address
IPV6ADDRESS
netmask
PREFIXLEN
http://upload.ouliu.net/i/20180313080302arjru.jpeg
然后我从我晚上搜索了一下,被配置改了下,一次启动后成功了,但过了2天,机子重启后,又出现楼上的哪种现象。
The relevant /etc/network/interfaces part:
# The primary network interface
auto eno1
iface eno1 inet dhcp
iface eno1 inet6 static
address 2001:bc8:xxxx:xxxx::1
netmask 56
autoconf 0
pre-up /sbin/dhclient -cf /etc/dhcp/dhclient6.conf -6 -P eno1
pre-down /sbin/dhclient -x -pf /var/run/dhclient6.pid
Created by hand this /etc/dhcp/dhclient6.conf file:
# For Online.net dedibox IPv6 subnet
interface "eno1" {
send dhcp6.client-id
DUID
request;
} (use whatever DUID your personal IPv6 subnet has, find it in Online's console) https://ymgblog.com/?p=345
用这个配置吧 标记下,online ipv6 原因找到了,是ufw把IPV6 DHCP的端口给封了
static/image/smiley/default/shy.gif
现在按online官网进行配置进行修改可成功运行,配置如下
/etc/dhcp/dhclient6.conf :
interface "eno1" {
send dhcp6.client-id DUID;
}
etc/network/interfaces comme suit :
iface eno1 inet6 static
pre-up modprobe ipv6
pre-up dhclient -cf /etc/dhcp/dhclient6.conf -6 -P -v eno1 (这里记得把官网的-d参数去掉)
address IPV6ADDRESS
netmask PREFIXLEN
页:
[1]