Fixed IP for Lorank8


#1

Hi,

Does anybody know how to give the Lorank8 a fixed IPaddress?


(Matthijs Kooijman) #2

I believe it runs Debian or a derived version (can't check my Lorank right now, though). If so, you would need to edit /etc/network/interfaces. See http://manpages.debian.org/cgi-bin/man.cgi?query=interfaces&apropos=0&sektion=0&manpath=Debian+7.0+wheezy&format=html&locale=en or run man interfaces on the lorank itself.


#3

Hi Matthijs,

Thank you, we've modified the /etc/network/interfaces like the example below

auto eth0
eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.0.1

but the Lorank8 doesn't get a Ip after reboot


#4

I don't have Lorank8 but i have interfaced iC880A with beagle bone black, To give static ip i have following configuration.

auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1


#5

Ok, we see it's working now but the strange thing, we can't access the gateway by ssh2


(Willem (pe1dlf)) #6

which network are you using - the lorank has 192.168.1.1, but the gateway has 192.168.0.1 they are in different networks this will not work.


#7

That was an example config. I'ts working now:

http://thethingsnetwork.org/api/v0/gateways/1DEE15A874D24644/

now we're trying to access the gateway through SSH..strange thing we don't see the ipaddress with a scanner


(Willem (pe1dlf)) #8

can you ping the lorank8 - when it has a static address you know the ip, so why do scan ? what error message do you get when you try to connect, it might the client detects a conflict due to the changing ip address and refuses to connect ??


#9

Nope, we can't ping, gateway has an ipaddress, gateway is online, I can send a message with my mote:

http://thethingsnetwork.org/api/v0/nodes/02013B03/


(Willem (pe1dlf)) #10

Look here for instructions to get access using the USB port - this should give you access to the lorank8 and see what's happening. Use ssh 192.168.7.2 to logon ...

ps: use the method for getting access only - do not install new images to the lorank8


#11

Thank you, that's exactly what I was looking for!


(Willem (pe1dlf)) #12

Good - please share with us how to set a fixed ip address for the LORANK8 - It looks to be slightly different depending on the flavour of DEBIAN used.


(Vanthome) #13

@ffwall I'm trying to interface with a BBB as well but can't seem to get it to work.
I have wired up everything correctly to SPI1 (/dev/spidev1.0) but I can't get the concentrator started.
I chose lorank as platform when I compiled the libloragw.
Also I made sure, the concentrator gets the Reset sequence.
Did you apply other special tweaks?


(Tim van Dam) #14

Use conman on the latest Lorank versions. Works great.


#15

I missed this post but if this can help; these are the "static IP address" adjustments in /etc/network/interfaces, for the Lorank 8.


(Vanthome) #16

Hi, no that is not my issue. I meanwhile found out that it works for the Lorank because it uses Kernel 3.8.x with this Kernel, it works also for me. Can you check what Kernel version you are using?


#17

@Vanthome, my previous post was an answer for w4e :relaxed:

But FYI, the Lorank 8 has kernel: 3.8.13-bone71.1

Kind regards,
Marco


(Vanthome) #18

@IoT_Marco ok, many thanks, that confirmes my tests. I can therefore not suggest you to upgrade it to any greater major release as it won't work after that.


(Kazi93) #19

Anyone knows a solution for this ? My internal network is static and I cannot see any hope. Waiting for your prompt reply. Many thanks in advance.


(Timminater) #20

I’m using a Lorank8 with fixed IP myself.

Connect Lorank8 with USB
Connect ethernet Cable (may need a temporary DHCP server)
Use putty to connect to the Lorank8

use command:
$connmanctl services

Take note of the interface you want to modify, the general format for a wired connection is ethernet_<MAC_ADDR>_cable

use command:
$connmanctl config <INTERFACE_HERE> --ipv4 manual

example:
$connmanctl config ethernet_9cebe80f52b4_cable --ipv4 manual 192.168.0.199 255.255.255.0 192.168.0.1

hope that helps