请帮助我切换 HP 笔记本电脑上的以太网

请帮助我切换 HP 笔记本电脑上的以太网

我有 HP Pavilion - 15-cs3073cl,HP 网站上没有正式的 Linux 驱动程序,我安装了 Ubuntu 20.04 WiFi 工作正常,但以太网不工作,我还在这台笔记本电脑上安装了 Windows 10,在 Windows 下以太网也可以工作。以下是命令“sudo lshw -C network”的结果:

...
*-network UNCLAIMED
       description: Ethernet controller
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical ID: 0
       bus info: pci@0000:10:00.0
       version: 15
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list
       configuration: latency=0
       resources: ioport:3000(размер=256) память:51004000-51004fff память:51000000-51003fff

设置页面中没有打开以太网或创建新连接的选项

以太网设置页面

我不擅长 Linux,有人能帮我解决这个问题吗?

是否配置

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 866  bytes 75738 (75.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 866  bytes 75738 (75.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.43.105  netmask 255.255.255.0  broadcast 192.168.43.255
        inet6 fe70::c8f6:ef26:54cc:4ef  prefixlen 64  scopeid 0x20<link>
        ether 6c:46:2a:ec:4e:21  txqueuelen 1000  (Ethernet)
        RX packets 5868  bytes 2778399 (2.7 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5642  bytes 1122951 (1.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sudo 服务网络状态

etworking.service
     Loaded: masked (Reason: Unit networking.service is masked.)
     Active: inactive (dead) since Thu 2020-10-08 22:11:28 +03; 28min ago
   Main PID: 855 (code=exited, status=0/SUCCESS)

окт 08 22:03:38 Workpc systemd[1]: Starting Raise network interfaces...
окт 08 22:03:38 Workpc systemd[1]: Finished Raise network interfaces.
окт 08 22:11:28 Workpc systemd[1]: Stopping Raise network interfaces...
окт 08 22:11:28 Workpc systemd[1]: networking.service: Succeeded.
окт 08 22:11:28 Workpc systemd[1]: Stopped Raise network interfaces.

sudo 服务网络管理器状态

etworkManager.service - Network Manager
     Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2020-10-08 22:28:27 +03; 13min ago
       Docs: man:NetworkManager(8)
   Main PID: 9577 (NetworkManager)
      Tasks: 3 (limit: 18884)
     Memory: 6.0M
     CGroup: /system.slice/NetworkManager.service
             └─9577 /usr/sbin/NetworkManager --no-daemon

окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8588] dhcp4 (wlo1): state changed unknown -> bound
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8611] device (wlo1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8646] device (wlo1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed>
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8650] device (wlo1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'manage>
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8655] manager: NetworkManager state is now CONNECTED_LOCAL
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8674] manager: NetworkManager state is now CONNECTED_SITE
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8675] policy: set 'Bruce Lee ' (wlo1) as default for IPv4 routing and DNS
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8681] device (wlo1): Activation: successful, device activated.
окт 08 22:28:31 Workpc NetworkManager[9577]: <info>  [1602185311.8689] manager: startup complete
окт 08 22:28:32 Workpc NetworkManager[9577]: <info>  [1602185312.3301] manager: NetworkManager state is now CONNECTED_GLOBAL

猫/等/网络/接口

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

#auto dsl-provider
#iface dsl-provider inet ppp
#pre-up /bin/ip link set eno1 up # line maintained by pppoeconf
#provider dsl-provider

#auto eno1
#iface eno1 inet manual

答案1

在 BIOS 中禁用安全启动并重新启动后,系统要求我配置 8168,我选择“是”,现在一切正常。此外,我在 BIOS 中启用了网络启动,也许这也是一个原因。但不清楚为什么在 Windows 中一切都正常。

相关内容