Servers should pretty much always have static IP addresses. Whether that’s done by assigning one or more static IPs on the interface on the server itself, or by a DHCP reservation on your router, is mostly “whichever you prefer.” One exception is if you want to use a different IP for one or more apps, in which case you’ll need to have more than one static IP address configured on your server.
Thank you Dan for the fast reply, This is something I could have also done when setting up my Nas system correct?
I want to change it to my IP address I know I have to disable the DCHP first and them add my IP address I just don’t want to mess things up I know what you’re thinking NAS chicken LOL
Yes, if I understand you correctly. It can’t be done during the initial installation, but once the system’s installed you can configure this using the console text menu or the GUI.
While old school IT admins love to use static IPs, I think they are a PITA.
By assigning IPs with DHCP, I have one single place where I can configure everything. It is way simpler, makes migrations easier, you find devices simpler if you messed up something VLAN related and many more reasons.
BUT, I also think that TrueNAS (and Proxmox) handle networks in a very weird way.
I think they should allow for multiple DHCP interfaces. And I think that different interfaces with different VLANs should have different MAC addresses. Both is unfortunately not the case for TrueNAS.
I guess it depends on the user and how you like things setup. I like the idea of having a dedicated IP address that way I’m not sharing anything with others using that IP. I’m sure there are security risks as well when using DHCP. None the less thanks for sharing your opinion with us these things are good to know
If the very next sentence specifically lists a DHCP reservation as a way of assigning a static IP address, I’d argue it creates misunderstandings only for people who don’t read very carefully.
The point is that the IP doesn’t change, therefore it’s static. It makes no difference to me or to the other computers on your LAN how that’s accomplished.
This is the crux. Then, as already pointed by @rungekutta, there are two ways to achieve that, with different consequences when devices are moved to a new network (or the infrastructure is redone).
Harcoded IP means that settings have to be changed on each and every device with a static IP. Then, the network works “by itself” with switches and routers doing their thing automatically.
DHCP reservations means that there’s a single place to configure everything, but the DHCP server is a single point of failure for the whole network.
Sure, context matters. But I wasn’t replying with your usage in mind, just with commentary on what Sara said.
As others have pointed out, dynamic IPs do, sort of, change. The moment your DHCP-reliant server can’t get a lease it no longer gets that “static IP” assigned to it.
DHCP reservations are super convenient, I use them for many different things in my network, but for things I want to be on a specific IP no matter what, I find actual static IPs to be much more reliable.