Ubuntu 18.04 无法检测以太网

Ubuntu 18.04 无法检测以太网

我在 ubuntu 18.04 上遇到了一些互联网问题。Ubuntu 上的 wifi 连接正常,但无法检测到以太网连接。配置文件如下所示:

   enx00e04c6860aa: flags=4098<BROADCAST,MULTICAST>  mtu 1500
    ether 00:e0:4c:68:60:aa  txqueuelen 1000  (Ethernet)
    RX packets 0  bytes 0 (0.0 B)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 0  bytes 0 (0.0 B)
    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 5876  bytes 606809 (606.8 KB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 5876  bytes 606809 (606.8 KB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

   wlp59s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 192.168.0.108  netmask 255.255.255.0  broadcast 192.168.0.255
    inet6 fe80::be69:6edf:643f:b0e0  prefixlen 64  scopeid 0x20<link>
    ether f8:e4:e3:01:79:21  txqueuelen 1000  (Ethernet)
    RX packets 46990  bytes 34566067 (34.5 MB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 32740  bytes 5759569 (5.7 MB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

输出猫/等/网络/接口 以下

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

输出sudo nano 01-网络管理器-all.yaml以下

  # Let NetworkManager manage all devices on this system
  network:
  version: 2
  renderer: NetworkManager
    wifis:
      wlp59s0:
    dhcp4: yes

如何使我的以太网连接正常工作,请帮忙,我的项目需要 Wifi 和以太网同时工作!谢谢!

相关内容