华为云上海机器,interfaces中关于IPv6配置文件如何编写?

44次阅读

共计 661 个字符,预计需要花费 2 分钟才能阅读完成。

原来的 VPS 只有 IPv4 功能,通过弹性 IP 打开了转换 IPv6 地址的功能,现在 VPS 是 IPv4 和 V6 双栈。/etc/network/interfaces 配置文件我是这么改的:# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).source /etc/network/interfaces.d/*# The loopback network interfaceauto loiface lo inet loopbackauto  eth0iface eth0 inet dhcpiface eth0 inet6 dhcpauto  eth1iface eth1 inet dhcpiface eth1 inet6 dhcpauto  eth2iface eth2 inet dhcpiface eth2 inet6 dhcpauto  eth3iface eth3 inet dhcpiface eth3 inet6 dhcpauto  eth4iface eth4 inet dhcpiface eth4 inet6 dhcp 复制代码在它默认 iface eth0 inet dhcp 基础上添加了 inet6 的配置段,不知道我这么写是否有问题……?ultramancliub 2023-06-01 19:02 2 有小伙伴知道么?晴空 2023-06-01 19:24 3 你在这里问 都不官方,直接发工单让技术帮你搞不得了。这里的基本用大厂的很少

正文完
 0