全球主机交流论坛
标题:
online杜甫在ubuntu配置IPV6
[打印本页]
作者:
skyboy
时间:
2018-3-13 08:18
标题:
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
作者:
skyboy
时间:
2018-3-13 08:20
然后我从我晚上搜索了一下,被配置改了下,一次启动后成功了,但过了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)
作者:
羽檬
时间:
2018-3-13 09:31
https://ymgblog.com/?p=345
用这个配置吧
作者:
椰子
时间:
2018-3-13 09:34
标记下,online ipv6
作者:
skyboy
时间:
2018-3-13 13:23
原因找到了,是ufw把IPV6 DHCP的端口给封了
现在按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
欢迎光临 全球主机交流论坛 (https://loc.010206.xyz/)
Powered by Discuz! X3.4