1. 获取 ipv6 配置信息
发工单给客服,然后耐心等待回复。
My newly purchased server requires an IPv6 address. Please provide the IPv6 range.
I know how to configure, please send configuration information directly.
2. 配置 ipv6
安装依赖
apt update -y && apt install cmake make gcc unzip wget -y
安装 odhcp6
wget https://github.com/sbyx/odhcp6c/archive/master.zip -O odhcp6c.zip
unzip odhcp6c.zip
cd odhcp6c-master
cmake .
make
make install
查看网卡
ip a
运行命令,开启 ipv6 。
odhcp6c -P 64 -c 00:03:00:01:60:71:4b:e1:18:69 eno1 -d
ip -6 a a 2001:bc8:32d7:188::/64 dev eno1
ip -6 r a 2001:bc8:32d7:188::/64 dev eno1
3. 开机自启动
nano /etc/rc.local
在 exit 0 前,加入下面的代码。
odhcp6c -P 64 -c 00:03:00:01:60:71:4b:e1:18:69 eno1 -d
ip -6 a a 2001:bc8:32d7:188::/64 dev eno1
ip -6 r a 2001:bc8:32d7:188::/64 dev eno1
转载请注明来源