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
.