Some routers can effectively do this too, i.e. you tell the router to always assign the same IP address to a specific device (identified by its MAC address).What do I need to change from DHCP to Static IP?
Just be aware that many routers do not handle DHCP reservation properly.Some routers can effectively do this too, i.e. you tell the router to always assign the same IP address to a specific device (identified by its MAC address).
I do essentially the same thing, but some people like to run everything off DHCP, fusterclucks notwithstanding ;)In the small networks I manage, I set the router to start DHCP assignment at xxx.xxx.xxx.031 which leaves me with plenty of IP addresses for DHCP while reserving a reasonable number that can be used for static IP assignment. For most home and small office networks, this should be sufficient.
You know what sucks about relying on your dhcp server to handle server IP addresses, even reservations?
When the damn dhcp isn't online when you fire up your server. Fustercluck ensues.
Which is what I do for the main server functions in my home.The best solution is to use DHCP reservations and static IP addresses on the server. If either the server or the router gets reset, IP addresses are still working until both sides are set up correctly again.
...just don't forget to fix the problem, or you're back to square one.
It's all in the GUI.
IP address, gateway, name server
gateway and name server are under the global configurationApologies in advance for my naivity, but I can't figure where I need to make these changes.... I guess it must be under the Network tab, but where exactly?
Under Interfaces do I need to click Add Interface ? This seems strange since I already have a working interface so why would I want to add one?
Thanks for that.... It just didn't seem intuitive that I needed to add an interface if the only interface I have is already configured and working...
For whatever stupid reason, when you have the server configured for dhcp, it doesn't show an interface at all. You have to add one. Dumb design.I don't think you do! I think you just go to Network/Interfaces, select your existing interface, press the Edit button that appears, and alter the settings. If you are changing to DHCP you may have to remove some of the existing settings, I've never used DHCP on FreeNAS. You probably then may have to alter some of the Global Configuration settings too, I don't know to what extent they are automatically populated when you use DHCP
So I was wrong! How bizarre; I said I'd never used DHCP. What happens if you have an interface configured with fixed IP, and add a second one configured with DHCP? (Usually not a good idea, but your fixed IP might not be on your DHCP subnet.) If it doesn't show the second one, how do you ever remove it? Presumably 'add' a new configuration to the second NIC and then delete it?For whatever stupid reason, when you have the server configured for dhcp, it doesn't show an interface at all. You have to add one. Dumb design.
If you add a second one, you can select dhcp on the add interfaces option and it will show up. It's just the default configuration out of the box that is jacked up. I thought someone was crazy until I went and tested it myself.So I was wrong! How bizarre; I said I'd never used DHCP. What happens if you have an interface configured with fixed IP, and add a second one configured with DHCP? (Usually not a good idea, but your fixed IP might not be on your DHCP subnet.) If it doesn't show the second one, how do you ever remove it? Presumably 'add' a new configuration to the second NIC and then delete it?
If you add a second one, you can select dhcp on the add interfaces option and it will show up. It's just the default configuration out of the box that is jacked up. I thought someone was crazy until I went and tested it myself.
I have always used static IP's for the FreeNAS server and other network infrastructure items I have on my home network. Everything else, such as laptops, phones, TV's, etc will be DHCP. Also, I don't bother with DHCP reservation in the router. When I need to reset the entire system (which doesn't happen very often,) there won't be any issues waiting for a DHCP server to come up. Obviously, you have to wait for everything to come up (say after a power outage) before you can use the network, but it will all come back.Which is what I do for the main server functions in my home.
But I have been bitten by the dhcp server isn't up before the reservation client is up. It sucks.
Someone ought to do a bug report, it must be very confusing to people in @balanga's position.