Skip to content

Instantly share code, notes, and snippets.

@AramZS
Created February 10, 2018 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AramZS/4ecf9c7ec9493ffb72798040a6ba4416 to your computer and use it in GitHub Desktop.
Save AramZS/4ecf9c7ec9493ffb72798040a6ba4416 to your computer and use it in GitHub Desktop.
local access plus wifi access to raspberrypi0
# 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
allow-hotplug usb0
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255
gateway 192.168.7.1
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment