Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dietpi-Config] Unable to connect to wifi with Static IP. #7423

Open
Maggus101 opened this issue Feb 22, 2025 · 0 comments
Open

[Dietpi-Config] Unable to connect to wifi with Static IP. #7423

Maggus101 opened this issue Feb 22, 2025 · 0 comments

Comments

@Maggus101
Copy link

Creating a bug report/issue

  • [Y] I have searched the existing open and closed issues

Required Information

  • DietPi version | 9
  • Distro version | bullseye 0
  • Kernel version | Linux --- 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
  • SBC model | RPi 3 Model B (armv7l)
  • Power supply used | Official Rasp PSU
  • SD card used | Sandisk

Additional Information (if applicable)

  • Software title | dietpi-config
  • Can this issue be replicated on a fresh installation of DietPi?
  • Bug report ID | 8a3c9c74-cc9d-45e9-8fe5-f20d84f77235

Steps to reproduce

  1. sudo dietpi-config > Network Options: Adapters > Wifi > Static > Fillout correct network info > Apply
Feb 22 13:02:55 Helgen systemd[1]: Starting ifup for wlan0...
Feb 22 13:02:55 Helgen wpa_supplicant[16815]: Successfully initialized wpa_supplicant
Feb 22 13:02:55 Helgen ifup[16823]: RTNETLINK answers: File exists
Feb 22 13:02:55 Helgen ifup[16801]: ifup: failed to bring up wlan0
Feb 22 13:02:55 Helgen systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Feb 22 13:02:55 Helgen wpa_supplicant[16820]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-512 retry=1
Feb 22 13:02:55 Helgen wpa_supplicant[16820]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
Feb 22 13:02:55 Helgen wpa_supplicant[16820]: p2p-dev-wlan0: CTRL-EVENT-TERMINATING
Feb 22 13:02:55 Helgen wpa_supplicant[16820]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Job for [email protected] failed because the control process exited with error code.
See "systemctl status [email protected]" and "journalctl -xe" for details.
[FAILED] DietPi-Config | systemctl restart ifup@wlan0

Expected behaviour

  • Connect to wifi

Actual behaviour

  • Not connecting

Extra details

It will connect via DHCP

-- Journal begins at Sat 2025-02-22 12:24:58 GMT. --
Feb 22 13:12:14 Helgen systemd[1]: Stopping ifup for eth0...
[  OK  ] DietPi-Config | systemctl restart ifup@eth0
[ INFO ] DietPi-Config | systemctl restart ifup@wlan0, please wait...
-- Journal begins at Sat 2025-02-22 12:24:58 GMT. --
Feb 22 13:12:14 Helgen systemd[1]: Starting ifup for wlan0...
Feb 22 13:12:14 Helgen wpa_supplicant[19907]: Successfully initialized wpa_supplicant
Feb 22 13:12:14 Helgen dhclient[19915]: Internet Systems Consortium DHCP Client 4.4.1
Feb 22 13:12:14 Helgen ifup[19915]: Internet Systems Consortium DHCP Client 4.4.1
Feb 22 13:12:14 Helgen ifup[19915]: Copyright 2004-2018 Internet Systems Consortium.
Feb 22 13:12:14 Helgen ifup[19915]: All rights reserved.
Feb 22 13:12:14 Helgen ifup[19915]: For info, please visit https://www.isc.org/software/dhcp/
Feb 22 13:12:14 Helgen dhclient[19915]: Copyright 2004-2018 Internet Systems Consortium.
Feb 22 13:12:14 Helgen dhclient[19915]: All rights reserved.
Feb 22 13:12:14 Helgen dhclient[19915]: For info, please visit https://www.isc.org/software/dhcp/
Feb 22 13:12:14 Helgen dhclient[19915]:
Feb 22 13:12:14 Helgen dhclient[19915]: Listening on LPF/wlan0/b8:27:eb:45:e0:46
Feb 22 13:12:14 Helgen ifup[19915]: Listening on LPF/wlan0/b8:27:eb:45:e0:46
Feb 22 13:12:14 Helgen ifup[19915]: Sending on   LPF/wlan0/b8:27:eb:45:e0:46
Feb 22 13:12:14 Helgen ifup[19915]: Sending on   Socket/fallback
Feb 22 13:12:14 Helgen ifup[19915]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
Feb 22 13:12:14 Helgen dhclient[19915]: Sending on   LPF/wlan0/b8:27:eb:45:e0:46
Feb 22 13:12:14 Helgen dhclient[19915]: Sending on   Socket/fallback
Feb 22 13:12:14 Helgen dhclient[19915]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
Feb 22 13:12:15 Helgen wpa_supplicant[19910]: wlan0: Trying to associate with SSID 'A Link Between Worlds_iot'
Feb 22 13:12:15 Helgen wpa_supplicant[19910]: wlan0: Associated with fa:a7:31:ca:9c:ad
Feb 22 13:12:15 Helgen wpa_supplicant[19910]: wlan0: CTRL-EVENT-CONNECTED - Connection to fa:a7:31:ca:9c:ad completed [id=0 id_str=]
Feb 22 13:12:15 Helgen wpa_supplicant[19910]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Feb 22 13:12:15 Helgen wpa_supplicant[19910]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=DE
[  OK  ] DietPi-Config | systemctl restart ifup@wlan0

sudo ifup wlan0
RTNETLINK answers: File exists
ifup: failed to bring up wlan0
cat /etc/network/interfaces
# WiFi
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.160
netmask 255.255.255.0
gateway 192.168.1.254
#dns-nameservers 192.168.1.254
pre-up iw dev wlan0 set power_save off
post-down iw dev wlan0 set power_save on
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

sudo journalctl -u ifup@wlan0
Feb 22 13:02:55  systemd[1]: Starting ifup for wlan0...
Feb 22 13:02:55  wpa_supplicant[16815]: Successfully initialized wpa_supplicant
Feb 22 13:02:55  ifup[16823]: RTNETLINK answers: File exists
Feb 22 13:02:55  ifup[16801]: ifup: failed to bring up wlan0
Feb 22 13:02:55  systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Feb 22 13:02:55  wpa_supplicant[16820]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-512 retry=1
Feb 22 13:02:55  wpa_supplicant[16820]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
Feb 22 13:02:55  wpa_supplicant[16820]: p2p-dev-wlan0: CTRL-EVENT-TERMINATING
Feb 22 13:02:55  wpa_supplicant[16820]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Feb 22 13:02:56  wpa_supplicant[16820]: wlan0: CTRL-EVENT-TERMINATING
Feb 22 13:02:56  systemd[1]: [email protected]: Failed with result 'exit-code'.
Feb 22 13:02:56  systemd[1]: Failed to start ifup for wlan0.
dpkg -l | grep dhcp
ii  isc-dhcp-client              4.4.1-2.3+deb11u2                armhf        DHCP client for automatically obtaining an IP address

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant