Static IP Error (Truenas CORE Version: TrueNAS-13.0-U6.2)

Hi All

I added a 2.5Gb NIC to my system (which has a built in 1Gb NIC). (The built in NIC has NOT been disabled through the BIOS).

No problems getting the new NIC to work - I used the DHCP option and an IP was allocated. (192.168.31.140)

Now that I’ve switched over to the 2.5Gb I want to change the DHCP IP to a static IP (I want to use the same IP address as allocated by DHCP).

When I attempted to make this change to a static IP I used the Network/Interface/ select the NIC / EDIT - this is the error message that came back…

“The network 192.168.31.0/24 is already in use by another interface.”

After doing so digging around I get this result from netstat -rn

root@XXXXXX[~]# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            192.168.31.1       UGS        igc0
127.0.0.1          link#2             UH          lo0
192.168.31.0/24    link#1             U          igc0
192.168.31.140     link#1             UHS         lo0

The IP (192.168.31.0/24) is listed.

Can anyone explain why this IP is listed, how it possible “got there” and how can I delete it.

The NIC I am using is shown as “igc0” on the network/interface screen.

The active NIC connection I am using the is 192.168.31.140 - which is listed as lo0.

Thank you for your help.

You can’t use the 192.168.31.0 address range on both NICs.

Are you trying to use both NICs or just one?

Thank you for your reply.

I am only using 1 NIC - the 192.168.31.140 (2.5gb) NIC.

I am NOT using the Mobo NIC. I have not as yet disabled it.

I did not “set” the 192.168.31.0 IP - this IP seems to have been set by the “system”. That’s what I’m “fighting” with - I didn’t set the .0 IP and I don’t know where to remove/delete this IP.

Thanks again for your reply.

I assume that it got there because it’s the subnet containing the present address of the NIC on the motherboard, and you were using it until you added the new one.

I suggest that you disable in the BIOS the NIC that you are not using. You cannot have two NICs on the same subnet as was earlier pointed out.

Thank you for your response. I’ll take your suggestion and disable the mobo NIC.

I realised what was causing the “problem” - I had not deleted the NIC information for the motherboard NIC. (I had actually disabled it - despite what I said above - I thought I hadn’t as yet disabled it)

In effect I had two NICs - albeit that the onboard NIC was not being used (not plugged in).

I deleted the onboard NIC device in Network/Interfaces and then I was able to change the new 2.5GB NIC from DHCP to a static IP.

Thank you for all advice and suggestions.