Ubuntu 16.04 rtl8111/8168/8411 PCI Express Gigabit Ethernet Controller "Cannot surf the internet

Source: Internet
Author: User
Tags syslog

Source: http://forum.ubuntu.org.cn/viewtopic.php?f=116&t=463646

1. Execute the following command

Uname-asudo lspci-knnsudo lshw-c networkifconfig Ping 192.168.1.1-c 4tail/var/log/syslog-n 20

2. View Status:

[Email protected]:~$ uname-a
Linux gofox-to-be-filled-by-o-e-m 3.13.0-24-generic #46-ubuntu SMP Thu Apr 19:11:08 UTC x86_64 x86_64 x86_64 GNU/L Inux
[Email protected]:~$ Lspci
00:00.0 Host bridge:advanced Micro Devices, Inc. [Amd/ati] RD890 PCI to PCI bridge (external gfx0 Port B) (rev 02)
00:02.0 PCI bridge:advanced Micro Devices, Inc. [Amd/ati] RD890 PCI to PCI bridge (PCI Express GPP Port B)
00:04.0 PCI bridge:advanced Micro Devices, Inc. [Amd/ati] RD890 PCI to PCI bridge (PCI Express GPP Port D)
00:09.0 PCI bridge:advanced Micro Devices, Inc. [Amd/ati] RD890 PCI to PCI bridge (PCI Express GPP Port H)
00:11.0 SATA controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB OHCI0 Controller
00:12.2 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB EHCI Controller
00:13.0 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB OHCI0 Controller
00:13.2 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB EHCI Controller
00:14.0 smbus:advanced Micro Devices, Inc. [Amd/ati] SBx00 SMBus Controller (rev 42)
00:14.1 IDE interface:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 IDE Controller (rev 40)
00:14.2 Audio device:advanced Micro Devices, Inc. [Amd/ati] SBx00 Azalia (Intel HDA) (Rev 40)
00:14.3 ISA bridge:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 LPC Host controller (rev 40)
00:14.4 PCI bridge:advanced Micro Devices, Inc. [Amd/ati] SBx00 PCI to PCI bridge (Rev. 40)
00:14.5 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB OHCI2 Controller
00:16.0 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB OHCI0 Controller
00:16.2 USB controller:advanced Micro Devices, Inc. [Amd/ati] sb7x0/sb8x0/sb9x0 USB EHCI Controller
00:18.0 Host bridge:advanced Micro Devices, Inc. [AMD] Family 10h Processor hypertransport Configuration
00:18.1 Host bridge:advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map
00:18.2 Host bridge:advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge:advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge:advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller:advanced Micro Devices, Inc. [Amd/ati] Pitcairn PRO [Radeon HD 7850]
01:00.1 Audio device:advanced Micro Devices, Inc. [Amd/ati] Cape verde/pitcairn HDMI Audio [Radeon HD 7700/7800 Series]
02:00.0 USB Controller:etron Technology, Inc. EJ168 USB 3.0 Host Controller (Rev 01)
03:00.0 Ethernet Controller:realtek Semiconductor Co., Ltd. rtl8111/8168/8411 PCI Express Gigabit Ethernet Controller (re V 06)
[Email protected]:~$ sudo lshw-c network
[sudo] password for gofox:
*-network
Description:ethernet interface
product:rtl8111/8168/8411 PCI Express Gigabit Ethernet Controller
Vendor:realtek Semiconductor Co., Ltd.
Physical id:0
Bus info: [Email protected]:03:00.0
Logical Name:eth0
version:06
serial:94:de:80:2a:f5:58
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 1 000BT-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.1.100 latency=0 link=yes multicast=yes port=mii speed=100Mbit/s
resources:irq:73 ioport:d000 (size=256) memory:d0004000-d0004fff memory:d0000000-d0003fff
[Email protected]:~$ ifconfig
eth0 Link ENCAP: Ethernet Hardware Address 94:de:80:2a:f5:58
inet Address: 192.168.1.100 Broadcast: 192.168.1.255 Mask: 255.255.255.0
Inet6 Address: fe80::96de:80ff:fe2a:f558/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 hop count: 1
Receive packet: 31 Error: 0 Discard: 0 Overload: 0 Number of frames: 0
Send packet: 35 Error: 0 Discard: 611 Overload: 0 Carrier: 0
Collisions: 0 Send Queue Length: 1000
Receive bytes: 4309 (4.3 kb) Send bytes: 5059 (5.0 KB)

Lo Link encap: local loopback
inet Address: 127.0.0.1 Mask: 255.0.0.0
Inet6 Address::: 1/128 scope:host
Up LOOPBACK RUNNING mtu:65536 metric: 1
Receive packet: 1054 Error: 0 Discard: 0 Overload: 0 Number of frames: 0
Send packet: 1054 Error: 0 Discard: 0 Overload: 0 Carrier: 0
Collisions: 0 Send Queue Length: 0
Receive bytes: 84166 (84.1 KB) Send bytes: 84166 (84.1 KB)

[Email protected]:~$ Ping 192.168.1.1-c 4
PING 192.168.1.1 (192.168.1.1) bytes of data.
From 192.168.1.100 icmp_seq=1 Destination Host Unreachable
From 192.168.1.100 icmp_seq=2 Destination Host Unreachable
From 192.168.1.100 icmp_seq=3 Destination Host Unreachable
From 192.168.1.100 icmp_seq=4 Destination Host Unreachable

---192.168.1.1 ping statistics---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3000ms
Pipe 3
[Email protected]:~$ tail/var/log/syslog-n 20
SEP 3 11:15:27 gofox-to-be-filled-by-o-e-m kernel: [43.926344]---[end trace F68773F9B988BCA3]---
SEP 3 11:15:27 gofox-to-be-filled-by-o-e-m kernel: [43.932415] r8169 0000:03:00.0 eth0:link up
Sep 3 11:15:30 gofox-to-be-filled-by-o-e-m ntpdate[2071]: Can ' t find host ntp.ubuntu.com:Name or service not known (-2)
Sep 3 11:15:30 gofox-to-be-filled-by-o-e-m ntpdate[2071]: No servers can be used, exiting
Sep 3 11:15:41 gofox-to-be-filled-by-o-e-m whoopsie[1006]: Offline
SEP 3 11:16:09 gofox-to-be-filled-by-o-e-m kernel: [85.984761] r8169 0000:03:00.0 eth0:link up
Sep 3 11:17:01 gofox-to-be-filled-by-o-e-m cron[2447]: (root) CMD (CD/&& run-parts--report/etc/cron.hourly)
SEP 3 11:17:27 gofox-to-be-filled-by-o-e-m kernel: [164.012906] r8169 0000:03:00.0 eth0:link up
SEP 3 11:17:51 gofox-to-be-filled-by-o-e-m kernel: [188.029088] r8169 0000:03:00.0 eth0:link up
SEP 3 11:18:15 gofox-to-be-filled-by-o-e-m kernel: [212.045170] r8169 0000:03:00.0 eth0:link up
SEP 3 11:18:51 gofox-to-be-filled-by-o-e-m kernel: [248.069269] r8169 0000:03:00.0 eth0:link up
SEP 3 11:19:15 gofox-to-be-filled-by-o-e-m kernel: [272.085347] r8169 0000:03:00.0 eth0:link up
SEP 3 11:19:51 gofox-to-be-filled-by-o-e-m kernel: [308.109475] r8169 0000:03:00.0 eth0:link up
Sep 3 11:19:56 gofox-to-be-filled-by-o-e-m anacron[909]: Job ' cron.daily ' started
Sep 3 11:19:56 gofox-to-be-filled-by-o-e-m anacron[2602]: Updated timestamp for job ' cron.daily ' to 2014-09-03
SEP 3 11:20:15 gofox-to-be-filled-by-o-e-m kernel: [332.125563] r8169 0000:03:00.0 eth0:link up
SEP 3 11:20:51 gofox-to-be-filled-by-o-e-m kernel: [368.149702] r8169 0000:03:00.0 eth0:link up
SEP 3 11:22:03 gofox-to-be-filled-by-o-e-m kernel: [440.201919] r8169 0000:03:00.0 eth0:link up
SEP 3 11:23:03 gofox-to-be-filled-by-o-e-m kernel: [500.238182] r8169 0000:03:00.0 eth0:link up
SEP 3 11:23:39 gofox-to-be-filled-by-o-e-m kernel: [536.262303] r8169 0000:03:00.0 eth0:link up
[Email protected]:~$

3. Check if the network connection is normal

sudo ls-al/etc/resolv.conflrwxrwxrwx 1 root root 29 August 20:05/etc/resolv.conf. /run/resolvconf/resolv.confsudo Cat/etc/resolv.confnameserver 127.0.1.1

Run results

。。。 [email protected]:~$ Lspci ... 01:00.1 Audio device:advanced Micro Devices, Inc. [Amd/ati] Cape verde/pitcairn HDMI Audio [Radeon HD 7700/7800 series]02 : 00.0 USB Controller:etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev.) 03:00.0 Ethernet Controller:realtek Se Miconductor Co., Ltd. rtl8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev.) [email protected]:~$ sudo lsh W-c Network[sudo] Password for gofox: *-network description:ethernet interfaceproduct:rtl8111/8168/8411 PCI Express Gig Abit Ethernet Controllervendor:realtek Semiconductor Co., ltd.physical id:0bus info: [email protected]:0 3:00.0logical name:eth0version:06serial:94:de:80:2a:f5:58size:100mbit/scapacity:1gbit/swidth:64 Bitsclock: 33MHZCAPABILITIES:PM msi pciexpress msix VPD bus_master cap_list Ethernet physical TP mii 10BT 10bt-fd 100BT 100BT-FD 100 0BT 1000bt-fd autonegotiationconfiguration:autonegotiation=on broadcast=yes driver=r8169 Driverversion=2.3LK-NAPI Duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.1.100 latency=0 link=yes multicast=yes port=MII speed=100Mbit/sresources: irq:73 ioport:d000 (size=256) memory:d0004000-d0004fff memory:d0000000-d0003fff[email protected]:~$ Ifconfigeth0 Link ENCAP: Ethernet Hardware address 94:de:80:2a:f5:58 inet address: 192.168.1.100 Broadcast: 192.168.1.255 Mask: 255.255.255.0inet6 Address: FE80 :: 96DE:80FF:FE2A:F558/64 scope:linkup broadcast RUNNING multicast mtu:1500 hop count: 1 Receive packet: 31 Error: 0 Discard: 0 Overload: 0 Number of frames: 0 Send packet: 35 Error: 0 Discard: 611 Overload: 0 Carrier: 0 Collisions: 0 Send Queue Length: 1000 bytes Received: 4309 (4.3 kb) Send bytes: 5059 (5.0 KB) ... [email protected]:~$ tail/var/log/syslog-n 20Sep 3 11:15:27 gofox-to-be-filled-by-o-e-m kernel: [43.926344]---[E nd trace F68773F9B988BCA3]---Sep 3 11:15:27 gofox-to-be-filled-by-o-e-m kernel: [43.932415] r8169 0000:03:00.0 Eth0:lin K upsep 3 11:15:30 gofox-to-be-filled-by-o-e-m ntpdate[2071]: Can ' t find host ntp.ubuntu.com:Name or service not known (- 2) Sep 3 11:15:30 gofox-to-be-filled-by-o-e-m ntpdate[2071]: No servers can be used, EXITINGSEP 311:15:41 gofox-to-be-filled-by-o-e-m whoopsie[1006]: offlinesep 3 11:16:09 gofox-to-be-filled-by-o-e-m kernel: [ 85.984761] r8169 0000:03:00.0 eth0:link upsep 3 11:17:01 gofox-to-be-filled-by-o-e-m cron[2447]: (root) CMD (CD/&& Amp Run-parts--report/etc/cron.hourly) Sep 3 11:17:27 gofox-to-be-filled-by-o-e-m kernel: [164.012906] r8169 0000:03:00.0 E Th0:link upsep 3 11:17:51 gofox-to-be-filled-by-o-e-m kernel: [188.029088] r8169 0000:03:00.0 eth0:link upSep 3 11:18:1 5 gofox-to-be-filled-by-o-e-m kernel: [212.045170] r8169 0000:03:00.0 eth0:link upsep 3 11:18:51 gofox-to-be-filled-by-o -e-m kernel: [248.069269] r8169 0000:03:00.0 eth0:link upsep 3 11:19:15 gofox-to-be-filled-by-o-e-m kernel: [272.085347 ] r8169 0000:03:00.0 eth0:link upsep 3 11:19:51 gofox-to-be-filled-by-o-e-m kernel: [308.109475] r8169 0000:03:00.0 eth0 : Link upsep 3 11:19:56 gofox-to-be-filled-by-o-e-m anacron[909]: Job ' cron.daily ' startedsep 3 11:19:56 Gofox-To-be-fille D-by-o-e-m anacron[2602]: UPDated timestamp for job ' cron.daily ' to 2014-09-03sep 3 11:20:15 gofox-to-be-filled-by-o-e-m kernel: [332.125563] r8169 00 00:03:00.0 eth0:link upsep 3 11:20:51 gofox-to-be-filled-by-o-e-m kernel: [368.149702] r8169 0000:03:00.0 eth0:link UpS EP 3 11:22:03 gofox-to-be-filled-by-o-e-m kernel: [440.201919] r8169 0000:03:00.0 eth0:link upsep 3 11:23:03 gofox-To-be -filled-by-o-e-m kernel: [500.238182] r8169 0000:03:00.0 eth0:link upsep 3 11:23:39 gofox-to-be-filled-by-o-e-m kernel: [536.262303] r8169 0000:03:00.0 eth0:link up[email protected]:~$

4, analysis of the problem

As expected, it should be your NIC using the wrong driver, see the contents of the Red font:

Your network card is "rtl8111/8168/8411 PCI Express Gigabit Ethernet Controller", should not use r8169 this kernel driver module to drive, otherwise the phenomenon you now get the DHCP IP address, But the network card has been in constant "r8169 0000:03:00.0 eth0:link up" state. This makes it impossible to use a wired network.

The right driver to download to the Realtek website, install it yourself.
Http://www.realtek.com.tw/downloads/downloadsView.aspx? Langid=1&pnid=13&pfid=5&level=5&conn=4&downtypeid=3&getdown=false#2

Select the "LINUX driver for Kernel 3.x and 2.6.x and 2.4.x" version of the "8.038" file download under the UNIX entry in the above link. Download the files, unzip them into your home directory, and then execute the following commands in your home directory:
Code:CD r8168-8.038.00
sudo./autorun.sh


The driver installation is complete, reboot the system. Your wired network should be normal.



Ubuntu 16.04 rtl8111/8168/8411 PCI Express Gigabit Ethernet Controller "Cannot surf the internet

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.