online.net独立服务器Linux/debian下配置ipv6

1.下载、编译并安装Dibbler

wget https://netix.dl.sourceforge.net/project/dibbler/dibbler/1.0.1/dibbler-1.0.1.tar.gz
tar zxvf dibbler-1.0.1.tar.gz
cd dibbler-1.0.1
./configure
make
make install

2. 在/var/lib/dibbler/client-duid 填入 /56的DUID

mkdir /var/lib/dibbler/
nano /var/lib/dibbler/client-duid

3.编辑/etc/dibbler/client.conf

mkdir /etc/dibbler/
nano /etc/dibbler/client.conf

4.内容:

请自行替换网卡名称eth0 使用ifconfig指令查看,例如eth0、em1、eno1、enp2s0)

log-level 7
duid-type duid-ll
inactive-mode

iface eth0 {
pd
}

5.编辑/etc/network/interfaces

nano /etc/network/interface

6.添加以下内容:(请自行替换网卡名称eth0)

iface eth0 inet6 static
address 2001:bc8:xxxx::1 你的/56 IPv6地址
netmask 56

7.设置开机自启

nano /etc/systemd/system/dibbler-client.service

8.输入以下内容:

[Unit]
Description=Dibbler Client
After=networking.service

[Service]
Type=simple
ExecStart=/usr/local/sbin/dibbler-client start

[Install]
WantedBy=multi-user.target

9.启用以上设置:

systemctl enable dibbler-client.service

10.重启系统:

reboot

11.测试是否设置成功 可按CTRL+C终止ping:

ping6 ipv6.google.com

cat

文章作者信息...

留下你的评论

*评论支持代码高亮<pre class="prettyprint linenums">代码</pre>

相关推荐

隐藏
变装