Changing Primary IP Address

I’m running TrueNAS 24.10.2.1 and I’m trying to change the IP Address assigned via DHCP. I’ve tried several different things and nothing seems to work. The only option that appears to work is just adding an IP Address to network interface which is not what I want to do. I want to assign a static primary IP Address to the network interface and I found no way to do that. I’ve turned off DHCP in TrueNAS with the only option to add and IP Address. My True NAS server is not very easy to access so I’m trying to make the change using the GUI web interface remotely. How can this be done?

Thanks

1 Like

So, if you want to change the ip address and you have DHPC, all you need to do is go to the dhcp server and add a static map to the mac address of your network interface card to the ip address you want. Generally it will take up to 24 hours to re-ip unless you have a longer or shorter DHCP lease duration.

That’s the only way to do it and keep DHCP, the right thing to do is put a static ip address on the interface, which means turning DHCP off and adding the ip address/netmask/dns servers to the interface.

Also, if you do put a static map in and want it to take effect sooner, the easiest thing to do if you are remote is reboot the server.

2 Likes

I show how to set a static IP in this video

1 Like

I have similar issues:
I wanted to use fixed IP, but when I went to the menu, I could only unselect DHCP, but there was no way to enter a new IP address to the system.
I could add gateway and DNS data though…
Had to go to my router and assign a static IP to the MAC address.
I tried this through the console and not the WebUI “Networks” tab.

You enter an alias for the interface.

1 Like

Thank you! I already set it up wit my router.
However, this is exactly the thing I dont really like in Ix systems.
My previous install was 23.10.
There it worked like in any other linux (or even Windows) environments. There is ONE place, where you can set up ALL, network relevant data.
Why did they change this?

Nothing has changed. This is how it works in every version of TrueNAS Scale (and Core back at least as far as 12.0 for that matter)

The process in 23.10

1 Like

It did change in the console, as far as I am concerned.

23.10 https://www.truenas.com/docs/scale/23.10/gettingstarted/install/consolesetupmenuscale/

24.10 https://www.truenas.com/docs/scale/24.10/gettingstarted/install/consolesetupmenuscale/

In both you enter 1 to configure network interfaces and edit the alias for the interface, just like in the UI process.

Yes, I did so, but AFTER, you pick No1, you cannot add any IP address to the menu.
Or I had a faulty SW installed…

Then you either select an interface and press Enter or press n to create a new interface. In the Update Network Interface screen for the interface you clear dhcp if needed and then select “aliases” and enter the static IP address for the interface there.

Why did they had to change the “IP address” term to “Aliases”?

1 Like

My TrueNAS server has six/6 network interfaces. Given the information that you provided I was able to change the IP address for one/1 on the six/6. However, after making the change I rebooted my server. When the reboot was complete my remaining network interfaces went down and now I’m unable to start them backup via the GUI. When I try change the IP Address the following message “[EINVAL] interface_update.aliases.0: The network AAA.BBB.ZZZ.0/24 is already in use by another interface.” I’m not trying to assign an IP Address “AAA.BBB.ZZZ.0/24”. Also how do I restart/bring up the downed network interfaces?

Thanks

This can only work if these interfaces are on six different subnets.
What are you trying to achieve?

…or, if he wants to use link aggregation…