1.修改配置文件
vim /etc/network/interfaces
2.添加以下内容
iface ens18 inet6 static
address 2a00:b700:2::2b3
netmask 64
gateway 2a00:b700:2::1
dns-nameservers 2a00:b700::220
3.重启网络
systemctl restart networking
2024-04-02 09:49:46
vim /etc/network/interfaces
iface ens18 inet6 static
address 2a00:b700:2::2b3
netmask 64
gateway 2a00:b700:2::1
dns-nameservers 2a00:b700::220
systemctl restart networking