<<< Previous topic - Next topic >>> |
|
Author |
Message |
hne
Joined: 11 Jul 2008 Posts: 210 Location: Hannover
|
Posted: 28.08.2014, 10:58 Post subject: ipaddree does not work |
|
|
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:
- Replace the program ipaddree with complete set of options and make directory /etc/config nonvolatile
- Copy contents of directory /etc/config into flash:
Code: | mkdir /flash/config
cp -p /etc/config/* /flash/config/ |
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 |
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 |
Additionally set the gateway:
Code: | echo "192.168.0.1" >/flash/config/gateway |
Additionally set the DNS:
Code: | echo "192.168.0.1" >/flash/config/dns |
Reboot
Set ipaddress directly with command ifconfig.
- 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 |
Additionally set the gateway:
Code: | echo 'route add default gw 192.168.0.1' >>/flash/autostart.sh |
Additionally set the DNS:
Code: | echo 'echo 192.168.0.1 >/etc/resolv.conf' >>/flash/autostart.sh |
Reboot
_________________ Henry Nestler |
|
Back to top |
|
|
hne
Joined: 11 Jul 2008 Posts: 210 Location: Hannover
|
Posted: 18.04.2019, 09:51 Post subject: |
|
|
We wrote a script, as replacement for the old programm 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 |
|
|
|