Skip to content
Home » static ip

static ip

Visit for information related to this tag and others. We look forward to assisting in your tech projects with our in-depth knowledgebase…


This guide assumes that you are running the latest version of Raspbian on your Pi. If you are not, you can follow this guide to get it setup.

How to install Raspbian on your Raspberry Pi 4

My build also uses a FAST M.2 drive instead of the slow Micro SD card:

Now that we have both those straightened out, to set a static IP is simple. Just perform the following:

Open a Terminal
sudo bash
nano /etc/dhcpcd.conf
Replace hostname with the name of the Pi, I set mine to tacticalware1
Then you will want to
uncomment the following lines and set your address(to uncomment, remove the # from the beginning of them)
#interface eth0
#static ip_address line and set the ip
#static routers line and set it
#static domain_name_servers line and set it
Note that if your local network is or use an ip scheme that matches your setup
Ctrl x to save
Press Enter
nano /etc/hostname
Make sure you set it to tacticalware1 or whatever your pi’s name is
ctrl x
nano /etc/hosts
make sure tacticalware1 is listed in there as well at the bottom of the file, next to
ctrl x to save

Your system will now reboot and your static ip address will now be in effect.

Hardware that I used:
Raspberry Pi 4 (4gb)

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet

Western Digital 500GB WD_Black SN750 NVMe

Plugable USB C to M.2 NVMe Tool-free Enclosure

Thanks for reading…….