I am trying to make static IP address on RPI 3B+ for both ethernet and Wi-Fi.
I was following this answer(How do I set up networking/WiFi/static IP address?), but still could not do it.
So far I managed to do it for ethernet, but I cannot do it for wlan0(Wi-Fi).
Moreover, when I type ifconfig
, I see only eth0
and lo
, not wlan0
.
I am using Rasbpian Buster.
When I type ip link, I get following message:
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether b8:27:eb:9a:0a:e1 brd ff:ff:ff:ff:ff:ff `
Part of /etc/dhcpcd.conf
# STATIC IP CONFIGURATION - ETHERNET
interface eth0
static ip_address=192.168.88.10/24
static routers=192.168.88.1
static domain_name_servers=192.168.88.1
# STATIC IP CONFIGURATION - WLAN
interface wlan0
static ip_address=192.168.88.200/24
static routers=192.168.88.1
static domain_name_servers=192.168.88.1
/etc/network/interfaces
source-directory /etc/network/interfaces.d
auto eth0
iface eth0 inet static
address 192.168.88.10
netmask 255.255.255.0
gateway 192.168.88.1
auto wlan0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface wlan0 inet static
address 192.168.88.200
netmask 255.255.255.0
gateway 192.168.88.1
/etc/wpa_supplicant/wpa_supplicant.conf
country=HR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSID_NAME"
psk="PASSWORD"
}
Can somebody tell me where is the problem?
ip link
to see whetherwlan0
exists. Orifconfig -a
if you prefer the legacy command. – RalfFriedl Sep 28 '19 at 12:18wlan0
is loaded, but it hasn't been brought up. You could try to bring it up manually withifup wlan0
. If it doesn't work, look at the system logs. – RalfFriedl Sep 28 '19 at 12:24When I type
ıfup wlan0
, I get following message.ifup: /etc/network/interfaces:10: misplaced option ifup: couldn't read interfaces file "/etc/network/interfaces"
– Jakov Sep 28 '19 at 12:28wpa-conf
.man interfaces
doesn't mention awpa-conf
keyword. – RalfFriedl Sep 28 '19 at 12:30/etc/network/interfaces
? **# Please note that this file is written to be used with dhcpcdFor static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'**
If you really must use static IP do it properly see How to set up Static IP Address
– Milliways Sep 29 '19 at 01:57dhcpcd
or Debian networking; Indeed it states Then follow ONE of the following methods. You have a strange combination of both, but have not followed the instructions. – Milliways Sep 30 '19 at 00:00