Configuring a Static IP for your Raspberry Pi

Apeksha Trivedi
Oct 26, 2020

By Configuring a Static IP for Raspberry Pi, we can ensure that the Router always assigns the same IP our device.

To do this, first you have to login into your router using your browser, For most Routers the URL is http://192.168.0.1/ or http://192.168.1.1.

You will be asked for a password, make sure that you change this default password if you haven’t done it yet as it will compromise the safety of your entire network.

The interface of the routers differs from brand to brand. So there will be some difference in configuration. You may have to refer your routers manual for this. I am using a tp-link Archer C6 router. Thus, to add the static IP in my router. I need to navigate to Advance settings -> Network -> DHCP Server -> Address Reservation, here I can add the IP address of my RPi.

To find your Mac address, open Terminal / SSH to RPi and enter the following command:

ifconfig

Since I am going to be accessing the device using Wi-Fi, I will be entering the details of wlan0 in my Router settings. The format of MAC address will be as such: XX-XX–XX-XX-XX–XX

Save the settings and now restart your Rpi, It should have a constant IP address that has been configured by you.

--

--