Static IP Address changes after 24 hours
free alternative firmware for the DLink DNS-320/320L/321/323/325/327L
Brought to you by:
jcard
New to Alt-f Flashed DNS323 Rev A1 with firmware Alt-F-0.1RC3 kernel 2.6.35.14.
Changed the host setting from DHCP to STAIC IP it works for about 24 hours and reverts back also jumbo frame value also reverts back to initial value. Running 2 X 2TB formatted to EXT4 Raid 1. Using Windows 7 Explorer 10 to configure. I've tried Clearing setting and resaving. Haven't rebooted since configured it, should I reboot? Please advise.
Thanks,
Ray
When you changed to static, did you also changed the Host IP field?
If it changed to the new IP and later reverted back to the old IP, then the 'udhcpc' client was not terminated, and at the lease end the IP was renewed by it. That also explains why the MTu was changet.
What is the output of the 'ps' command? Or use System->Utilities->View Logs, Running Processes to examine it
The state is extracted from the file /etc/network/interfaces, what is its contents? Or use System->Settings, under Computer Disk hit Download, then open the set_xxx.tgz file and examine /etc/network/interfaces.
It should contain a line such as
iface eth0 inet static
or
iface eth0 inet dhcp
A static configuration should be similar to:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
broadcast 192.168.1.255
mtu 1500
gateway 192.168.1.254
while a dynamic one should be similar to:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
client udhcpc
mtu 1500
address 192.168.1.50
hostname nas
You should not reboot if the file contains 'iface eth0 inet static' and not an 'address xx.xx.xx.xx' line.
[I have deleted your post, as the attachment contains privileged information. Change your box password!]
I have attached a pic of my status screen and the TGZ file.
In the TGZ file the interface file look right to me as you described it, it indicates static IP, but the pic will show you that the IP address has changed as if it was set to DHCP. Thanks for your help in advance.
Rainier
Here are the result of the view log running process:
Mem: 46680K used, 14752K free, 0K shrd, 9856K buff, 25556K cached
CPU: 0% usr 16% sys 0% nic 83% idle 0% io 0% irq 0% sirq
Load average: 0.08 0.05 0.05 1/45 1196
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
1196 1180 root R 1180 2% 8% top -bn1
1884 1 root S 10092 16% 0% smbd -D
1897 1884 root S 10092 16% 0% smbd -D
1882 1 root S 7792 13% 0% nmbd -D
1389 1 root S 1888 3% 0% smartd -i 1800
1180 1179 root S 1232 2% 0% {sys_utils_proc.} /bin/sh sys_utils_proc.cgi
582 1 root S 1204 2% 0% syslogd -C -m 0 -D
1179 641 root S 1196 2% 0% httpd -ih /usr/www
573 1 root S 1188 2% 0% udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i eth0 -x hostname DNS-323
1 0 root S 1184 2% 0% init
2148 1 root S 1184 2% 0% crond
641 1 root S 1184 2% 0% inetd
849 1 root S 1184 2% 0% /bin/sh --
584 1 root S 1172 2% 0% klogd
606 1 root S 588 1% 0% sysctrl
3139 2 root SW 0 0% 0% [md0_raid1]
9 2 root SW 0 0% 0% [kblockd/0]
14 2 root SW 0 0% 0% [kswapd0]
3 2 root SW 0 0% 0% [ksoftirqd/0]
11 2 root SW 0 0% 0% [ata_sff/0]
3280 2 root SW 0 0% 0% [jbd2/md0-8]
4 2 root SW 0 0% 0% [events/0]
51 2 root SW< 0 0% 0% [loop0]
32 2 root SW 0 0% 0% [mtdblock3]
16 2 root SW 0 0% 0% [aufsd_pre/0]
8 2 root SW 0 0% 0% [bdi-default]
7 2 root SW 0 0% 0% [sync_supers]
29 2 root SW 0 0% 0% [mtdblock0]
31 2 root SW 0 0% 0% [mtdblock2]
15 2 root SW 0 0% 0% [aufsd/0]
18 2 root SW 0 0% 0% [scsi_eh_1]
33 2 root SW 0 0% 0% [mtdblock4]
30 2 root SW 0 0% 0% [mtdblock1]
17 2 root SW 0 0% 0% [scsi_eh_0]
2 0 root SW 0 0% 0% [kthreadd]
6 2 root SW 0 0% 0% [async/mgr]
13 2 root SW 0 0% 0% [rpciod/0]
19 2 root SW 0 0% 0% [scsi_eh_2]
1103 2 root SW 0 0% 0% [flush-31:0]
10 2 root SW 0 0% 0% [ata_aux]
20 2 root SW 0 0% 0% [scsi_eh_3]
12 2 root SW 0 0% 0% [khubd]
36 2 root SW 0 0% 0% [usbhid_resumer]
5 2 root SW 0 0% 0% [khelper]
3281 2 root SW 0 0% 0% [ext4-dio-unwrit]
Last edit: João Cardoso 2013-08-31
Yes, there is a 'udhcpc' process running, a leftover from the previous dynamic IP configuration; it will request a new IP at the end of the current lease time, which seems to be 24 hours for your DHCP server.
You can try to resubmit the Setup->Host page, but if that process does not terminates afterwards you have to reboot the box.
The /etc/network/interfaces file is correctly setup for a static IP configuration; if you have saved settings it will take effect at the next reboot.
I have now fixed the issue by SVN commit 2368, thanks.
Can not change ip of my 323 (DNS-323-A1 1.0) anyway. First - set static ,10.1.1.76 and when I try to set DHCP - that box disappear from 10.1.1.0, and do not even try to get new lease from dhcp - log contains no requests from 323. Network on 323 is down. Cold restart - boot with static .76 again. Another static is also reset to .76. I try to changefile /etc/network/interfaces, ok, new static applyed, but after reboot 323 - again static .76 Looks like that file is only "current state copy" but settings is out of there, and every time assembling and replacing file or its contents from other location during startup, like somewhat settings at overlay fs of owrt routers, etc something on that manner. Where is real storing place of IP and/or DHCP flag?
Last edit: dennzo 2022-09-12
I'm try to download settings, edit interfaces where set another static IP, or dhcp flag, and upload .tgz file back to 323 by webui. Result - no ping to new IP, no attempts to get new IP from dhcp. Cold reboot = old static IP. Howewer, after theese manipulations dhcp flag was saved at last, from webui, and IP received from dhcp. Yes, every time I try to "save settings before exit" but failed every time except of this time.
Last edit: dennzo 2022-09-26