Search This Blog

Tuesday, 29 August 2017

Raspbian scratch wlan static IP configuration

After LOTs of reading, getting my Pi A+ onto a static IP was actually straightforward.  From a clean scratch lite install (i.e. NOT a jessie upgrade).

Get this thing working using DHCP:

network={
    ssid="MySSID"
    psk="pa$$word"
}
reboot

use $ ip link show to check what the interface is called.  Mine was wlan0

Consider using a DHCP reservation on the DHCP server.  This is a problem if you're running an ASA as your DHCP server as it doesn't appear to support this...

Edit the DHCP Client Daemon config to force a static address:

interface wlan0
static ip_address=192.168.1.123/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
192.168.1.1 is the gateway address of my inside segment

reboot


There's a great thread about this here



Also, you may need to enable SSH for scratch.  This worked for me:

sudo touch /boot/ssh

No comments:

Post a Comment