Returns default ip after reboot

Joined
Mar 17, 2017
Messages
1
Reaction score
0
Location
Brazil
Hello!
I have a HI5318c IPC that returns i default IP 192.168.1.10 when it restarts.
My network is 192.168.25.254 and I can not change it.
I accessed TELNET and changed via #netinit and #ifconfig, but it returns the initial settings every time it reboots.
Use the command echo 1> dhcp.cfg and says I can not save. <no space left on device>
Any suggestion? How can I replace the network and dhcp.cfg files in the linux directory of this camera?
 

alastairstevenson

Staff member
Joined
Oct 28, 2014
Messages
15,962
Reaction score
6,794
Location
Scotland
I accessed TELNET and changed via #netinit and #ifconfig,
It's likely the configuration settings will have been copied into RAM on startup.
You need to find where the permanently stored configuration data is located.
And even when you do - the file system in which they exist may be read-only (eg a cramfs partition [compressed ROM file system]) as opposed to a read-write (eg a UBIFS volume).
If UBIFS - you will be able to extract a file, edit, and replace.
If cramfs, the whole mtdblock will need to be extracted, mounted, files modified, image recreated, reflashed.
So a bit of investigation, and you might just get lucky. As presumably you haven't via any web GUI the IPC has.

At the shell prompt via telnet :
mount
will show you the file systems in use and their mount points.
df
will show you the space used and remaining
cat /proc/mtd
will show you what flash partitions are defined
ubinfo -a
will show you any UBI devices / volumes if they are used.
ls -al /etc/init.d
will give some clues about initialisation routines, such as rcS, which can be inspected to determine where running files, copied to RAM, originate.
 
Top