Two Wifi Networks


#1

Is it possable to set two Wifi details.

I work aways from home and take my Printer with me . Can i setup the details for both Wifi network in the config file..

Thanks

Paul


#2

Yep. Just make sure you either play around with a way to obtain the IP address, or statically assigning them. But I push this type of config out to my Pi's so I can move between networks.
In the /boot/octopi-wpa-supplicant.txt file, just start adding in your wifi networks.
Just don't forget to update the country code, and adjust settings as needed. (Scan I think is for hidden networks)

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

# Home
network={
 ssid="SSID-One"
 scan_ssid=1
 proto=WPA RSN
 key_mgmt=WPA-PSK
 pairwise=CCMP TKIP
 group=CCMP TKIP
 psk="password"
}

# Work
network={
 ssid="SSID-Two"
 scan_ssid=1
 proto=WPA RSN
 key_mgmt=WPA-PSK
 pairwise=CCMP TKIP
 group=CCMP TKIP
 psk="password"
}

#3

Thanks Dan .

I really should of know this to be true..