Jump to content

Set static IP in jessie server on orange pi one


isan

Recommended Posts

I want to set static IP in armbian, I edit interfaces in /etc/network as follow

 
auto lo


iface lo inet loopback
iface eth0 inet static
address 172.19.19.110
netmask 255.255.255.0
gateway 172.19.19.253
but when in terminal get ifconfig , address ,...there isn't exist and ping address is `Destination host unreachable` what am I missing??
Link to comment
Share on other sites

edit :   /etc/network/interfaces

 

# start ###
 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback
 
# The primary network interface
# allow-hotplug eth0
# iface eth0 inet dhcp
 
# Static IP address
auto eth0      # ou auto enp0s7 (see  ifconfig)
iface eth0 inet static
        address 192.168.25.3
        netmask 255.255.255.0
        gateway 192.168.25.1
 
# end ###
 
and change :   /etc/resolv.conf
 
domain domain.name
search domain.name
nameserver 8.8.8.8
nameserver 8.8.4.4
 
# for your preference
 
 
 
:)
Link to comment
Share on other sites

Hello,

 

I am trying to setup my OPI Lite wi-fi connection with no success. (OPI Lite has only WiFi connection)

I downloaded and installed Debian_jessie_default_3.4.113.

 

I have updated /etc/network/interfaces with next:

### General setup - Local loopback
auto lo
iface lo inet loopback

### General setup - WI-FI WAN Network
auto wlan0
iface wlan0 inet static
  address 192.168.100.52
  netmask 255.255.255.0
  gateway 192.168.100.1
  dns-nameservers 8.8.8.8 8.8.4.4
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 

 

I have updated /etc/wpa_supplicant/wpa_supplicant.conf with next:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="DIGI-B3ED"
        key_mgmt=WPA-PSK
        psk="P9XwDmuF"
}

 

Restarted device >> 

lo gets:

inet addr: 127.0.0.1
UP LOOPBACK RUNNING

 

wlan0 states:

UP BRODCAST RUNNING MULTICAST with NO IP address

 

When I run: sudo ifup wlan0, I get: 

wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan0  

 

Code is perfectly running on RaspberyPi2, OPI Zero but, NO OPI Lite !!

 

Please someone help !

Thank you.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines