Static IP settings

Just about everything about Red Pitaya
Post Reply
billly
Posts: 2
Joined: Mon Dec 29, 2014 2:37 pm

Static IP settings

Post by billly » Sat Jun 11, 2016 9:09 pm

Hi all
i m using ed pitaya with the latest firmware ( downloaded 2 June 2016).
How can i change the IP configuration to use a static IP? There are many forum posts but they refer to older versions of the firmware i guess. I see directory names that do not exist now.
To concluse, i have asked my network admin to allocate me an IP, i tried to change the configuration file to use static IP but red pitaya is not on my network.
Checked with the serial terminal and the IP is sill 192.68.1.100
Many thanks in advance

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

Re: Static IP settings

Post by Nils Roos » Sun Jun 12, 2016 8:26 am

This post is applicable for the current release. Keep in mind that you can't access the neccessary files on the sd-card in Windows (as explained later in that topic).

billly
Posts: 2
Joined: Mon Dec 29, 2014 2:37 pm

Re: Static IP settings

Post by billly » Sun Jun 12, 2016 12:49 pm

Thanks a lot for the reply.
So if i read the card in a linux machine then i ll be able to access the correct file?
Is the correct file located here /ect/network/interfaces.d/eth0 ?

Cheers

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

Re: Static IP settings

Post by Nils Roos » Sun Jun 12, 2016 1:13 pm

/etc/network/interfaces.d/eth0 , that's right.

beroche
Posts: 2
Joined: Fri Oct 16, 2015 7:08 pm

Re: Static IP settings

Post by beroche » Thu Sep 01, 2016 12:13 pm

Hi all!

I'm using the last release (v0.96-RC1-20-14_jul) and the above solution to set a static IP doesn't work anymore.

In my /etc/network folder I only have this:

Code: Select all

drwxr-xr-x  7 root root 4096 Jul 14  2016 ./
drwxr-xr-x 68 root root 4096 Jul 14 14:49 ../
drwxr-xr-x  2 root root 4096 Jul 11 15:43 if-down.d/
drwxr-xr-x  2 root root 4096 Jul 11 15:49 if-post-down.d/
drwxr-xr-x  2 root root 4096 Jul 11 15:43 if-pre-up.d/
drwxr-xr-x  2 root root 4096 Jul 11 15:49 if-up.d/
but no interfaces.d.
I tried to create it and put the eth0 file, but it still doesn't work.

Nevertheless, it works when I enter

Code: Select all

ip address replace 192.168.0.101 dev eth0
Should I put this line in a script that will be launched automatically at start-up? Somebody has a better solution?

Thanks!

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

Re: Static IP settings

Post by Nils Roos » Thu Sep 01, 2016 12:19 pm

See the answer in this topic for release 0.96 .

beroche
Posts: 2
Joined: Fri Oct 16, 2015 7:08 pm

Re: Static IP settings

Post by beroche » Fri Sep 02, 2016 9:31 am

Thanks for your help!

Timzo
Posts: 1
Joined: Tue Sep 06, 2016 8:27 am

Re: Static IP settings

Post by Timzo » Wed Sep 07, 2016 7:20 am

billly wrote:Thanks a lot for the reply.
So if i read the card in a linux machine then i ll be able to access the correct file?
Is the correct file located here /ect/network/interfaces.d/eth0 ?

Cheers
Very helpful, for some reason my ip changes quite frequently because we keep having power outages.

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 123 guests