Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Raspberry Pi static IP wlan
###########################
# /etc/network/interfaces #
###########################
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug eth0
iface eth0 inet manual
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan1
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
###########################################
# /etc/wpa_supplicant/wpa_supplicant.conf #
###########################################
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="Network SSID"
psk="Network password"
}
###################
# /etc/dhcpc.conf #
###################
interface wlan0
static ip_address=192.168.1.10/24
static routers=192.168.1.254
static domain_name_servers=192.168.1.254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.