Delete IP addresses no longer in use on interface.

Status
Not open for further replies.

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
Hi everyone,

Can someone please tell me how I can delete references to IP addresses that should no longer be assigned to an interface? For example:

upload_2016-11-2_19-9-50.png


Only 172.21.1.20/21 should be assigned to this interface, all others referenced should be removed. I should also note that I deleted/reset the interface ix0 and recreated it from the console, but this still comes up. I assume I can do this from the command line but I don't know how. Thanks for any help!
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
What does your Network --> Interfaces page show?
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
It only shows the correct addresses. That seems to be the issue. I can't delete "old" ones, even if I delete the interface from the console:

upload_2016-11-5_14-44-28.png
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Have you rebooted?
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
What is the output of these commands?
Code:
sqlite3 /data/freenas-v1.db "SELECT * FROM network_globalconfiguration;"
sqlite3 /data/freenas-v1.db "SELECT * FROM network_interfaces;"
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
Code:

[root@freenas] ~# sqlite3 /data/freenas-v1.db "SELECT * FROM network_globalconfiguration;"
freenas.local|172.21.1.10|freenas|0||||||172.21.1.10|8.8.8.8|208.67.220.220|1
[root@freenas] ~# sqlite3 /data/freenas-v1.db "SELECT * FROM network_interfaces;"
|172.21.1.20|LAN|||0||21|||0|ix0||1||0
|172.21.8.10|SAN|||0|mtu 9000|21|||0|ix1||2||0
[root@freenas] ~#
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Hmm, ok. How about this one?
Code:
sqlite3 /data/freenas-v1.db "SELECT * FROM network_alias;"
 

soulburn

Contributor
Joined
Jul 6, 2014
Messages
100
Oh I think I just figured it out.... I had changed my subnet and then this started happening. It looks like the other addresses were references from jails that I didn't have VIMAGE checked on and was no longer using... Thanks for your help. I really appreciate it.
 

Sakuru

Guru
Joined
Nov 20, 2015
Messages
527
Ah, ok. I'm glad you figured it out :)
 
Status
Not open for further replies.
Top