You are not logged in.

#1 2019-06-13 20:15:04

bryanhonof
Member
From: Belgium
Registered: 2019-06-13
Posts: 3
Website

[Solved] Systemd-networkd problems with USB C dongle with ethernet.

Hello,

I am on a dell xps 9560 laptop with a satechi USB C dongle which I use for ethernet.
However when I plug the dongle in networkd seems to recognize the adapter but does not manage it.

The status of systemd-netword is:

[~] λ systemctl status systemd-networkd.service
● systemd-networkd.service - Network Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-06-13 21:58:19 CEST; 3min 14s ago
     Docs: man:systemd-networkd.service(8)
 Main PID: 893 (systemd-network)
   Status: "Processing requests..."
    Tasks: 1 (limit: 4915)
   Memory: 3.0M
   CGroup: /system.slice/systemd-networkd.service
           └─893 /usr/lib/systemd/systemd-networkd

Jun 13 21:58:19 HAL systemd[1]: Started Network Service.
Jun 13 21:58:19 HAL systemd-networkd[893]: wlp2s0: Interface name change detected, wlp2s0 has been renamed to wlan0.
Jun 13 21:58:19 HAL systemd-networkd[893]: wlan0: Interface name change detected, wlan0 has been renamed to wlp2s0.
Jun 13 21:58:19 HAL systemd-networkd[893]: wlp2s0: Could not bring up interface: Invalid argument
Jun 13 21:58:20 HAL systemd-networkd[893]: eth0: Interface name change detected, eth0 has been renamed to enp62s0u1u2u1.
Jun 13 21:58:20 HAL systemd-networkd[893]: enp62s0u1u2u1: Could not bring up interface: Invalid argument
Jun 13 21:58:22 HAL systemd-networkd[893]: wlan0: Gained carrier
Jun 13 21:58:24 HAL systemd-networkd[893]: wlan0: Gained IPv6LL
Jun 13 21:58:25 HAL systemd-networkd[893]: wlan0: DHCPv4 address 192.168.0.146/24 via 192.168.0.1
Jun 13 21:58:29 HAL systemd-networkd[893]: wlan0: Configured

and networkdctl list

[~] λ networkctl list
IDX LINK             TYPE               OPERATIONAL      SETUP
  1 lo               loopback           carrier          unmanaged
  3 wlan0            wlan               routable         configured
  4 enp62s0u1u2u1    ether              no-carrier       configuring
  5 docker0          bridge             no-carrier       unmanaged

4 links listed.

The systemd-networkd .network files for both the ethernet and wireless:

[root@HAL network]# cat 20-wired.network
[Match]
Name=en*

[Network]
DHCP=yes

[DHCP]
RouteMetric=10

[root@HAL network]# cat 25-wireless.network
[Match]
Name=wl*

[Network]
DHCP=yes

[DHCP]
UseDNS=true
Anonymize=true
RouteMetric=20

When I still used networkmanager everything seemed to be working as expected but since I jumped over to systemd-networkd to give systemd a shot some thing have not been working as they are supposed to I think.
The Wi-Fi is working great however through iwd.

Thanks in advance for the help and sorry if this post is not formatted right.

Last edited by bryanhonof (2019-06-20 19:16:26)

Offline

#2 2019-06-17 04:08:20

aldyrius
Member
Registered: 2015-12-31
Posts: 39

Re: [Solved] Systemd-networkd problems with USB C dongle with ethernet.

Your netctl output shows it has "no-carrier," is anything plugged into the other end? Does anything change if you manually set the link up first, e.g:

sudo ip link set enp62s0u1u2u1 up

first, then manually restart systemd? I believe normally it's only when setting a route that the kernel requires the link to be up, but perhaps it's a link-state issue here too.

Also you can always increase verbosity of systemd logging by adding SYSTEMD_LOG_LEVEL=debug in the service stanza of the unit file (probably /usr/lib/systemd/system/systemd-networkd.service), maybe that will illuminate an intermediary problem that's not logged at the default level.

Offline

#3 2019-06-20 19:16:09

bryanhonof
Member
From: Belgium
Registered: 2019-06-13
Posts: 3
Website

Re: [Solved] Systemd-networkd problems with USB C dongle with ethernet.

@aldyrius I just checked the switch and it seems to have a broken port so that is why I got nothing. Thanks for pointing out that it said no-carrier I did not notice this.

Offline

Board footer

Powered by FluxBB