当我启动 Windows 10 时,以太网可以正常工作,但在 Ubuntu 中却不行。我在 Ubuntu 中也遇到了一些问题。它的第一个内核没有加载,但第二个内核工作正常。
我正在使用手机上网,速度不快,所以我想解决这个问题。请帮忙 :( 以下是一些详细信息
$ lspci -nn | grep Ethernet
13:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 02)
$ uname -a
Linux prashant 4.4.0-31-generic #50-Ubuntu SMP 星期三 7 月 13 日 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ ifconfig -a
enp0s29u1u2 Link encap:Ethernet HWaddr e2:00:3e:2f:dc:3e
inet addr:192.168.42.180 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::4026:6d31:19e8:7109/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5677 errors:1 dropped:0 overruns:0 frame:1
TX packets:6009 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2661044 (2.6 MB) TX bytes:1040973 (1.0 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3564 errors:0 dropped:0 overruns:0 frame:0
TX packets:3564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:287576 (287.5 KB) TX bytes:287576 (287.5 KB)
wlp18s0b1 Link encap:Ethernet HWaddr 70:f1:a1:bf:dc:77
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
我已将以下几行添加到接口文件中:
自动 eth0
iface eth0 inet dhcp
enp0s29u1u2 : is the interface for my mobile phone.
而且我已经安装了0009-r8168-8.044.02.tar.bz2
realtek 驱动程序,但现在它甚至没有尝试搜索以太网。我跟着安装realtek驱动程序安装驱动程序。
$ sudo modprobe r8169 && dmesg | grep r8169
[sudo] password for prashant:
modprobe: FATAL: Module r8169 not found in directory /lib/modules/4.4.0-31-generic
FAIL
$ sudo modprobe r8168 && dmesg | grep r8168
[sudo] password for prashant:
[53224.788817] r8168: module verification failed: signature and/or required key missing - tainting kernel
$ sudo lsmod | grep r8168
[sudo] password for prashant:
FAIL