Hello, I have a debian 12 installed initially with DHCP and wifi. After sometime I changed to static IP the wifi config using the GUI in settings > wifi > select the SSID used > edit > IPv4 > from Automatic to Manual and set all configs.. everything works ok. Now I would like to configure the static IP with /etc/network/interfaces.. and that for what I see, the file wasn't changed by the GUI setting (the ip command shows me an 'wlo1' interface with the static IP but it doesn't appear in /etc/network/interfaces)
my current /etc/network/interfaces has this:The /etc/network/interfaces.d folder is empty. I noticed that debian is running a wpa_supplicant systemd service, but I can't see which wpa_supplicant.conf file is using (to set it on /etc/network/interfaces) and there is no /etc/wpa_supplicant/wpa_supplicant.conf file in my filesystem
the systemd wpa_supplicant service file is:The only wpa_supplicant.conf I found in my filesystem is /etc/dbus-1/system.d/wpa_supplicant.conf and it doesn't have any SSID set.. don't know much about dbus :/I have tried adding this in /etc/network/interfacesbut it breaks the internet connection. Please help
my current /etc/network/interfaces has this:
Code:
#/etc/network/interfacessource /etc/network/interfaces.d/*auto loiface lo inet loopback
the systemd wpa_supplicant service file is:
Code:
#/lib/systemd/system/wpa_supplicant.service[Unit]Description=WPA supplicantBefore=network.targetAfter=dbus.serviceWants=network.targetIgnoreOnIsolate=true[Service]Type=dbusBusName=fi.w1.wpa_supplicant1ExecStart=/sbin/wpa_supplicant -u -s -O "DIR=/run/wpa_supplicant GROUP=netdev"ExecReload=/bin/kill -HUP $MAINPIDGroup=netdevRuntimeDirectory=wpa_supplicantRuntimeDirectoryMode=0750[Install]WantedBy=multi-user.targetAlias=dbus-fi.w1.wpa_supplicant1.service
Code:
#/etc/dbus-1/system.d/wpa_supplicant.conf<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"><busconfig> <policy user="root"> <allow own="fi.w1.wpa_supplicant1"/> <allow send_destination="fi.w1.wpa_supplicant1"/> <allow send_interface="fi.w1.wpa_supplicant1"/> <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/> </policy> <policy group="netdev"> <allow send_destination="fi.w1.wpa_supplicant1"/> <allow send_interface="fi.w1.wpa_supplicant1"/> <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/> </policy> <policy context="default"> <deny own="fi.w1.wpa_supplicant1"/> <deny send_destination="fi.w1.wpa_supplicant1"/> <deny receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/> </policy></busconfig>
Code:
auto wlo1iface wlo1 inet static address x.x.x.x netmask x.x.x.x gateway x.x.x.x dns-nameservers x.x.x.x x.x.x.x wpa-ssid xxxxx wpa-psk xxxxx
Statistics: Posted by javax6 — 2025-01-10 13:29 — Replies 3 — Views 94