Raspberry Pi / Linux – Set fixed IP address

How do I set up a fixed IP address on the Raspberry Pi? How to set a fixed IP address on a Revolution Pi.

We edit the configuration file:

sudo vim /etc/dhcpcd.conf

Optionally, of course, “nano” or another editor can be used.

Now insert the static IP address configuration here:

interface eth0
static ip_address=192.168.0.22/24
static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.0.1
static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1

Done! After a reboot the IP address is fixed.

Leave a Reply

Your email address will not be published. Required fields are marked *