The network manager of Buster is working (by default) with /etc/dhcpcd.conf
. Therefore, change the configuration that file as you want.
sudo nano /etc/dhcpcd.conf
Change these lines as you want:
# static IP configuration:
interface eth0
static ip_address=192.168.205.159/24
#static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.205.1
static domain_name_servers=192.168.1.251
# It is possible to fall back to a static IP if DHCP fails:
# define static profile
#profile static_eth0
#static ip_address=192.168.1.23/24
#static routers=192.168.1.1
#static domain_name_servers=192.168.1.1
# fallback to static profile on eth0
#interface eth0
#fallback static_eth0
Then, recover the /etc/network/interfaces
by adding these lines:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
Also, you have configured the /etc/network/interfaces
in the wrong way. If you're going to set the IP address on 192.168.205.159
with 255.255.255.0
subnet, you can't set a gateway with 192.168.0.1
address if you are using a simple local network. The gateway should be something 192.168.205.x
.
/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 In addition the values you are attempting to use are inconsistent. There is little reason to set a static IP (particularly if you don't understand networking)
– Milliways Jan 30 '20 at 10:00/etc/dhcpcd.conf
on a fresh flashed Raspbian Buster installation? – Ingo Mar 03 '20 at 21:14