News:

The Latest electronic and computer Tips that work!

Main Menu

Static IP on WLAN0

Started by branx86, March 06, 2018, 04:27:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

Add the following to the bottom of  /etc/dhcpcd.conf 

interface wlan0
static ip_address=192.168.0.34/255.255.255.0
static routers=192.168.1.1
static domain_name_servers=8.8.8.8 8.8.4.4

or

interface wlan0   or  eth0
static ip_address=192.168.0.34/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8 8.8.4.4