

How to set up a static local IP for Raspberry Pi 2 Model B
source link: https://isaacjordan.me/blog/2015/10/set-up-static-ip-for-raspberry-pi-2/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I was looking into setting up my Raspberry Pi 2 to be available as a VPN for when I'm away from home, and as I was going through tutorials I found that my Raspberry Pi would need to be on a static IP so that it can always be found in the same location.
Many tutorials went through a lot of different in-depth steps to set this up, such as this ReadWrite one. I came across a much easier method!
Step 1
First, you still need to find out what DHCP ports your router is using (these are the ports that are assigned to new devices when they connect to the network). Your Raspberry Pi will be on an IP outside of that range, so that a new device never gets assigned it.
When I logged into my router settings, I found that my router assigns IPs in the range 192.168.1.100 to 192.168.1.255, so I decided that my Raspberry Pi will live on 192.168.1.50.
Step 2
Next, I boot your Pi into Raspbian OS, and right-click on the connection button on the top right (would look like a WiFi symbol if you're on WiFi, or a cable on ethernet), and click on "WiFi Networks (dhcpcdui) Settings".
This will bring up a new window that says 'Configure: interface' by default. Click on the drop-down to right of that and select 'eth0' to configure ethernet connections, or 'wlan0' for WiFi.
In the IP Address field, put in your chosen IP (remembering it has to be one outside of the DHCP range). Click Apply.
Step 3
Next, restart your Raspberry Pi and it should be available on the chosen IP forever! Congratulations.
Thanks for reading!
Recommend
-
53
The next major version release of the C# language (C# 8) comes with exciting new features. Let's look at two new features in C# 8, static local functions and the using declaration. In this post, we'll explore the...
-
7
Set a static IP in VeeamPN appliance Twitter 0 Facebook 0 LinkedIn 0 Email --
-
7
How to give your Raspberry Pi a Static IP Address - UPDATE Jul 16, 2014
-
11
Local Testing with Azure Static Web Apps (#213)58 views•Jun 7, 2021 ...
-
9
Set up a custom 404 page for static sites with Caddy 2 ...
-
13
Set up a static IP address on Ubuntu 18.04 LTS server ...
-
11
Raspberry Pi, Static HTTPS site with Docker and Nginx This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date. This is a guide on setting up a static HTTPS website on your raspb...
-
6
ASP.NET DocumentEditor In recent versions, the static files path had to be defined for all routes in where the editor is used. In version 30.0, a new property has been introduced to define the static files path once for all rout...
-
5
How Do I Set a Static IP Address on Raspberry Pi? By Phil King Updated 13 hours ago
-
11
Set a static IP address with nmtui on Raspberry Pi OS 12 'Bookworm' Ma...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK