Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: Gentoo User <gentoo-user@l.g.o>
Subject: [gentoo-user] netbook connects to Internet automatically, desktop doesn't
Date: Mon, 09 Feb 2015 00:54:16
Message-Id: 20150209005407.GA1155@ca.inter.net
1 By accident during my update of my ASUS EEE (now successfully completed),
2 I discovered that it connects automatically to the Internet
3 when the physical connection is plugged in,
4 while my desktop machine (AMD + Gigabyte mobo) has to be told by 'dhcpcd'.
5
6 The netbook's syslog reports (my comments marked by '# PP :')
7 (the 'Dec 31' date is due to failure of the mobo battery,
8 which forces me to enter the correct date by hand) :
9
10 Dec 31 19:00:23 localhost dhcpcd[1323]: version 6.4.7 starting
11 Dec 31 19:00:23 localhost dhcpcd[1323]: dev: loaded udev
12 Dec 31 19:00:23 localhost dhcpcd[1323]: no interfaces have a carrier
13 Dec 31 19:00:23 localhost dhcpcd[1323]: forked to background, child pid 1346
14 Dec 31 19:00:23 localhost kernel: atl1c 0000:01:00.0: Unable to allocate MSI interrupt Error: -38
15 Dec 31 19:00:23 localhost kernel: IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
16 Dec 31 19:00:23 localhost dhcpcd[1346]: enp1s0: waiting for carrier
17 Dec 31 19:00:23 localhost dhcpcd[1346]: enp1s0: carrier acquired
18 Dec 31 19:00:23 localhost dhcpcd[1346]: DUID 00:01:00:01:03:c3:b8:97:00:26:18:79:64:16
19 Dec 31 19:00:23 localhost dhcpcd[1346]: enp1s0: IAID 18:79:64:16
20 Dec 31 19:00:23 localhost dhcpcd[1346]: enp1s0: carrier lost
21 Dec 31 19:00:29 localhost dhcpcd[1346]: enp1s0: using IPv4LL address 169.254.91.169
22 Dec 31 19:00:29 localhost dhcpcd[1346]: enp1s0: adding route to 169.254.0.0/16
23 Dec 31 19:00:33 localhost dhcpcd[1346]: enp1s0: soliciting a DHCP lease
24 ...
25 Feb 8 18:54:59 localhost dhcpcd[1346]: enp1s0: carrier acquired
26 ...
27 Feb 8 18:54:59 localhost dhcpcd[1346]: enp1s0: IAID 18:79:64:16
28 Feb 8 18:54:59 localhost dhcpcd[1346]: enp1s0: soliciting a DHCP lease
29 Feb 8 18:55:07 localhost dhcpcd[1346]: enp1s0: offered 192.168.1.3 from 192.168.1.1
30 Feb 8 18:55:11 localhost dhcpcd[1346]: enp1s0: leased 192.168.1.3 for 86400 seconds
31 Feb 8 18:55:11 localhost dhcpcd[1346]: enp1s0: adding route to 192.168.1.0/24
32 Feb 8 18:55:11 localhost dhcpcd[1346]: enp1s0: adding default route via 192.168.1.1
33 Feb 8 18:55:11 localhost dhcpcd[1346]: enp1s0: deleting route to 169.254.0.0/16
34 ...
35 # PP : remove/restore conn'n
36 Feb 8 19:14:41 localhost dhcpcd[1346]: enp1s0: carrier lost
37 Feb 8 19:14:41 localhost dhcpcd[1346]: enp1s0: deleting route to 192.168.1.0/24
38 Feb 8 19:14:41 localhost dhcpcd[1346]: enp1s0: deleting default route via 192.168.1.1
39 Feb 8 19:15:15 localhost dhcpcd[1346]: enp1s0: carrier acquired
40 Feb 8 19:15:15 localhost kernel: atl1c 0000:01:00.0: atl1c: enp1s0 NIC Link is Up<100 Mbps Full Duplex>
41 Feb 8 19:15:15 localhost dhcpcd[1346]: enp1s0: IAID 18:79:64:16
42 Feb 8 19:15:15 localhost dhcpcd[1346]: enp1s0: rebinding lease of 192.168.1.3
43 Feb 8 19:15:23 localhost dhcpcd[1346]: enp1s0: leased 192.168.1.3 for 86400 seconds
44 Feb 8 19:15:23 localhost dhcpcd[1346]: enp1s0: adding route to 192.168.1.0/24
45 Feb 8 19:15:23 localhost dhcpcd[1346]: enp1s0: adding default route via 192.168.1.1
46 # PP : Dillo finds site
47
48 The desktop machine's syslog reports :
49
50 Feb 8 09:26:09 localhost dhcpcd[980]: version 6.6.7 starting
51 Feb 8 09:26:09 localhost dhcpcd[980]: dev: loaded udev
52 Feb 8 09:26:09 localhost dhcpcd[980]: no interfaces have a carrier
53 Feb 8 09:26:09 localhost dhcpcd[980]: forked to background, child pid 997
54 Feb 8 09:26:09 localhost dhcpcd[997]: enp5s0: waiting for carrier
55 Feb 8 09:26:09 localhost kernel: r8169 0000:05:00.0 enp5s0: link down
56 Feb 8 09:26:09 localhost kernel: r8169 0000:05:00.0 enp5s0: link down
57 Feb 8 09:26:09 localhost kernel: IPv6: ADDRCONF(NETDEV_UP): enp5s0: link is not ready
58 Feb 8 09:26:11 localhost dhcpcd[997]: enp5s0: carrier acquired
59 Feb 8 09:26:11 localhost kernel: r8169 0000:05:00.0 enp5s0: link up
60 Feb 8 09:26:11 localhost kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp5s0: link becomes ready
61 Feb 8 09:26:11 localhost dhcpcd[997]: DUID 00:01:00:01:1a:1b:b4:7e:50:e5:49:c6:10:3a
62 Feb 8 09:26:11 localhost dhcpcd[997]: enp5s0: IAID 49:c6:10:3a
63 Feb 8 09:26:11 localhost dhcpcd[997]: enp5s0: rebinding lease of 192.168.1.2
64 Feb 8 09:26:14 localhost dhcpcd[997]: enp5s0: NAK: from 192.168.1.1
65 Feb 8 09:26:14 localhost dhcpcd[997]: enp5s0: soliciting a DHCP lease
66 Feb 8 09:26:16 localhost dhcpcd[997]: enp5s0: offered 192.168.1.2 from 192.168.1.1
67 Feb 8 09:26:21 localhost dhcpcd[997]: enp5s0: leased 192.168.1.2 for 86400 seconds
68 Feb 8 09:26:21 localhost dhcpcd[997]: enp5s0: adding route to 192.168.1.0/24
69 Feb 8 09:26:21 localhost dhcpcd[997]: enp5s0: adding default route via 192.168.1.1
70 Feb 8 09:26:22 localhost ntpd[837]: Listen normally on 2 enp5s0 192.168.1.2:123
71 ...
72 # PP : 'ioff', remove conn'n
73 Feb 8 18:54:26 localhost dhcpcd[11404]: sending signal ARLM to pid 997
74 Feb 8 18:54:26 localhost dhcpcd[11404]: waiting for pid 997 to exit
75 Feb 8 18:54:26 localhost dhcpcd[997]: received signal ALRM from PID 11404, releasing
76 Feb 8 18:54:26 localhost dhcpcd[997]: enp5s0: removing interface
77 Feb 8 18:54:26 localhost dhcpcd[997]: enp5s0: releasing lease of 192.168.1.2
78 Feb 8 18:54:26 localhost dhcpcd[997]: enp5s0: deleting route to 192.168.1.0/24
79 Feb 8 18:54:26 localhost dhcpcd[997]: enp5s0: deleting default route via 192.168.1.1
80 Feb 8 18:54:26 localhost dhcpcd[997]: exited
81 ...
82 Feb 8 18:54:35 localhost kernel: r8169 0000:05:00.0 enp5s0: link down
83 ...
84 # PP : restore conn'n
85 Feb 8 19:18:11 localhost kernel: r8169 0000:05:00.0 enp5s0: link up
86 # PP : Firefox can't find site
87
88 I've checked /etc/runlevels/default & /etc/udev in both machines,
89 but can't see anything different between the two.
90 IIRC the netbook didn't show this behaviour before the recent update,
91 But both machines have similarly updated pkgs.
92 The kernels are 3.17 & 3.18 ; desktop manager is Fluxbox.
93
94 Can anyone explain what I need to do
95 to get the desktop machine to behave as helpfully as the netbook does ?
96
97 --
98 ========================,,============================================
99 SUPPORT ___________//___, Philip Webb
100 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
101 TRANSIT `-O----------O---' purslowatchassdotutorontodotca

Replies

Subject Author
Re: [gentoo-user] netbook connects to Internet automatically, desktop doesn't Neil Bothwick <neil@××××××××××.uk>