Hi all,
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 8.8.8.8 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:
source-directory /etc/network/interfaces.d
# The loopback network interface
auto lo
iface lo inet loopback
auto enxb827eb4a3250
iface enxb827eb4a3250 inet static
address 10.1.3.50
netmask 255.255.255.0
gateway 10.1.3.1
dns-nameservers 10.1.3.1 8.8.8.8 8.8.4.4
Am i missing something??
Thanks!