I've been struggling with this for a couple hours. I want to set the ethernet interfaces to static ip but when i bring back the pi to my shop, i want it to connect to the wireless and get an address from the dhcp.
I've changed the /etc/network/interfaces files and the static ip works good. But when i come back to the shop, the pi connects to the wifi but it cannot access the internet.... tried to ping 22.214.171.124 but it respond: From "lan static ip" : Destination host unreachable.
My interfaces file looks like this:
#interfaces(5) file used by ifup(8) and ifdown(8)
#include files from /etc/network/interfaces.d:
# The loopback network interface
iface lo inet loopback
iface enxb827eb4a3250 inet static
dns-nameservers 10.1.3.1 126.96.36.199 188.8.131.52
Am i missing something??