正如许多askUbuntu论坛文章所述,我安装了ifupdown并删除/清除了netplan.io。虽然现在ifconfig和ip a提供了来自/etc/network/接口的设置(大约在2013年从Ubuntu安装中复制,只将文件中的eth0更新到enp4s0),但仍然没有互联网。不过,有些连接似乎确实存在,即它识别本地网络上的打印机。
ping google.com 返回Temporary failure in name resolution。然而,ping 8.8.8.8工作得很好。
系统: Ubuntu 20.04.3 LTS (焦点Fossa)
这里能起什么作用?
ifconfig:
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.31 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::a6ba:dbff:fe03:2e44 prefixlen 64 scopeid 0x20<link>
inet6 2607:fea8:3e80:64a:a6ba:dbff:fe03:2e44 prefixlen 64 scopeid 0x0<global>
ether a4:ba:db:03:2e:44 txqueuelen 1000 (Ethernet)
RX packets 3128 bytes 483360 (483.3 KB)
RX errors 0 dropped 16 overruns 0 frame 0
TX packets 482 bytes 84822 (84.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 2836 bytes 217982 (217.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2836 bytes 217982 (217.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0发布于 2022-01-06 21:22:05
未正确设置/etc/rupv.conf文件。简单地从上一个2013年Ubuntu版本复制/etc/rupv.conf文件就能做到这一点。即:
domain 'URL address'
search 'URL address'
nameserver 'IP address'
nameserver 'IP address'https://askubuntu.com/questions/1385673
复制相似问题