我正在使用带有 OVH 的 VMWare ESXi 6.5,并且我正在尝试设置一个 ubuntu 18.04 服务器。我已成功创建机器,但在设置网络连接时遇到问题。
我已经按照本教程查看了 netplan 网站上的故障排除页面。一切都如它所说的那样匹配。我去了 ubuntu wiki 上的 DebuggingSystemd 并运行了这些命令,这是输出
当我在设置中创建虚拟机时,它说在提示设置网络时网络自动配置失败。
$ sudo SYSTEM_LOG_LEVEL=debug /lib/systemd/systemd-networkd
ens160: Gained IPv6LL
lo: Link is not managed by us
ens160: Could not set route: Network is unreachable
ens160: Configured
这是输出ip a
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default 1000
link/ether (pretty sure you're not supposed to give people your mac address) brd ff:ff:ff:ff:ff:ff
inet 158.69.105.80/30 brd 158.69.105.83 scope global ens160
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe07:2dfb/64 scope link
valid_lft forever preferred_lft forever
/etc/netplan/01-netcfg.yalm
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
dhcp6: no
addresses: [158.69.105.80/30]
gateway4: 149.56.24.254
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
routes:
- to: 158.69.105.80/30
via: 0.0.0.0
scope: link
如果需要任何其他信息,请告诉我。