You are not logged in.
I can't just enable the NIC directly when the LAN is down (have to reboot again).
$ ip link set enp5s0 up
Cannot find device "enp5s0"Also, I don't dual boot windows, just arch linux.
This is the adapter I have.
$ lspci | grep ETHERNET
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)How can I fix this?
Thanks
Offline
Does it always have that name? Please paste your logs and information about how you manage your network connection.
Moving to NC...
Offline
yes it always has the same name. I just use dhclient.
Here's the log from journalctl during a few recent reboots.
Jan 29 03:58:42 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Jan 29 03:58:42 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Jan 29 03:58:42 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Jan 29 03:58:42 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Jan 29 03:58:42 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Jan 29 03:58:42 arch systemd[1]: Reached target Network.
Jan 29 03:58:42 arch systemd[1]: Reached target Network.
Jan 29 04:20:45 arch systemd[1]: Starting Network Time Synchronization...
Jan 29 04:20:45 arch systemd[1]: Started Network Time Synchronization.
Apr 30 12:24:59 arch systemd[1]: Stopped target Network.
Apr 30 12:24:59 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 12:24:59 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 12:27:13 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 12:27:13 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 12:27:13 arch systemd[1]: Started Network Time Synchronization.
Apr 30 12:27:13 arch systemd[1]: Reached target Network.
Apr 30 12:35:36 arch systemd[1]: Stopped target Network.
Apr 30 12:35:36 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 12:35:36 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 12:36:18 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 12:36:19 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 12:36:19 arch systemd[1]: Started Network Time Synchronization.
Apr 30 12:36:19 arch systemd[1]: Reached target Network.
Apr 30 12:58:34 arch systemd[1]: Stopped target Network.
Apr 30 12:58:34 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 12:58:34 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 12:58:54 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 12:58:55 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 12:58:55 arch systemd[1]: Started Network Time Synchronization.
Apr 30 12:58:55 arch systemd[1]: Reached target Network.
Apr 30 12:59:34 arch systemd[1]: Stopped target Network.
Apr 30 12:59:34 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 12:59:34 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 13:00:07 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 13:00:07 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 13:00:07 arch systemd[1]: Started Network Time Synchronization.
Apr 30 13:00:07 arch systemd[1]: Reached target Network.
Apr 30 13:10:50 arch systemd[1]: Stopped target Network.
Apr 30 13:10:51 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 13:10:51 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 13:11:10 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 13:11:11 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 13:11:11 arch systemd[1]: Started Network Time Synchronization.
Apr 30 13:11:11 arch systemd[1]: Reached target Network.
Apr 30 13:11:51 arch systemd[1]: Stopped target Network.
Apr 30 13:11:51 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 13:11:51 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 13:12:10 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 13:12:10 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 13:12:10 arch systemd[1]: Started Network Time Synchronization.
Apr 30 13:12:10 arch systemd[1]: Reached target Network.
Apr 30 17:45:00 arch systemd[1]: Stopped target Network.
Apr 30 17:45:00 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 17:45:00 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 17:45:21 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 17:45:21 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 17:45:21 arch systemd[1]: Started Network Time Synchronization.
Apr 30 17:45:21 arch systemd[1]: Reached target Network.
Apr 30 17:47:03 arch systemd[1]: Stopped target Network.
Apr 30 17:47:03 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 17:47:03 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 17:47:21 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 17:47:22 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 17:47:22 arch systemd[1]: Started Network Time Synchronization.
Apr 30 17:47:22 arch systemd[1]: Reached target Network.
Apr 30 17:49:24 arch systemd[1]: Stopped target Network.
Apr 30 17:49:24 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 17:49:24 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 17:49:43 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 17:49:44 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 17:49:44 arch systemd[1]: Started Network Time Synchronization.
Apr 30 17:49:44 arch systemd[1]: Reached target Network.
Apr 30 17:50:27 arch systemd[1]: Stopped target Network.
Apr 30 17:50:27 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 17:50:27 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 17:50:51 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 17:50:52 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 17:50:52 arch systemd[1]: Started Network Time Synchronization.
Apr 30 17:50:52 arch systemd[1]: Reached target Network.
Apr 30 19:19:22 arch systemd[1]: Stopped target Network.
Apr 30 19:19:22 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 19:19:22 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 19:19:43 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 19:19:44 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 19:19:44 arch systemd[1]: Started Network Time Synchronization.
Apr 30 19:19:44 arch systemd[1]: Reached target Network.
Apr 30 19:21:20 arch systemd[1]: Stopped target Network.
Apr 30 19:21:20 arch systemd[1]: Stopping Network Time Synchronization...
Apr 30 19:21:20 arch systemd[1]: Stopped Network Time Synchronization.
Apr 30 19:21:38 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
Apr 30 19:21:39 arch systemd[1]: Starting Network Time Synchronization...
Apr 30 19:21:39 arch systemd[1]: Started Network Time Synchronization.
Apr 30 19:21:39 arch systemd[1]: Reached target Network.
May 01 05:11:04 arch systemd[1]: Stopped target Network.
May 01 05:11:04 arch systemd[1]: Stopping Network Time Synchronization...
May 01 05:11:04 arch systemd[1]: Stopped Network Time Synchronization.
May 01 05:11:28 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 05:11:29 arch systemd[1]: Starting Network Time Synchronization...
May 01 05:11:29 arch systemd[1]: Started Network Time Synchronization.
May 01 05:11:29 arch systemd[1]: Reached target Network.
May 01 05:11:57 arch systemd[1]: Stopped target Network.
May 01 05:11:57 arch systemd[1]: Stopping Network Time Synchronization...
May 01 05:11:57 arch systemd[1]: Stopped Network Time Synchronization.
May 01 05:12:17 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 05:12:18 arch systemd[1]: Starting Network Time Synchronization...
May 01 05:12:18 arch systemd[1]: Started Network Time Synchronization.
May 01 05:12:18 arch systemd[1]: Reached target Network.
May 01 05:33:49 arch dhclient[262]: receive_packet failed on enp5s0: Network is down
May 01 05:33:49 arch dhclient[262]: receive_packet failed on enp5s0: Network is down
May 01 05:40:32 arch dhclient[262]: receive_packet failed on enp5s0: Network is down
May 01 05:40:32 arch dhclient[262]: receive_packet failed on enp5s0: Network is down
May 01 05:40:57 arch dhclient[262]: receive_packet failed on enp5s0: Network is down
May 01 05:40:57 arch dhclient[262]: receive_packet failed on enp5s0: Network is down
May 01 05:42:26 arch systemd[1]: Stopped target Network.
May 01 05:42:26 arch systemd[1]: Stopping Network Time Synchronization...
May 01 05:42:26 arch systemd[1]: Stopped Network Time Synchronization.
May 01 05:42:48 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 05:42:49 arch systemd[1]: Starting Network Time Synchronization...
May 01 05:42:49 arch systemd[1]: Started Network Time Synchronization.
May 01 05:42:49 arch systemd[1]: Reached target Network.
May 01 05:44:32 arch systemd[1]: Stopped target Network.
May 01 05:44:32 arch systemd[1]: Stopping Network Time Synchronization...
May 01 05:44:32 arch systemd[1]: Stopped Network Time Synchronization.
May 01 05:44:54 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 05:44:55 arch systemd[1]: Starting Network Time Synchronization...
May 01 05:44:55 arch systemd[1]: Started Network Time Synchronization.
May 01 05:44:55 arch systemd[1]: Reached target Network.
May 01 05:53:18 arch dhclient[269]: receive_packet failed on enp5s0: Network is down
May 01 05:53:18 arch dhclient[269]: receive_packet failed on enp5s0: Network is down
May 01 06:02:29 arch systemd[1]: Stopped target Network.
May 01 06:02:29 arch systemd[1]: Stopping Network Time Synchronization...
May 01 06:02:29 arch systemd[1]: Stopped Network Time Synchronization.
May 01 06:02:50 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 06:02:51 arch systemd[1]: Starting Network Time Synchronization...
May 01 06:02:51 arch systemd[1]: Started Network Time Synchronization.
May 01 06:02:51 arch systemd[1]: Reached target Network.
May 01 06:05:34 arch systemd[1]: Stopped target Network.
May 01 06:05:34 arch systemd[1]: Stopping Network Time Synchronization...
May 01 06:05:34 arch systemd[1]: Stopped Network Time Synchronization.
May 01 06:05:53 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 06:05:54 arch systemd[1]: Starting Network Time Synchronization...
May 01 06:05:54 arch systemd[1]: Started Network Time Synchronization.
May 01 06:05:54 arch systemd[1]: Reached target Network.
May 01 06:08:30 arch systemd[1]: Stopped target Network.
May 01 06:08:30 arch systemd[1]: Stopping Network Time Synchronization...
May 01 06:08:30 arch systemd[1]: Stopped Network Time Synchronization.
May 01 06:08:51 arch kernel: FUJITSU Extended Socket Network Device Driver - version 1.2 - Copyright (c) 2015 FUJITSU LIMITED
May 01 06:08:52 arch systemd[1]: Starting Network Time Synchronization...
May 01 06:08:52 arch systemd[1]: Started Network Time Synchronization.
May 01 06:08:52 arch systemd[1]: Reached target Network.Also, the interface is just down and has no other name during this reboot
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
3: wlp9s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether bc:77:37:7e:48:8e brd ff:ff:ff:ff:ff:ffLast edited by ebshankar (2017-05-01 00:52:50)
Offline
Are there some errors in "journalctl -k" or "dmesg"? I ask because, shouldn't it always show up in "ip a" or "ip l" if a device exists, no matter if connection fails or not? Perhaps the hardware device doesn't exist at all, like maybe the driver in the kernel is giving up on talking to the actual hardware at boot for some reason.
When you ran that "lspci | grep Ethernet", is this the result you get when everything works, or is the output also there when the link is missing in "ip l"?
Offline
Are there some errors in "journalctl -k" or "dmesg"? I ask because, shouldn't it always show up in "ip a" or "ip l" if a device exists, no matter if connection fails or not? Perhaps the hardware device doesn't exist at all, like maybe the driver in the kernel is giving up on talking to the actual hardware at boot for some reason.
When you ran that "lspci | grep Ethernet", is this the result you get when everything works, or is the output also there when the link is missing in "ip l"?
Good point. Even if the connection fails the device should be listed by "ip a". There are no errors in dmesg and journalctl -k . The messages related to r8169 (kernel module for ethernet) are just missing.
Yea. kernel is unable to talk to the device. Because during a "bad" boot, "lspci | grep Ethernet" is empty.
Offline
What does lspci look like in that case? Is the module loaded, what happens if you reload it, does "systool -vm r8169" suggest "use_dac" is enabled?
Offline
What does lspci look like in that case? Is the module loaded, what happens if you reload it, does "systool -vm r8169" suggest "use_dac" is enabled?
lspci is the exact same just that the line
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)is missing and r8169 is not loaded during a bad boot. If I load it using modprobe, it loads but there's no wired network interface as usual when listed with "ip link". Here's the output of "systool -vm r8169" (from both bad (after modprobe) and good boots only the hexadecimal numbers change). Doesn't indicate "use_dac" is enabled.
Module = "r8169"
Attributes:
coresize = "77824"
initsize = "0"
initstate = "live"
refcnt = "0"
srcversion = "EA7EBA99CD518C5B5A01B0F"
taint = ""
uevent = <store method only>
version = "2.3LK-NAPI"
Sections:
.data.unlikely = "0xffffffffa0229118"
.data = "0xffffffffa0229000"
.exit.text = "0xffffffffa0224b80"
.gnu.linkonce.this_module= "0xffffffffa0229180"
.init.text = "0xffffffffa0237000"
.note.gnu.build-id = "0xffffffffa0225000"
.parainstructions = "0xffffffffa0227fe0"
.rodata.str1.1 = "0xffffffffa02254ac"
.rodata.str1.8 = "0xffffffffa0225028"
.rodata = "0xffffffffa0225b00"
.smp_locks = "0xffffffffa02253fc"
.strtab = "0xffffffffa023a8b0"
.symtab = "0xffffffffa0238000"
.text = "0xffffffffa0219000"
__bug_table = "0xffffffffa022533a"
__jump_table = "0xffffffffa0229100"
__mcount_loc = "0xffffffffa0228090"
__param = "0xffffffffa0228040"
__verbose = "0xffffffffa0229120"Last edited by ebshankar (2017-05-01 10:48:22)
Offline
Actually, the info for this module has no parameter section (but it's likely irrelevant anyway)
- Does
echo 1 | sudo tee /sys/bus/pci/rescan change anything? (unload the module first and check lspci afterwards)
- Is there anything else on the bus?
lspci -tvOffline
Actually, the info for this module has no parameter section (but it's likely irrelevant anyway)
- Does
echo 1 | sudo tee /sys/bus/pci/rescanchange anything? (unload the module first and check lspci afterwards)
- Is there anything else on the bus?lspci -tv
The rescan didn't work. Yes there are a few other things on the bus
-[0000:00]-+-00.0 Intel Corporation 2nd Generation Core Processor Family DRAM Controller
+-01.0-[01]--+-00.0 NVIDIA Corporation GF108M [GeForce GT 525M]
| \-00.1 NVIDIA Corporation GF108 High Definition Audio Controller
+-02.0 Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller
+-1a.0 Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2
+-1b.0 Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller
+-1c.0-[03-04]--
+-1c.1-[05-06]----00.0 Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
+-1c.3-[09-0a]----00.0 Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak]
+-1c.4-[0b-0c]----00.0 NEC Corporation uPD720200 USB 3.0 Host Controller
+-1c.7-[11-1f]--
+-1d.0 Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1
+-1f.0 Intel Corporation HM67 Express Chipset Family LPC Controller
+-1f.2 Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller
\-1f.3 Intel Corporation 6 Series/C200 Series Chipset Family SMBus ControllerDuring a bad reboot, "1c.1-[05-06]----" line is empty.
I just observed that when I blacklist the r8169 module and boot, the ethernet controller always exists on the bus (like above). Then I can just modprobe this module and use ip command to switch on enp5s0 interface. Seems like a race condition.
Offline