TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
ipaddree does not work

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
hne



Joined: 11 Jul 2008
Posts: 210
Location: Hannover

PostPosted: 28.08.2014, 10:58    Post subject: ipaddree does not work Reply with quote

Question from Support:
ipadree was use to set ipaddress, but on boot it prints an error
Code:
ipaddree info: No IP configuration in EEPROM

ipadree tries directly access on flash chip, that not works in all state of the flash state machine.
You have two options now:
  1. Replace the program ipaddree with complete set of options and make directory /etc/config nonvolatile

    1. Copy contents of directory /etc/config into flash:
      Code:
      mkdir /flash/config
      cp -p /etc/config/* /flash/config/

    2. Add two commands into file /flash/autoinit.sh:
      Code:
      echo 'rm -rf /etc/config' >>/flash/autoinit.sh
      echo 'ln -s /flash/config /etc/config' >>/flash/autoinit.sh

    3. Change files, for example:
      Code:
      echo "192.168.0.126" >/flash/config/ipaddr
      echo "255.255.255.0" >/flash/config/netmask
      echo "192.168.0.255" >/flash/config/broadcast

    4. Additionally set the gateway:
      Code:
      echo "192.168.0.1" >/flash/config/gateway

    5. Additionally set the DNS:
      Code:
      echo "192.168.0.1" >/flash/config/dns

    6. Reboot

  2. Set ipaddress directly with command ifconfig.

    1. Create a file /flash/autostart.sh and set your address.
      Code:
      echo "ifconfig eth0 192.168.0.126 netmask 255.255.255.0" >>/flashautostart.sh

    2. Additionally set the gateway:
      Code:
      echo 'route add default gw 192.168.0.1' >>/flash/autostart.sh

    3. Additionally set the DNS:
      Code:
      echo 'echo 192.168.0.1 >/etc/resolv.conf' >>/flash/autostart.sh

    4. Reboot


_________________
Henry Nestler
Back to top
View user's profile Send private message Visit poster's website
hne



Joined: 11 Jul 2008
Posts: 210
Location: Hannover

PostPosted: 18.04.2019, 09:51    Post subject: Reply with quote

We wrote a script, as replacement for the old programm ipaddree
.
  • Please download the sript from here:
    http://www.ssv-comm.de/forum/dokumente/ipaddree-v1.4.zip
  • Store the file ipaddree under /flash/ipaddree
  • Check that the file has size of exactly 5499 bytes
  • Create or add this line to file /flash/autoinit.sh
    Code:
    sh /flash/ipaddree

  • Sync and reboot the DNP/9200

View into head of script for more informations.

If you wich to update your own Image, then simply replace the file /sbin/ipaddree with this version of script.
_________________
Henry Nestler
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015