A Raspberry Pi 3B+ is configured
- with Raspbian
- with a working wifi: pinned to a static LAN IP address
Per the procedure: a static IP 192.168.42.42 assigned to the rPi's USB0 interface. Append:
iface usb0 inet static address 192.168.42.42 netmask 255.255.255.0 network 192.168.42.0 broadcast 192.168.42.255
to the file:
sudo nano /etc/network/interfaces
then save and exit (ctrl-X, Y).
After reboot, the rPi is not connected to wifi. ifconfig does not return a a wifi interface. The wifi's MAC address is pinned to a LAN IP address via DHCP Reservation: pinging the LAN IP does not return a reply.
ifconfig returns only lo: 127.0.0.1(loopback)
- What is the procedure & command to test that USB0 is successfully assigned 192.168.42.42?
- Is it not possible to have wifi configured with DHCP and USB0 configured with a static LAN IP simultaneously?
- Why did configuring USB0 with a static IP remove the wifi interface? How to enable both static usb0 and DHCP wifi?
Observation: I commented-out the static IP assignments and rebooting the rPi => wifi restored.
Although I would like to eventually be able to perform the exercise with Apple devices, I intend to start with Android phones to display rPi output.
# interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d # #iface usb0 inet static #address 192.168.42.42 #netmask 255.255.255.0 #network 192.168.42.0 #broadcast 192.168.42.25#