Static IP setting for RockPi eth0

Hello, I am using RockPiS and currently need to set static IP for port eth0. I tried to do according to the guide online. But I cannot find the configuration file /etc/network/interfaces , Is there any specific way to set IP on RockPi or I need to create the file to get it work?

I am using Debian Buster system and with DHCP the RockPi works well without any issue.

Thank you in advance for help!

On Armbian, Network manager is the primary tool, but you can actually also set it up via /etc/network/interface or simply use armbian-config utility -> network.

Thank you for the reply! I did a check and found the network service is missing and there is only Network Manager service. I will try to install and check again.

Hello, this is how I set up RockPiS static IP.

  1. sudo apt-get install

2.Create / etc / netplan / 01-netcfg.yaml

3.Add in / etc / netplan / 01-netcfg.yaml

version: 2
renderer: networkd
- #you want to set IP
search: [mydomain, otherdomain]
addresses: [,]

4.sudo netplan apply

then reboot

1 Like

Hi thanks a lot for your help. As we have Network Manager I tried also on this way:

nmcli con mod connection_name ifname eth0 type ethernet ip4 10.x.x.x/24 gw4 x.x.x.x
nmcli con mod connection_name ipv4.address 10.x.x.x
nmcli con mod connection_name ipv4.method manual
nmcli con mod connection_name connection.autoconnect yes
nmcli con up connection_name

And it works fine for me.