I'm trying to add an additional network to a Raspberry Pi 4 running Buster that I use on my home network that I am travelling with. The location I am staying in appears to have Wifi delivered via a wifi extender so I don't have access to the router itself, just the network ID and password and the actual device itself in the rental unit. I have attempted to add another network the wpa_supplicant.conf
file as well as adding an IP address I think is free (based on the IP's my phone and laptop take up). The issue is that a network scan doesn't show the Pi on the network and I can't ssh into the Pi either on it's previous or the new static IP. I have edited the wpa_supplicant using ubuntu on WSL, and the cmdline.txt via Windows notepad. The network itself appears to be broadcasting 5G and the device is in the same room as the network extender less than 5 meters away, so I don't think bandwidth or distance are a factor.
What I'm not sure about is if either of these methods are appropriate to update the settings, and or if the issue has to do with a network configuration I don't have access to, but I think that with the correct password and SSID.
Update:
Addressing questions in the comments:
- I modified both the wpa_supplicant.conf and cmdline.txt files through different processes because I thought that my issue might be with my previously setting of static IP on my home network. This was a trying everything till something worked process.
- I chose to set a static IP for my own ease of use, to avoid updating ssh commands and other IP based configurations when the Pi is turned off. If there's a more efficient way of achieving this, I'm very happy to learn it.
- I don't currently have a way to interface with the Pi besides modifying the SD card and I don't want to reimage the SD to preserve it's current software set up.
My current wpa_supplicant.conf
looks like this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=de
network={
scan_ssid=1
ssid="mynetwork1"
psk="mypass"
id_str="home"
}
network={
scan_ssid=1
ssid="mynetwork2"
psk="mypass2"
id_str="airbnb_kirch"
}
I've double checked the SSID and passwords, so besides a potential conflict with the network bandwidth I'm not sure where my problem could be. My Pi is a Pi 4, so I don't think the network band is the issue.
cmdline.txt
? and why did you use notepad in windows? and why would the pi need a static IP if your phone and laptop both manage to get an IP without having a static one configured? – Jaromanda X Nov 08 '22 at 22:33scan_ssid=1
andid_str
? What permission doeswpa_supplicant.conf
have? How do you know it isn't working - you have posted no diagnostics? Have you tried removing whatever (unspecified) thing you did to set "new static IP"? – Milliways Nov 12 '22 at 01:00