Static IP adress / offline operation of RP

Applications, development tools, FPGA, C, WEB
schaeds
Posts: 10
Joined: Thu Mar 03, 2016 10:22 am

Static IP adress / offline operation of RP

Post by schaeds » Wed Apr 20, 2016 8:13 am

Hi all

Problem 1 - set static IP adress
I am not allowed to connect the RedPitaya to the companies network. That's the reason why I connect serveral RedPitayas over a second ethernet card to my computer. On my computer I have no DHCP server installed, so I would like to set the RepPitaya to a static IP adress.

Editing sections in files have all no effect:

Code: Select all

/ect/network/config                                                       
/ect/network/interfaces                             
/ect/network/interfaces.ap 
How can I set a static IP adress?

Problem 2 - How to use Apps (Scope) without Internet connection?
When I try to start an App I get the message "Licence verification failed!". As discribed, the RedPitayas have no internet connection (connected over local network). Is it not possible to use them offline? Within company networks, it's not possible to connect the Redpitayas to the internet.

Info: Using OS release 0.95

Kind regards
Stefan

jerzydziewierz
Posts: 31
Joined: Mon Mar 28, 2016 1:10 pm

Re: Static IP adress / offline operation of RP

Post by jerzydziewierz » Thu Apr 21, 2016 7:25 am

Similar question here,
I do not have facebook, is there any other way of activating the oscilloscope application? (that is, when there is no facebook) ?

jgroves
Posts: 40
Joined: Mon Nov 09, 2015 4:07 pm
Location: East Yorkshire, UK

Re: Static IP adress / offline operation of RP

Post by jgroves » Thu Apr 21, 2016 7:40 am

Hi Stefan,

I changed the file called eth0 in the directory /etc/network/networks.d

In the file I put:

Code: Select all

#auto eth0
#	iface eth0 inet dhcp

auto eth0
	iface eth0 inet static
	address 192.168.137.40
	netmask 255.255.255.0
	network 192.168.137.0
	broadcast 192.168.137.255
	gateway 192.168.137.1
	dns-nameservers 192.168.137.1
This worked for me.

Kind Regards,

Julian.

jgroves
Posts: 40
Joined: Mon Nov 09, 2015 4:07 pm
Location: East Yorkshire, UK

Re: Static IP adress / offline operation of RP

Post by jgroves » Thu Apr 21, 2016 7:43 am

Hi Stefan,

In regards to problem 2:

RP does not have a RTC.

It looks for a NTP server at boot time to set the clock. If none found it sets clock to default.

In this case the licence becomes invalid.


Kind Regards,


Julian.

jerzydziewierz
Posts: 31
Joined: Mon Mar 28, 2016 1:10 pm

Re: Static IP adress / offline operation of RP

Post by jerzydziewierz » Thu Apr 21, 2016 7:50 am

Hi Julian,
so, do I understand correctly that there is no way to activate the oscilloscope and other tools without internet?

williolic
Posts: 3
Joined: Wed Apr 20, 2016 11:34 am

Re: Static IP adress / offline operation of RP

Post by williolic » Thu Apr 21, 2016 9:53 am

Hi,

I have the same problem.
I found something in the FAQs. Maybe this could help...
look at http://redpitaya.com/faq-page/ -> Applications -> Manually downloading and installing free applications

Kind regards
Oli

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Static IP adress / offline operation of RP

Post by Nils Roos » Thu Apr 21, 2016 10:57 am

jerzydziewierz wrote:Hi Julian,
so, do I understand correctly that there is no way to activate the oscilloscope and other tools without internet?
You can manually set the clock of the Red Pitaya after boot. It should then be possible to use an already installed license without internet connection.

schaeds
Posts: 10
Joined: Thu Mar 03, 2016 10:22 am

Re: Static IP adress / offline operation of RP

Post by schaeds » Thu Apr 21, 2016 1:41 pm

jgroves wrote: I changed the file called eth0 in the directory /etc/network/networks.d
Hi Julian

thanks for your help!! Unfortunately this solution didn't work for me.
I flashed a brandnew image to the SD card and all files I see on the SD card in /etc/ are:

Code: Select all

/etc/network/config
/etc/network/dnsmasq.conf
/etc/network/interfaces
/etc/network/interfaces.ap
Setting the configuration in this files has no effect. Your mentioned file /etc/network/networks.d/eth0 does not exists.. And if I create it, it has also no effect. Did I something wrong?

Thanks a lot!
Regards
Stefan

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Static IP adress / offline operation of RP

Post by Nils Roos » Thu Apr 21, 2016 1:52 pm

You are looking in the wrong partition. The first partition (fat32) is mounted in /opt/redpitaya/ at runtime. The folder /etc/network/networks.d/ is on the second partition (ext4) which will be mounted at / when the Red Pitaya is running. This partition is not accessible to windows OSs, because they don't have driver support for the ext4 filesystem.

schaeds
Posts: 10
Joined: Thu Mar 03, 2016 10:22 am

Re: Static IP adress / offline operation of RP

Post by schaeds » Fri Apr 22, 2016 1:10 pm

Nils Roos wrote:You are looking in the wrong partition. The first partition (fat32) is mounted in /opt/redpitaya/ at runtime. The folder /etc/network/networks.d/ is on the second partition (ext4) which will be mounted at / when the Red Pitaya is running. This partition is not accessible to windows OSs, because they don't have driver support for the ext4 filesystem.
Ok, thanks to all.. Finally I got it :-)..
I prepared the SD card under windows, that's the reason why I havn't seen the second partition..

But the file I modified for static IP was called /ect/network/interfaces.d/eth0

Kind regards
Stefan

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 92 guests