You are not logged in.

#1 2018-08-01 09:13:25

yabk
Member
Registered: 2018-08-01
Posts: 13

[SOLVED] ethernet dhcp problem - fresh install

Hi, new arch user here.
Yesterday I installed arch and during the installation the internet worked out of the box.
However once I finished the installation and rebooted I couldn't connect via eth port anymore (wireless works OK).
I tried connecting using both dhcpcd and NetworkManger, and neither seem to work.

Here is the output of ifconfig:

enp4s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::9a1e:9d9f:8a78:813f  prefixlen 64  scopeid 0x20<link>
        ether 9c:5c:8e:1a:fd:ba  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 724  bytes 86068 (84.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 394855  bytes 31433506 (29.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 394855  bytes 31433506 (29.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.5.48  netmask 255.255.255.0  broadcast 192.168.5.255
        inet6 fe80::22:afdb:290b:74c0  prefixlen 64  scopeid 0x20<link>
        ether c0:d9:62:c7:61:bc  txqueuelen 1000  (Ethernet)
        RX packets 509882  bytes 640195915 (610.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 313992  bytes 39407018 (37.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Here is the output of dhcpcd -d enp4s0f1:

dhcpcd-7.0.5 starting
enp4s0f1: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
enp4s0f1: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' NOCARRIER
enp4s0f1: waiting for carrier
enp4s0f1: carrier acquired
enp4s0f1: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:22:f3:33:cc:9c:5c:8e:1a:fd:ba
enp4s0f1: IAID 8e:1a:fd:ba
enp4s0f1: delaying IPv6 router solicitation for 0.5 seconds
enp4s0f1: delaying IPv4 for 0.8 seconds
enp4s0f1: soliciting an IPv6 router
enp4s0f1: sending Router Solicitation
enp4s0f1: soliciting a DHCP lease
enp4s0f1: sending DISCOVER (xid 0x8bba967f), next in 4.9 seconds
enp4s0f1: sending Router Solicitation
enp4s0f1: sending DISCOVER (xid 0x8bba967f), next in 8.9 seconds
enp4s0f1: sending Router Solicitation
enp4s0f1: sending Router Solicitation
enp4s0f1: no IPv6 Routers available
enp4s0f1: sending DISCOVER (xid 0x8bba967f), next in 15.8 seconds
timed out
dhcpcd exited

Here are some logs from NetworkManager when trying to connect:

Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2712] device (enp4s0f1): state change: ip-config -> deactivating (reason 'new-activation', sys-iface-state: 'managed')
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2718] device (enp4s0f1): disconnecting for new activation request.
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2719] device (enp4s0f1): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2922] dhcp4 (enp4s0f1): canceled DHCP transaction
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2923] dhcp4 (enp4s0f1): state changed timeout -> done
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2937] device (enp4s0f1): Activation: starting connection 'Wired connection 1' (68746543-5121-3544-9e98-98618197e21e)
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2950] device (enp4s0f1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2955] device (enp4s0f1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2961] device (enp4s0f1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Aug 01 11:07:02 asus-k550j NetworkManager[29860]: <info>  [1533114422.2963] dhcp4 (enp4s0f1): activation: beginning transaction (timeout in 45 seconds)
Aug 01 11:07:48 asus-k550j NetworkManager[29860]: <warn>  [1533114468.0058] dhcp4 (enp4s0f1): request timed out
Aug 01 11:07:48 asus-k550j NetworkManager[29860]: <info>  [1533114468.0058] dhcp4 (enp4s0f1): state changed unknown -> timeout
Aug 01 11:07:48 asus-k550j NetworkManager[29860]: <info>  [1533114468.0059] device (enp4s0f1): DHCPv4: 480 seconds grace period started

I tried changing the ports on router and it's still the same. Other computers work fine on the same network.
Please tell me if I can provide you with some other logs or important information that I missed out.

Last edited by yabk (2018-08-02 10:22:29)

Offline

#2 2018-08-01 11:48:29

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,556

Re: [SOLVED] ethernet dhcp problem - fresh install

The ethernet card is sending some bytes but hasn't received any, that suggests the problem is on a lower level.
Have you tried with  a different cable ?


please post lspci -k and the output of ethtool enp4s0f1
(you may have to install ethtool)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2018-08-01 12:53:36

yabk
Member
Registered: 2018-08-01
Posts: 13

Re: [SOLVED] ethernet dhcp problem - fresh install

I tried with different cable, still the same. Also I can still boot into installation stick and connect with dhcpcd no problem.

lspci -k:

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
	Subsystem: ASUSTeK Computer Inc. Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller
	Kernel modules: ie31200_edac
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
	Subsystem: ASUSTeK Computer Inc. 4th Gen Core Processor Integrated Graphics Controller
	Kernel driver in use: i915
	Kernel modules: i915
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
	Subsystem: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
	Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family USB xHCI
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
	Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family MEI Controller
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
	Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset High Definition Audio Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
	Subsystem: ASUSTeK Computer Inc. HM86 Express LPC Controller
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
	Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
	Subsystem: ASUSTeK Computer Inc. 8 Series/C220 Series Chipset Family SMBus Controller
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)
	Subsystem: ASUSTeK Computer Inc. GM107M [GeForce GTX 950M]
	Kernel driver in use: nouveau
	Kernel modules: nouveau
03:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
	Subsystem: Fujitsu Limited. AR9462 Wireless Network Adapter
	Kernel driver in use: ath9k
	Kernel modules: ath9k
04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
	Subsystem: ASUSTeK Computer Inc. RTL8411B PCI Express Card Reader
	Kernel driver in use: rtsx_pci
	Kernel modules: rtsx_pci
04:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169

ethtool enp4s0f1:

Settings for enp4s0f1:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 100Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes

Offline

#4 2018-08-01 16:51:47

yabk
Member
Registered: 2018-08-01
Posts: 13

Re: [SOLVED] ethernet dhcp problem - fresh install

I did some additional testing.

I set static ip address via NetworkManager and still nothing.
Pinging anything, even the network gateway, would result in "Destination Host Unreachable".

I then connected it to another, mikrotik, router and tried to connect with both dhcpcd and NetworkManager.
On the router logs I saw that it isn't receiving any requests from my laptop.
Logs from both dhcpcd and NetworkManager were same as the ones I posted above.

Offline

#5 2018-08-01 19:17:30

yabk
Member
Registered: 2018-08-01
Posts: 13

Re: [SOLVED] ethernet dhcp problem - fresh install

Once again I tried booting into arch installation usb and this time it didn't work there either. (I'm pretty sure it worked the first time I tried after installation)

After that, I found that the problem persisted on debian live image as well.

Upon further investigation I noticed that one of the pins on my ethernet port is slightly bent inwards.
I think that that explains everything.

I will be closing this topic now, sorry for confusion.

Offline

#6 2018-08-01 21:01:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: [SOLVED] ethernet dhcp problem - fresh install

Do you have a parallel windows installation?
https://wiki.archlinux.org/index.php/Du … t_Start-Up

Offline

#7 2018-08-01 21:07:58

yabk
Member
Registered: 2018-08-01
Posts: 13

Re: [SOLVED] ethernet dhcp problem - fresh install

I do have windows installed as well.

Offline

#8 2018-08-01 21:12:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: [SOLVED] ethernet dhcp problem - fresh install

Follow the link, disable fastboot.

Offline

#9 2018-08-01 21:15:33

yabk
Member
Registered: 2018-08-01
Posts: 13

Re: [SOLVED] ethernet dhcp problem - fresh install

It is disabled.

I'm sorry but I don't see how that could cause these problems with ethernet interface.
Could you mind explaining please.

Offline

#10 2018-08-01 21:25:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,843

Re: [SOLVED] ethernet dhcp problem - fresh install

Fastboot is a cheat.
The system isn't shut down but hibernated and the HW is left in an undefined state. This causes all sorts of problems, from random functionality to data loss. (This is a general poblem w/ running one system while another one is in hibernation )

However I only read up to "non-deterministic" and missed the "bent pin" part (bad habit of mine) - that's of course a good explanation for weird behavior (though i've never seen a bent rj45 pin - what happens is that the outer pins break if you force a phone jack into it)

Offline

#11 2018-08-01 21:33:59

yabk
Member
Registered: 2018-08-01
Posts: 13

Re: [SOLVED] ethernet dhcp problem - fresh install

I have a dualboot Windows but I haven't used it for a few weeks now.

seth wrote:

However I only read up to "non-deterministic" and missed the "bent pin" part

No problem man. I knew fastboot could be pain in the ass but didn't know it could cause HW issues so I learned something new now, thanks for that!

Last edited by yabk (2018-08-02 12:11:39)

Offline

Board footer

Powered by FluxBB