Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Orange pi PC -- can't set a static ip

Featured Replies

Hi Everyone.  I expect I'm making a simple mistake here, but I'm pretty new to this and could use some help.  I am trying to set a static ip address on an orange pi pc running armbian Jessie 5.36.  I want a static ip to set up an nfs between multiple boards.  I've done this before on debian desktops, but this time I'm getting errors.  I have tried multiple ways (editing the /etc/network/interfaces, nmtui, nmcli) without success.

 

For simplicity, here's a version of what I'm doing.  I start with a clean install.  The Opi connects to my router fine.  I add and update all the packages I need, then use nmtui to change the name of the network connection from "Ethernet Connection 1" to "Ethernet1".  I try to set the static ip with this command:

 

nmcli con mod Ethernet1 ipv4.address 192.168.1.100 ipv4.method manual connection.autoconnect yes

 

This command does not produce any errors.  I reboot, and the static ip address does display on the boot screen and /sbin/ifconfig.  The problem is that any commands that need the network now give the error "Network is unreachable."  Route -n is not empty, so I think I have a route out, but obviously I'm missing something.  I can restore the network connection by setting the method back to automatic but as soon as I set it to manual I get this error.

 

Any ideas?

10 minutes ago, parsable said:

nmtui to change the name of the network connection from "Ethernet Connection 1" to "Ethernet1".  I try to set the static ip with this command:

 

nmcli con mod Ethernet1 ipv4.address 192.168.1.100 ipv4.method manual connection.autoconnect yes

 

The problem is that any commands that need the network now give the error "Network is unreachable."

Any ideas?

you got the same problem with the IP as I when using the Text-GUI of nmtui :)

For the IP add /24 to set the subnet (255.255.255.) because if you didnt append the /24 you got a subnet of 255.255.255.255 and this is only your Orange-pi :)

 

Additionally you should set a gateway!!?

How about the following?:
 

$ nmcli con mod Ethernet1 ip4 192.168.1.100/24 gw4 192.168.1.1 
$ nmcli con mod Ethernet1 ipv4.dns "8.8.8.8 8.8.4.4"

gw4 is you gateway (should be the ip address of your router)

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.