You are not logged in.

#1 2016-03-03 12:14:50

marmistrz
Member
Registered: 2016-01-05
Posts: 110

[solved] Unable to start a wired connection after install

I've installed Arch Linux successfully. Rebooted, regenerated the GRUB config in my Linux Mint installation (my main installation) and booted back again into Arch.

And I'm unable to start a wired connection.

I have a university network, so wireless is out of question. I can only connect via Ethernet.

I do have RealTek R8168, and do use the `r8169` module. But I'm using the same module in my Linux Mint install without any problems whatsoever.
This is the log from dmesg about the module

[    0.000000] PERCPU: Embedded 32 pages/cpu @ffff88022ec00000 s92696 r8192 d30184 u524288
[    0.000000] pcpu-alloc: s92696 r8192 d30184 u524288 alloc=1*2097152
[    1.268013] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.268023] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.275241] r8169 0000:02:00.0 eth0: RTL8168g/8111g at 0xffffc90000c9c000, 1c:b7:2c:0c:e6:7d, XID 10900800 IRQ 49
[    1.275246] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    1.367916] r8169 0000:02:00.0 enp2s0: renamed from eth0
[   18.519621] r8169 0000:02:00.0 enp2s0: link down
[   20.658065] r8169 0000:02:00.0 enp2s0: link up

And this is the systemd log:

● dhcpcd@enp2s0.service - dhcpcd on enp2s0
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2016-03-03 13:05:25 CET; 29s ago
  Process: 394 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=1/FAILURE)

Mar 03 13:04:55 arch dhcpcd[394]: DUID 00:01:00:01:1e:6a:e0:62:1c:b7:2c:0c:e6:7d
Mar 03 13:04:55 arch dhcpcd[394]: enp2s0: IAID 2c:0c:e6:7d
Mar 03 13:04:55 arch dhcpcd[394]: enp2s0: soliciting an IPv6 router
Mar 03 13:04:56 arch dhcpcd[394]: enp2s0: soliciting a DHCP lease
Mar 03 13:05:07 arch dhcpcd[394]: enp2s0: no IPv6 Routers available
Mar 03 13:05:25 arch dhcpcd[394]: timed out
Mar 03 13:05:25 arch systemd[1]: dhcpcd@enp2s0.service: Control process exited, code=exited status=1
Mar 03 13:05:25 arch systemd[1]: Failed to start dhcpcd on enp2s0.
Mar 03 13:05:25 arch systemd[1]: dhcpcd@enp2s0.service: Unit entered failed state.
Mar 03 13:05:25 arch systemd[1]: dhcpcd@enp2s0.service: Failed with result 'exit-code'.

How can I fix it? Why does it fail to work?

Last edited by marmistrz (2016-03-11 10:40:54)

Offline

#2 2016-03-03 14:15:11

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [solved] Unable to start a wired connection after install

why dhcpcd is looking for IPv6 router?

Offline

#3 2016-03-03 16:14:18

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Unable to start a wired connection after install

Docbroke wrote:

why dhcpcd is looking for IPv6 router?

I have absolutely no idea. Never used dhcpcd. In Linux Mint the Internet connection just worked. (they used network manager)

Offline

#4 2016-03-03 16:46:58

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [solved] Unable to start a wired connection after install

marmistrz wrote:

I have a university network, so wireless is out of question.

Off topic - but why is this out of the question?  I use wireless networks at several universities.

On topic - can you run dhcpcd manually.  Try the following:

dhcpcd -4 enp2s0

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2016-03-03 17:08:36

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: [solved] Unable to start a wired connection after install

marmistrz wrote:

I have absolutely no idea. Never used dhcpcd. In Linux Mint the Internet connection just worked. (they used network manager)

You can use network-manager with arch too, if you are comfortable with that, just install networkmanager, nm-applet , & start systemd service, but before that don't forget to stop&disable dhcpcd.
However if you are using only ethernet, dhcpcd is the simplest configuration.

https://wiki.archlinux.org/index.php/Dhcpcd

https://wiki.archlinux.org/index.php/Networkmanager

Offline

#6 2016-03-03 17:15:24

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [solved] Unable to start a wired connection after install

Docbroke wrote:

why dhcpcd is looking for IPv6 router?

It needs to see a router advertisement to know whether the network is using SLAAC or DHCP6 for configuration. This should not interfere with DHCP4 configuration.

Offline

#7 2016-03-03 17:31:42

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Unable to start a wired connection after install

Trilby wrote:
marmistrz wrote:

I have a university network, so wireless is out of question.

Off topic - but why is this out of the question?  I use wireless networks at several universities.

Well, the wireless is so poor that you can barely connect to it. Either you can't establish the connection or it breaks after a while.

Trilby wrote:

On topic - can you run dhcpcd manually.  Try the following:

dhcpcd -4 enp2s0

Already tried this, no success

Docbroke wrote:
marmistrz wrote:

I have absolutely no idea. Never used dhcpcd. In Linux Mint the Internet connection just worked. (they used network manager)

You can use network-manager with arch too, if you are comfortable with that, just install networkmanager, nm-applet , & start systemd service, but before that don't forget to stop&disable dhcpcd.
However if you are using only ethernet, dhcpcd is the simplest configuration.

I'll install Cinnamon nevertheless, so I guess NM may be a good idea. I'll try in in a while.

Offline

#8 2016-03-03 21:50:38

branch
Member
Registered: 2014-03-16
Posts: 209

Re: [solved] Unable to start a wired connection after install

It sounds like dhcpcd is just not getting a response back from the dhcp server. Since the mint install works with this hardware and network, I would try to verify if the NIC is working at all under the Arch install. Boot mint, and get the IP address of the dhcp server. Then boot into Arch and try

sudo arping -I enp2s0 $DHCP_SERVER_ADDESS

If this fails then you do not have basic network connectivity.

Since NetworkManager will just turn around and call a dhcp client (either dhcpcd or dhclient) it is unlikely that it would work when dhcpcd does not.

Offline

#9 2016-03-05 11:50:28

marmistrz
Member
Registered: 2016-01-05
Posts: 110

Re: [solved] Unable to start a wired connection after install

branch wrote:

It sounds like dhcpcd is just not getting a response back from the dhcp server. Since the mint install works with this hardware and network, I would try to verify if the NIC is working at all under the Arch install. Boot mint, and get the IP address of the dhcp server. Then boot into Arch and try

sudo arping -I enp2s0 $DHCP_SERVER_ADDESS

If this fails then you do not have basic network connectivity.

Since NetworkManager will just turn around and call a dhcp client (either dhcpcd or dhclient) it is unlikely that it would work when dhcpcd does not.

So, I'll surprise you. After installing NetworkManager everything workks as it should.
I only have problems with wireless but it's something for another thread.\

/edit: Sometimes the connection does fail on startup. (may be a cable issue) I guess the cause why NM works and dhcpcd not is that dhcpcd tries once. NM tries until it succeeds.

Last edited by marmistrz (2016-03-11 10:42:06)

Offline

Board footer

Powered by FluxBB