You are not logged in.

#1 2021-10-06 13:02:37

ruffy
Member
Registered: 2017-06-10
Posts: 62

[SOLVED] Ethernet with my docking station stopped working

Hi all!

Since 4 weeks my ethernet connection at my workplace stopped working on my laptop, but only if I use my Lenovo docking station.
If I connect the cable directly to my laptop everything works and also with another laptop the connection works flawlessly with my docking station.
Furthermore, I tried another docking station, but it did not fix the problem.
So I conclude that the problem have to be on my laptop...
The strange thing is that I was able to use the ethernet until the beginning of September...

I use netctl-auto and ifplugd for connecting, but the systemd service does not show any error's.

$ uname -a

Linux arch-work 5.14.9-arch2-1 #1 SMP PREEMPT Fri, 01 Oct 2021 19:03:20 +0000 x86_64 GNU/Linux

$ ping google.com

ping: google.com: Temporary failure in name resolution

$ netctl --version

netctl version 1.26

$ ifplugd --version

ifplugd 0.28 (SVN: 124)

$ dhcpcd --version

dhcpcd 9.4.0
Copyright (c) 2006-2020 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH PRIVSEP

$ journalctl -xe

...
Oct 06 11:32:40 arch ifplugd(enp2s0f0)[215201]: Program executed successfully.
Oct 06 11:32:51 arch dhcpcd[240537]: ps_root_recvmsg: Operation not permitted
Oct 06 11:32:56 arch dhcpcd[240537]: ps_root_recvmsg: Operation not permitted

The only error I can see is in journalctl and is emitted from dhcpcd "ps_root_recvmsg: Operation not permitted".
I do not find any information about this error message.

Does anybody have an idea what causes this sudden problem?

Thanks you!

Last edited by ruffy (2021-11-10 11:39:17)

Offline

#2 2021-10-06 14:33:05

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

ip a
sudo journalctl -b

Can you obtain a lease w/ dhclient? (Stop dhcpcd before)

One obvious issue (using netctl) could be that the interface device changes w/ the dock (ie. it's not enp2s0f0 in both cases)

Offline

#3 2021-10-06 14:41:12

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

I have to try dhclient tomorrow in the office.
But as far as I remember, I did try it in September and had the same issue.

No the interface device does not change w/ the dock and it also did not change before when ethernet was working.

Last edited by ruffy (2021-10-06 15:09:33)

Offline

#4 2021-10-06 17:35:33

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: [SOLVED] Ethernet with my docking station stopped working

What does display lsusb and dmesg, when the dockingstation is pluged?

Why you doesn’t use NetworkManager?

What shows ip addr?

Offline

#5 2021-10-07 06:54:34

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

@seth: dhclient does not fix the issue.

@Morta: lsusb shows the docking station and dmesg shows no suspicious messages. Do you want to see the whole output?

I had several problems using Networkmanager in the past (it froze my whole system at that time). Thus I switchted to netctl 3 years ago and it works flawlessly.
So I wouldn't want to go back to Networkmanager.

Anyway for testing, I disabled the ifplugd service and installed and configured NetworkManager to see if I can connect with that, but I also get no connection with NM.

ip addr just shows the two interface devices wlp3s0 and enp2s0f0.
Here when I am connected to ethernet:

2: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000

Offline

#6 2021-10-07 07:20:09

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

I made an Ubuntu boot usb stick and tried if it works with that.
So with that I get easily a connection...

Offline

#7 2021-10-07 07:30:58

Morta
Member
Registered: 2019-07-07
Posts: 655

Re: [SOLVED] Ethernet with my docking station stopped working

ruffy wrote:

@seth: dhclient does not fix the issue.

@Morta: lsusb shows the docking station and dmesg shows no suspicious messages. Do you want to see the whole output?

I had several problems using Networkmanager in the past (it froze my whole system at that time). Thus I switchted to netctl 3 years ago and it works flawlessly.
So I wouldn't want to go back to Networkmanager.

Anyway for testing, I disabled the ifplugd service and installed and configured NetworkManager to see if I can connect with that, but I also get no connection with NM.

ip addr just shows the two interface devices wlp3s0 and enp2s0f0.
Here when I am connected to ethernet:

2: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000

lsusb shows something like Ethernet? dmesg | grep usb doesn't show any line with Ethernet?

A usb stick with a raw arch linux without desktop work also with the dockingstation?

Offline

#8 2021-10-07 08:14:54

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

Please post an entire system journal ("sudo journalctl -b") covering a failed docking station connection.
Do you dynamically change the firewall or does the institution around your office run a MAC filter? (Though I guess they issued both notebook and dock?)

Offline

#9 2021-10-07 13:23:22

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

Hmmm, yeah neither lsusb nor dmesg|grep usb shows anything regarding Ethernet.

It works with a raw arch linux usb stick.

Offline

#10 2021-10-07 13:31:42

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

Yes they run a MAC filter, so I don't have to change anything regarding the firewall

Offline

#11 2021-10-07 13:33:48

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

Is there a chance that the MAC changes through the dock and you'd have to spoof it?

Offline

#12 2021-10-07 13:38:31

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

Hmmm I don't think so, as I enabled the MAC passthrough option in Bios. So I suppose that the MAC adress of my laptop is used.
I can't even see a MAC adress of the docking station.

And I think that this does not happen as I can connect via ethernet with the docking station when using the Arch boot usb.

Offline

#13 2021-10-07 13:39:22

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

I did update the firmware of the docking station 2 hours ago, but the issue persists.

And I also tried a USB-C dock from a colleague, which works fine for me.

Last edited by ruffy (2021-10-07 13:39:58)

Offline

#14 2021-10-07 13:40:47

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

seth wrote:

Please post an entire system journal ("sudo journalctl -b") covering a failed docking station connection.

Offline

#15 2021-10-07 15:10:59

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

Offline

#16 2021-10-07 15:26:49

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

The forementioned error isn't even there (nor any other error):

Oct 07 15:26:26 arch dhcpcd[1434]: dhcpcd-9.4.0 starting
Oct 07 15:26:26 arch dhcpcd[1437]: DUID 00:04:15:9b:d8:4c:20:33:11:b2:a8:5c:90:86:6a:3b:ea:b9
Oct 07 15:26:26 arch dhcpcd[1437]: enp2s0f0: IAID MAC
Oct 07 15:26:26 arch dhcpcd[1437]: enp2s0f0: rebinding lease of IP
Oct 07 15:26:26 arch dhcpcd[1464]: dhcpcd-9.4.0 starting
Oct 07 15:26:26 arch dhcpcd[1467]: DUID 00:04:15:9b:d8:4c:20:33:11:b2:a8:5c:90:86:6a:3b:ea:b9
Oct 07 15:26:28 arch dhcpcd[1467]: wlp3s0: rebinding lease of 172.25.4.13
Oct 07 15:26:28 arch dhcpcd[1467]: wlp3s0: probing address 172.25.4.13/21
Oct 07 15:26:30 arch dhcpcd[1437]: enp2s0f0: probing address IP/23
Oct 07 15:26:33 arch dhcpcd[1467]: wlp3s0: leased 172.25.4.13 for 600 seconds
Oct 07 15:26:33 arch dhcpcd[1467]: wlp3s0: adding route to 172.25.0.0/21
Oct 07 15:26:33 arch dhcpcd[1467]: wlp3s0: adding default route via 172.25.7.254
Oct 07 15:26:35 arch dhcpcd[1437]: enp2s0f0: leased IP for 28800 seconds
Oct 07 15:26:35 arch dhcpcd[1437]: enp2s0f0: adding route to IP'/23
Oct 07 15:26:35 arch dhcpcd[1437]: enp2s0f0: adding default route via IP''
Oct 07 15:26:46 arch dhcpcd[1437]: enp2s0f0: carrier lost
Oct 07 15:26:46 arch dhcpcd[1437]: enp2s0f0: deleting route to IP/23
Oct 07 15:26:46 arch dhcpcd[1437]: enp2s0f0: deleting default route via IP
Oct 07 15:26:49 arch dhcpcd[1437]: enp2s0f0: carrier acquired
Oct 07 15:26:49 arch dhcpcd[1437]: enp2s0f0: IAID MAC
Oct 07 15:26:51 arch dhcpcd[1437]: enp2s0f0: rebinding lease of IP
Oct 07 15:26:55 arch dhcpcd[1437]: enp2s0f0: probing address IP/23
Oct 07 15:27:00 arch dhcpcd[1437]: enp2s0f0: leased IP for 28800 seconds
Oct 07 15:27:00 arch dhcpcd[1437]: enp2s0f0: adding route to IP'/23
Oct 07 15:27:00 arch dhcpcd[1437]: enp2s0f0: adding default route via IP''

It seems after attaching the dock your GPU acts a bit up, you connect to the wifi and then your ethernet tries to return.
Try to disable netctl-auto or remove the wifi or enforce the ethernet.

Also: Did you somehow edit this?
There's a nonsensical "IP" token in this where there should be an actual IP. In that case: don't - the IP (certainly 172.25.4.13) is in a private range and nobody can't do nothing with that.

Offline

#17 2021-10-08 06:07:55

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

Strange yes, I did not notice that this error is gone...

Ahh that's a good idea. I did not try to explicitely disable wifi. I will definitely try it in the office and report back.

Yes, I replaced the public IP as this is a bad combination with my MAC adress and the MAC filter in our institution. smile

Offline

#18 2021-10-08 07:20:53

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

Only IPv6 (the one w/ the colons) may be derived from the MAC, the IPv4 (4 numbers separated w/ a dot) is probably some number you get assigned in the private IP range ("whois 172.25.4.13" will tell you that) - you cannot infer anything from that and it's worthless outside the local subnet.

Offline

#19 2021-10-08 07:30:07

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

Yeah I understand that. But my (public) IPv4 which was in the journalctl shows in which institution I am. I know that I left the local IP in there as it's useless.

But I thought for finding the error neither my public IP nor MAC adress is important or is it?

Last edited by ruffy (2021-10-08 07:30:53)

Offline

#20 2021-10-08 07:50:09

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

No, but it likely means you'll end up w/ connections into different subnets and I don't see the default route that gets added to the wifi being deleted.

Try to disable the wifi, if that works, re-enable the wifi and try again (making it fail) and post the outputs of "ip a; ip r" - obfuscate any public IP but in a distiguishable way, eg. 123.45.67.8 and 123.45.67.9 if there're more than one

Offline

#21 2021-10-08 07:53:34

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

First of all, thank you at this point for all your help @seth!

On Monday I am again in my office, then I will try that and report here with the correct obfuscation wink

Offline

#22 2021-10-11 06:51:43

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

So as long as the LAN cable is pluged in, I do not get any connection.

Wifi disabled, but cable pluged in (no connection):

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether MAC brd ff:ff:ff:ff:ff:ff
    inet 123.456.789.200/23 brd 123.456.788.255 scope global dynamic noprefixroute enp2s0f0
       valid_lft 27994sec preferred_lft 24394sec
    inet6 MAC6/64 scope link
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether MACW brd ff:ff:ff:ff:ff:ff

$ ip r
default via 123.456.788.254 dev enp2s0f0 proto dhcp src 123.456.789.200 metric 1002
123.456.789.0/23 dev enp2s0f0 proto dhcp scope link src 123.456.789.200 metric 1002

Wifi enabled and cable pluged in (no connection):

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether MAC brd ff:ff:ff:ff:ff:ff
    inet 123.456.789.200/23 brd 123.456.788.255 scope global dynamic noprefixroute enp2s0f0
       valid_lft 27939sec preferred_lft 24339sec
    inet6 MAC6/64 scope link
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether MACW brd ff:ff:ff:ff:ff:ff
    inet 172.25.0.80/21 brd 172.25.7.255 scope global dynamic noprefixroute wlp3s0
       valid_lft 598sec preferred_lft 523sec
    inet6 MACW6/64 scope link
       valid_lft forever preferred_lft forever

$ ip r
default via 123.456.788.254 dev enp2s0f0 proto dhcp src 123.456.789.200 metric 1002
default via 172.25.7.254 dev wlp3s0 proto dhcp src 172.25.0.80 metric 3003
123.456.789.0/23 dev enp2s0f0 proto dhcp scope link src 123.456.789.200 metric 1002
172.25.0.0/21 dev wlp3s0 proto dhcp scope link src 172.25.0.80 metric 3003

Wifi enabled, but no LAN cable plugged in (connected to the internet):

$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp2s0f0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether MAC brd ff:ff:ff:ff:ff:ff
    inet6 MAC6/64 scope link
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether MACW brd ff:ff:ff:ff:ff:ff
    inet 172.25.0.80/21 brd 172.25.7.255 scope global dynamic noprefixroute wlp3s0
       valid_lft 567sec preferred_lft 492sec
    inet6 MACW6/64 scope link
       valid_lft forever preferred_lft forever

$ ip r
default via 172.25.7.254 dev wlp3s0 proto dhcp src 172.25.0.80 metric 3003
172.25.0.0/21 dev wlp3s0 proto dhcp scope link src 172.25.0.80 metric 3003

Last edited by ruffy (2021-10-11 06:52:22)

Offline

#23 2021-10-11 13:18:58

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Ethernet with my docking station stopped working

In the first case, the ethernet is up, you've a carrier, a lease and a route.
Can you then ping the gateway (decoded "123.456.788.254")?
Can you ping 8.8.8.8 (ie. an IP, in this case googles DNS)?

Otherwise you've internet via wifi, which is spoiled by the wired route taking precedent (and the wired network not working).

Offline

#24 2021-10-11 18:19:07

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

I can't ping 8.8.8.8 in the first case.
I have to try if I can ping th gateway tomorrow.

Offline

#25 2021-10-12 06:41:02

ruffy
Member
Registered: 2017-06-10
Posts: 62

Re: [SOLVED] Ethernet with my docking station stopped working

I can't ping the gateway (of course I used the correct IP)

$ ping 123.456.788.254
PING 123.456.788.254 (123.456.788.254) 56(84) bytes of data.
^C
--- 123.456.788.254 ping statistics ---
21 packets transmitted, 0 received, 100% packet loss, time 20279ms

Offline

Board footer

Powered by FluxBB