debian绑定ipv6

首先打开网卡配置文件进行编辑

sudo nano /etc/network/interfaces

追加内容模板如下

iface eth0 inet6 static
    address your_ipv6_address
    netmask your_prefix_length
    gateway your_gateway

其中的eth0需要改成你的网卡名称
address netmask gateway 也需要进行替换
重启网络

sudo systemctl restart networking

查看配置情况

ip addr

Sitemap · Rss

津ICP备2021004480号-3