Cli kept old IP address

Brief description of the problem

cli kept old IP address

Detailed step by step instructions to reproduce the problem

Fresh installation with DHCP enabled
After installation, set a different IP in the router for the NIC MAC and reboot
Cli still shows old IP
Router shows new IP live
SSH to new IP ok
if config shows correct ip in the interface:
enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.18 netmask 255.255.255.0 broadcast 10.10.10.255
inet6 fe80::215:17ff:fedc:2c5e prefixlen 64 scopeid 0x20
ether 00:15:17:dc:2c:5e txqueuelen 1000 (Ethernet)
RX packets 18137 bytes 23491675 (22.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9017 bytes 3563375 (3.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18 memory 0xf7a20000-f7a40000

cli shows old IP: 10.10.10.131

Web-UI screenshot

Deleted pfsense static IP and server got an IP assigned by the DHCP:

10.10.10.131 00:15:17:dc:2c:5e Rockstor 2016/11/13 01:21:14 2016/11/13 03:21:14 online acti

[root@Rockstor ~]# ifconfig
enp2s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 94:de:80:ba:35:60 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.131 netmask 255.255.255.0 broadcast 10.10.10.255
inet6 fe80::215:17ff:fedc:2c5e prefixlen 64 scopeid 0x20
ether 00:15:17:dc:2c:5e txqueuelen 1000 (Ethernet)
RX packets 385 bytes 40571 (39.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 119 bytes 17870 (17.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18 memory 0xf7a20000-f7a40000

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 109 bytes 46333 (45.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 109 bytes 46333 (45.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

clli shows the old static IP: 10.10.10.18


added static ip mapping:

00:15:17:dc:2c:5e 10.10.10.18 Rockstor

and rebooted the server


cli shows old dynamic IP: 10.10.10.131

pfsense shows correct IP online
10.10.10.18 00:15:17:dc:2c:5e Rockstor n/a n/a online static

Interface has correct static IP

enp6s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.10.10.18 netmask 255.255.255.0 broadcast 10.10.10.255
inet6 fe80::215:17ff:fedc:2c5e prefixlen 64 scopeid 0x20
ether 00:15:17:dc:2c:5e txqueuelen 1000 (Ethernet)
RX packets 227 bytes 25932 (25.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 116 bytes 17349 (16.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18 memory 0xf7a20000-f7a40000

GUI accessible via static IP, but is not showing any IP under appliance IP

Any ideas?

Hi @m3elloa,
I never checked Rockstor net code, but maybe changing management IP can solve it (I see you’re missing it)

M.

Morning @Flyer, I don’t know where to change it :slight_smile:

The link on the top left of the screen takes me to Appliances, like in Systems -> Appliances. I can make changes to testing if directed, but only to help fix if there is something to fix.

All my VMs and servers in three different distros - CentOS 7, ubuntu, FreeBSD - talk with my DHCP flawlessly and I always set the IP after finishing installation if I don’t know the MAC address for the interface, by checking the DHCP status on my router. Works all the time. Add to this that Cli and interface are not in sync :frowning: