So far we have relied upon the DHCP server built into the router to assign IP addresses to the NICs in the server. This is inconvenient for reasons already outlined.
So let us assign static IP addresses to these NICs. This will ensure that the FreeNAS web GUI IP address will no longer change. This is much more expedient when administering a server.
Make sure it is outside of the range of the DHCP server.
There are two ways to do this. You can do it via the FreeNAS web GUI. This is the preferred method in most cases.
The other way is via the console, either directly at the server with a keyboard and monitor, or using an IPMI remote console viewer. This worked for me.
I have included both methods in the guide so you can see which works best for you.
Go to the “Network” page.
Click on “Interfaces” (1) and then click on the “Add Interface” button (2).
The “Add Interface” window will pop up.
In this window select the NIC you wish to configure from the “NIC:” drop down selection box (3).
Give the NIC a name if you wish in the “Interface name:” text box (4).
Do not tick the “DHCP:” tick box (5).
Now assign the static IP address to the NIC in the “IPv4 Address:” text box (6) (in Fester’s case this is 192.168.0.5).
Select from the “IPv4 Netmask:” drop down menu (7) the correct value for the subnet mask of your private network (Fester’s is 255.255.255.0).
My ISP does not use IPv6 at present so there is nothing to configure for this.
Now scroll down to the bottom of this window and click the “OK” button.
If you attempt to configure a second NIC with an IP address on the same subnet as the first within the FreeNAS web GUI, you will get an error that looks like this:
This is because multiple interfaces on the same subnet is an invalid configuration. For an explanation of why this is the case, see this resource on the FreeNAS Forums.
Start the IPMI remote console viewer, or connect a keyboard and monitor to your server. You should see a screen similar to this.
For “Enter an option from 1-14:” enter 1 and press the “Return/Enter” key.
That’s the static IP addresses assigned.