Raspbian Buster static IP is set a little bit differently from how it was done in Raspbian Jessie. Since Raspbian Stretch the file /etc/dhcpcd.conf has been used instead of /etc/network/interfaces. To confirm this you can check how /etc/network/interfaces look. It should look like the file below.
# 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
If your /etc/network/interfaces file looks something like that, you are good to go. If it contains interface configs, you might be running an older version of Raspbian.
Set Raspbian Buster static IP
To set Raspbian Buster static IP, use your favorite text editor and open up /etc/dhcpcd.conf. Scroll down until you see the line static ip_address=. First, you need to uncomment that line (remove the # at the beginning of the line). Then edit the line with the IP you want to set. This is for the LAN port:
interface eth0 static ip_address=192.168.2.200/24 static routers=192.168.2.1 static domain_name_servers=22.214.171.124
Interface – eth0 for the LAN port, wlan0 to use the built-in WiFi.
Static ip_address – The Static IP you want to use. Make sure it is outside the DHCP range of your router to avoid IP conflicts.
Static routers – Set the IP address for your router here.
Static domain_name_servers – DNS address. In the example above I use the Cloudflare DNS. You can use the DNS you trust the most.
To use the DNS of your ISP (Internet Service Provider) type in the IP of your router. If you have your own DNS, type in that IP. If you trust Google, you can use their DNS. Here is a shortlist of available DNS for anyone to use. It can also be used if your ISP filter/blocks websites.
Some DNS you can use if you don’t trust your ISP or they are blocking some sites
Cloudflare (claim to be fastest) – 126.96.36.199
Google – 188.8.131.52, 184.108.40.206
OpenDNS (no logging of your surfing) – 220.127.116.11, 18.104.22.168
Another alternative is to install your own DNS.
If you are into .net development, check out how to install Net Core on Raspbian.