小编Ale*_*nti的帖子

尝试启用 IPv6 会导致“No route to host”错误

我正在使用我的提供商提供的静态 IPv4 和 IPv6 地址在 KVM 服务器上配置双栈网络。

我在安装 Ubuntu 时根据需要输入了所有地址、名称服务器和网关。之后,我检查了/etc/network/interfaces文件并注意到 IPv6 节不存在(ifconfig执行确认了这一点),因此我添加了相关行。这是最终文件:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 151.236.18.86
        netmask 255.255.255.0
        network 151.236.18.0
        broadcast 151.236.18.255
        gateway 151.236.18.1
        # dns-* options are implemented by the resolvconf package, if …
Run Code Online (Sandbox Code Playgroud)

ipv6 networking routing

9
推荐指数
2
解决办法
4万
查看次数

标签 统计

ipv6 ×1

networking ×1

routing ×1