Raspbian Buster Static IP, how to set it

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=1.1.1.1

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.

DNS

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) – 1.1.1.1
Google – 8.8.8.8, 8.8.4.4
OpenDNS (no logging of your surfing) – 208.67.222.222, 208.67.220.220

Another alternative is to install your own DNS.

If you are into .net development, check out how to install Net Core on Raspbian.

About Author

Related Posts

install net core 5 on raspberry pi

Install .net core 5 on Raspberry Pi/Raspbian

How to Install .net core 5 on Raspberry Pi (Raspbian 32 bit). At the moment of writing this, there is only a beta version of the 64…

Raspbian default password

Raspbian default password

Looking for the Raspbian default password? It is the most essential username and password that you will need for your raspberry. At least if you are running…

net core 3 raspberry pi

.net core 3.0 Raspberry Pi

Here is how to install net core 3 Raspberry Pi version. Even though Raspberry Pi on all models, has a 64bit CPU, Raspbian is only 32 bit….

Sd card size for Raspberry Pi 3

Sd card size for Raspberry Pi 3

Sd card size for raspberry pi 3 capacity wise is for normal cards 32GB. To use any SD card larger than 32GB you will need to format…

raspberry pi 3 uae

Raspberry Pi 3 UAE, emulating Amiga

Raspberry Pi 3 is a great tool for development, engineering, and games. Yes, games. You can run UAE on it to make your Raspberry pi 3 UAE…

Raspberry – Wifi on DHCP with WPA2 (AWus036H)

Raspberry Wifi Getting the Raspberry pi up and running on your wifi router has a lot of practical uses. One of the ups, is that there is…

Leave a Reply