Configure wifi with static address
Jump to navigation
Jump to search
- 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
- sudo raspi-config
- 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