Configure wifi with static address

From Bradnor
Revision as of 15:17, 28 September 2019 by Ch (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

⇐ Additional Configuration

Select wifi SSID to connect to
run raspi-config and set up Wifi network
sudo raspi-config
select 2. Network Options
select N2 Wifi
enter SSID and password
this will have amended the file /etc/wpa_supplicant/wpa_supplicant.conf
Enable predictable network names
Enable predictable network names in the Network Options section of raspi-config
Reboot
Run ifconfig
and note the names of the network interfaces
Make sure dhcpcd service is running
sudo service dhcpcd status
if not, run
sudo service dhcpcd start
sudo systemctl enable dhcpcd
Configure IP address
edit the file /etc/dhcpcd.conf
sudo emacs /etc/dhcpcd.conf
add similar to the following, replacing wlan0 by interface name noted from ifconfig

interface wlan0
static ip_address=192.168.192.201
static routers=192.168.192.1
static domain_name_servers=192.168.192.1