在 Ubuntu 18.04 上启用 IPv6

在 Ubuntu 18.04 上启用 IPv6

我按照这个教程操作(https://www.digitalocean.com/docs/networking/ipv6/how-to/enable/) 在 DigitalOcean 上启用我现有的 Ubuntu 18.04.3 LTS Droplet 的 IPv6。我的服务器在 /etc/netplan 中没有任何内容,因此我按照 Ubuntu 16.04 的说明并更改了 /etc/network/interfaces。我添加了建议的内容(更改了我在启用 IPv6 时在 DigitalOcean 仪表板上获得的 IPv6 地址)。服务重启后,我得到了:

Dec 16 06:00:41 localhost systemd[1]: Stopping Raise network interfaces...
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: deleted default route via 46.101.128.1
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: deleted IP address 46.101.132.77/18
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: deleting route to 46.101.128.0/18
Dec 16 06:00:41 localhost ifdown[1457]: RTNETLINK answers: No such process
Dec 16 06:00:41 localhost ifdown[1457]: RTNETLINK answers: Cannot assign requested address
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: arp if_readrawpacket: Network is down
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: carrier lost
Dec 16 06:00:41 localhost systemd[1]: Stopped Raise network interfaces.
Dec 16 06:00:41 localhost systemd[1]: Starting Raise network interfaces...
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: carrier acquired
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: IAID 86:e5:62:01
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: adding address fe80::88e6:3b61:12cd:fe3d
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: using static address 46.101.132.77/18
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: adding route to 46.101.128.0/18
Dec 16 06:00:41 localhost dhcpcd[1073]: eth0: adding default route via 46.101.128.1
Dec 16 06:00:41 localhost ifup[1544]: RTNETLINK answers: File exists
Dec 16 06:00:41 localhost ifup[1544]: Failed to bring up eth0.
Dec 16 06:00:41 localhost systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Dec 16 06:00:41 localhost systemd[1]: networking.service: Failed with result 'exit-code'.
Dec 16 06:00:41 localhost systemd[1]: Failed to start Raise network interfaces.
Dec 16 06:00:42 localhost dhcpcd[1073]: eth0: soliciting an IPv6 router
Dec 16 06:00:55 localhost dhcpcd[1073]: eth0: no IPv6 Routers available
  1. 知道可能是什么问题吗?
  2. 为什么我的服务器仍然使用旧的网络方式(而不是 netplan)?我不记得了,是不是以前升级过?

问候。

相关内容