Important: When setting a permanent ip make sure the ip address is not in use, if the ip address is already in use by a different device in a network then it can cause conflicts. You may need to change the configuration on the other device and provide a new ip to the conflicting device.

Method 1: Set a fixed IP using your Router: These steps can vary depending on your router, kindly see the documentation or videos of your ISP and router for the steps.

Method 2: Set a fixed IP using Raspberry Pi OS :

Note: this configuration is dependent on the OS, if you uninstall or change the memory card the ip address will not remain the same.

  1. Enter the Network Manager TUI:

sudo nmtui

image

  1. In Network Manager, use Arrow Keys to scroll and Enter to make a selection.

  2. Select Edit a connection and press enter

image

  1. Select your network type and click on edit:

image

  1. Scroll down to IPv4 Configuration:

image

  1. Change the IPv4 Configuration from Automatic to Manual and then select show:

image

  1. Enter the IP Address Manually and press right arrow to move out:

image

image

  1. After entering the IP Address, enter the Default gateway (router’s ip address) and the DNS (8.8.8.8).

  2. Scroll to the bottom and select ok to save the configuration.

  3. Exit from the Network Manager and restart the Network Manager or Reboot your Raspberry pi to apply the changes:

sudo systemctl restart NetworkManager

image

sudo reboot

image