Static IP address

Hello,

Is it possible to assign a static IP address to Gladys?
I have several Raspberry Pis to which I assigned addresses between 192.168.1.170 and 192.168.1.179
How do I do that?

Thank you

Hello,

It all depends on your router; in my case the address is fixed once the Raspberry Pi is configured. If you reconfigure it, it changes again (I’m talking about a complete OS installation).

Otherwise you need to check your internet box/router configuration to see if it’s possible to do.

Hi!
You can also connect to the RPi via SSH to assign it a static IP. Very detailed article here

Hello,
Thanks for the replies
For my other Pis I followed the following instructions:
Static IP
I was wondering if that would apply to Gladys!
:wink:

@GBoulvin
I tried your article and it works!
My Pi has a static IP address :slightly_smiling_face:

1 Like

Good evening @GBoulvin
Does it work with a Beelink, the fixed IP via Ssh

Hello!

No, the method is different. I’m not even sure if it’s still up-to-date! Here’s the procedure, written by Gemini and tested on my Beelink with Ubuntu:

  1. Identify the network interface: Use the command ip a to find the name of your card (e.g., eth0, enp3s0).
  2. Edit the Netplan configuration:

sudo nano /etc/netplan/*.yaml

  1. Modify the file (adapt the interface and IPs):
network:

  version: 2

  renderer: networkd

  ethernets:

    enp3s0: # Replace with your interface

      dhcp4: no

      addresses:

        - 192.168.1.100/24 # Desired static IP

      routes:

        - to: default

          via: 192.168.1.1 # Gateway

      nameservers:

        addresses: 8.8.8.8 # DNS
  1. Apply the configuration: sudo netplan apply

  2. To verify that the new address is correctly applied: ip a