使用 Realtek 的 Ubuntu 中 LAN 无法工作

使用 Realtek 的 Ubuntu 中 LAN 无法工作

我的 Ubuntu 上的互联网无法使用,但 Windows 上的互联网可以工作。

我知道我的驱动程序是 Realtek。

编辑

重新安装 Ubuntu。

当我编辑时互联网正在运行/etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search home

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search home
nameserver 8.8.8.8
nameserver 8.8.8.4

我怎样才能让我的互联网永久正常工作?

ifconfig-a:

enp2s0    Link encap:Ethernet  HWaddr fc:aa:14:06:2e:84  
          inet addr:192.168.2.6  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::af5f:9d3e:709e:a2c8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4287 (4.2 KB)  TX bytes:7111 (7.1 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:14922 (14.9 KB)  TX bytes:14922 (14.9 KB)

sudo lshw -C 网络

[sudo] password for jarno: 
  *-network               
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: enp2s0
       version: 06
       serial: fc:aa:14:06:2e:84
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.2.6 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:30 ioport:e000(size=256) memory:f7c00000-f7c00fff memory:f0000000-f0003fff

linux - linux系统grep 以太网

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

相关内容