This guide assumes you have sudo access on your Raspberry Pi and are comfortable using the terminal.
PhoenixNAP Guide
We created this guide based on the one here! Click here if you want more detailed info.
Open a Terminal Window on the Raspberry Pi
If you’re connected directly to your Raspberry Pi with a monitor and keyboard, you can open the terminal by clicking on the terminal icon or pressingCtrl + Alt + T.
If you’re connected via SSH, you are already in a terminal session.
SSH Instructions
SSH Guide for your Raspberry Pi.
Determine Network Interface and Current IP
Identify Your Interface
Look for the interface you are using (e.g.,
eth0 for wired connection or wlan0 for wireless). Note down the interface name.Edit the dhcpcd Configuration File
Add Static IP Configuration
Scroll to the end of the file and add the following lines, replacing the placeholders with your actual network details:
BlueOS Example:
Restart the Raspberry Pi
Restart your Raspberry Pi to apply the changes:Verify the Static IP Configuration
After rebooting, open the terminal on the Raspberry Pi and run:If you are unable to connect to your Raspberry Pi after setting a static IP, ensure that the IP address is within your network’s range and does not conflict with other devices.