You are not logged in.

#1 2023-11-20 02:11:43

ThunderDohm
Member
Registered: 2023-11-20
Posts: 2

Wifi connecting but not obtaining DHCP lease

I am on a dell vostro 1720 laptop trying to get arch up and running. Wired networking is fine via networkd, but wireless is giving me trouble.

I did my best to follow the install instructions, with some help from a more knowledgeable friend. My laptop has a broadcom bcm4322, so I installed the broadcom-wl driver.

The wireless nic is set up in networkd with the following config:

30-wireless.network

[Match]
Name=wlp14s0

[Network]
DHCP=yes
IgnoreCarrierLoss=3s

The wired NIC uses the config

20-wired.network

[Match]
Name=enp8s0

[Network]
DHCP=yes

[DHCPv4]
Routemetric=100

I am using wpa_supplicant with the config

wpa_supplicant-wlp14s0.conf

ctrl_interface=/run/wpa_supplicant
update_config=1

network={
    ssid="XXXX"
    psk="XXXX!"
    mesh_fwding=1
    disabled=0
}


I seem to be connecting to my network, but not obtaining a dhcp lease. I used systemctl to try to get more info:

# systemctl status systemd-networkd

systemd-networkd.service - Network Configuration
     Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; preset: enabled)
     Active: active (running) since Sun 2023-11-19 23:10:04 UTC; 1h 48min ago
TriggeredBy: ● systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
             man:org.freedesktop.network1(5)
   Main PID: 1270 (systemd-network)
     Status: "Processing requests..."
      Tasks: 1 (limit: 4632)
   FD Store: 0 (limit: 512)
     Memory: 1.5M
        CPU: 74ms
     CGroup: /system.slice/systemd-networkd.service
             └─1270 /usr/lib/systemd/systemd-networkd


Nov 19 23:10:04 vostro1720 systemd-networkd[1270]: enp8s0: Gained IPv6LL
Nov 19 23:10:04 vostro1720 systemd-networkd[1270]: wlp14s0: Gained IPv6LL
Nov 19 23:10:04 vostro1720 systemd-networkd[1270]: Enumeration completed
Nov 19 23:10:04 vostro1720 systemd[1]: Started Network Configuration.
Nov 19 23:10:04 vostro1720 systemd-networkd[1270]: enp8s0: Configuring with /etc/systemd/network/20-wired.network.
Nov 19 23:10:19 vostro1720 systemd-networkd[1270]: wlp14s0: Lost carrier
Nov 19 23:10:28 vostro1720 systemd-networkd[1270]: wlp14s0: Connected WiFi access point: XXXX(YYYY)
Nov 19 23:10:28 vostro1720 systemd-networkd[1270]: wlp14s0: Gained carrier
Nov 19 23:14:12 vostro1720 systemd-networkd[1270]: enp8s0: Gained carrier
Nov 19 23:14:12 vostro1720 systemd-networkd[1270]: enp8s0: DHCPv4 address 192.168.2.134/24, gateway 192.168.2.1 acquired from 192.168.2.1


# systemctl status wpa_supplicant@wlp14s0
● wpa_supplicant@wlp14s0.service - WPA supplicant daemon (interface-specific version)
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant@.service; enabled; preset: disabled)
     Active: active (running) since Sun 2023-11-19 22:36:47 UTC; 3h 29min ago
   Main PID: 307 (wpa_supplicant)
      Tasks: 1 (limit: 4632)
     Memory: 5.3M
        CPU: 258ms
     CGroup: /system.slice/system-wpa_supplicant.slice/wpa_supplicant@wlp14s0.service
             └─307 /usr/bin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wlp14s0.conf -iwlp14s0

Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: Trying to associate with YYYY(SSID='XXXX' freq=2437 MHz)
Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: Associated with YYYY
Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: WPA: Key negotiation completed with YYYY [PTK=CCMP GTK=CCMP]
Nov 19 23:10:28 vostro1720 wpa_supplicant[307]: wlp14s0: CTRL-EVENT-CONNECTED - Connection to YYYY completed [id=0 id_str=]
Nov 19 23:10:39 vostro1720 wpa_supplicant[307]: wlp14s0: WPA: Group rekeying completed with YYYY [GTK=CCMP]
Nov 20 00:10:35 vostro1720 wpa_supplicant[307]: wlp14s0: WPA: Group rekeying completed with YYYY [GTK=CCMP]
Nov 20 01:10:35 vostro1720 wpa_supplicant[307]: wlp14s0: WPA: Group rekeying completed with YYYY [GTK=CCMP]

Where am i going wrong that my wireless card never obtains a ipv4 lease, or what extra info do I need?

Offline

#2 2023-11-20 14:00:48

ThunderDohm
Member
Registered: 2023-11-20
Posts: 2

Re: Wifi connecting but not obtaining DHCP lease

More info: I tried to renew the dhcp lease and found that my wireless card isn't managed by networkd

# networkctl renew wlp14s0
Failed to renew dynamic configuration of interface wlp14s0: Interface wlp14s0 is not managed by systemd-networkd

EDIT

journalctl -b -u systemd-networkd.service

showed that permissions were botched for the wifi .network file.

This fixed this issue.

Thanks to https://bbs.archlinux.org/viewtopic.php?id=265373 for pointing me to journalctl that gave me the info I needed.

Last edited by ThunderDohm (2023-11-20 14:24:55)

Offline

Board footer

Powered by FluxBB