When you boot into FreeNAS®, the Console Setup, shown in Figure 3a, will appear at the end of the boot process. If you have access to the FreeNAS® system’s keyboard and monitor, this Console Setup menu can be used to administer the system should the administrative GUI become inaccessible.
Note
you can access the Console Setup menu from within the FreeNAS® GUI by typing /etc/netcli from Shell. You can disable the Console Setup menu by unchecking the “Enable Console Menu” in System ‣ Advanced.
Figure 3a: FreeNAS® Console Setup Menu
This menu provides the following options:
1) Configure Network Interfaces: provides a configuration wizard to configure the system’s network interfaces.
2) Configure Link Aggregation: allows you to either create a new link aggregation or to delete an existing link aggregation.
3) Configure VLAN Interface: used to create or delete a VLAN interface.
4) Configure Default Route: used to set the IPv4 or IPv6 default gateway. When prompted, input the IP address of the default gateway.
5) Configure Static Routes: will prompt for the destination network and the gateway IP address. Re-enter this option for each route you need to add.
6) Configure DNS: will prompt for the name of the DNS domain then the IP address of the first DNS server. To input multiple DNS servers, press Enter to input the next one. When finished, press Enter twice to leave this option.
7) Reset Root Password: if you are unable to login to the graphical administrative interface, select this option and follow the prompts to set the root password.
8) Reset to factory defaults: if you wish to delete all of the configuration changes made in the administrative GUI, select this option. Once the configuration is reset, the system will reboot. You will need to go to Storage ‣ Volumes ‣ Import Volume to re-import your volume.
9) Shell: enters a shell in order to run FreeBSD commands. To leave the shell, type exit.
10) System Update: if any system updates are available, they will automatically be downloaded and applied. The functionality is the same as described in Updating Between Releases, except that the updates will be applied immediately for the currently selected train and access to the GUI is not required.
11) Reboot: reboots the system.
12) Shutdown: halts the system.
During boot, FreeNAS® will automatically try to connect to a DHCP server from all live interfaces. If it successfully receives an IP address, it will display the IP address which can be used to access the graphical console. In the example seen in Figure 2.5b, the FreeNAS® system is accessible from http://10.2.1.115.
If your FreeNAS® server is not connected to a network with a DHCP server, you can use the network configuration wizard to manually configure the interface as seen in Example 3a. In this example, the FreeNAS® system has one network interface (em0).
Example 3a: Manually Setting an IP Address from the Console Menu
Enter an option from 1-11: 1
1) em0
Select an interface (q to quit): 1
Delete existing config? (y/n) n
Configure interface for DHCP? (y/n) n
Configure IPv4? (y/n) y
Interface name: (press enter as can be blank)
Several input formats are supported
Example 1 CIDR Notation: 192.168.1.1/24
Example 2 IP and Netmask separate:
IP: 192.168.1.1
Netmask: 255.255.255.0, or /24 or 24
IPv4 Address: 192.168.1.108/24
Saving interface configuration: Ok
Configure IPv6? (y/n) n
Restarting network: ok
You may try the following URLs to access the web user interface:
http://192.168.1.108
Once the system has an IP address, input that address into a graphical web browser from a computer capable of accessing the network containing the FreeNAS® system. You should be prompted to input the password for the root user, as seen in Figure 3b.
Figure 3b: Input the Root Password
Enter the password created during the installation. You should then see the administrative GUI as shown in the example in Figure 3c.
Figure 3c: FreeNAS® Graphical Configuration Menu
If you are unable to access the IP address from a browser, check the following:
This blog post describes some applications which can be used to access the FreeNAS® system from an iPad or iPhone.
Beginning with FreeNAS® 9.3, a configuration wizard automatically starts the first time the FreeNAS® GUI is accessed. This wizard walks you through the steps needed to quickly configure FreeNAS® to start serving data over a network. This section describes these configuration steps. If you wish to use the wizard again after the initial configuration, click the “Wizard” icon.
Figure 3.1a shows the initial wizard configuration screen.
Figure 3.1a: Initial Configuration Wizard
Note
you can exit the wizard at any time by clicking the “Exit” button. However, exiting the wizard will not save any selections. You can always restart the wizard again by clicking the “Wizard” icon. Alternately, you can use the FreeNAS® GUI to configure the system, as described in the rest of this Guide.
This screen can be used to change the default language, keyboard map, and timezone. After making your selections, click “Next”. The next screen depends on whether or not the storage disks have already been formatted into a ZFS pool.
Figure 3.1b shows the configuration screen that appears if the storage disks have not yet been formatted.
Figure 3.1b: Volume Creation Wizard
Note
the initial configuration wizard will not recognize an encrypted ZFS pool. If your ZFS pool is GELI-encrypted, cancel the wizard and use the instructions in Importing an Encrypted Pool to import the encrypted volume. You can then rerun the wizard afterwards, if you wish to use it for post-configuration, and it will recognize that the volume has been imported and will not prompt to reformat the disks.
Input a name for the ZFS pool that conforms to these naming conventions. It is recommended to choose a name that will stick out in the logs (e.g. not data or freenas).
Next, decide if the pool should provide disk redundancy, and if so, which type. The ZFS Primer discusses RAIDZ redundancy in more detail. If you prefer to make a more complex configuration, click the “Exit” button to close the “Wizard” and instead use Volume Manager.
The following redundancy types are available:
Once you have made your selection, click “Next” to continue.
If the disks have already been formatted with ZFS and the disks have not been encrypted, the next screen will instead prompt to import the volume, as seen in Figure 3.1c.
Figure 3.1c: Volume Import Screen
Select the existing volume from the drop-down menu and click “Next” to continue.
The next screen in the wizard is shown in Figure 3.1d.
Figure 3.1d: Directory Service Selection
If the FreeNAS® system is on a network that does not contain an Active Directory, LDAP, NIS, or NT4 server, click “Next” to skip to the next screen.
However, if the FreeNAS® system is on a network containing an Active Directory, LDAP, NIS, or NT4 server and you wish to import the users and groups from that server, select the type of directory service in the “Directory Service” drop-down menu. The rest of the fields in this screen will vary, depending upon which directory service is selected. Tables 3.1a to 3.1d summarize the available configuration options for each directory service.
Note
additional configuration options are available for each directory service. The wizard can be used to set the initial values required to connect to that directory service. You can then review the other available options in Directory Service to determine if additional configuration is required.
Table 3.1a: Active Directory Options
Setting | Value | Description |
---|---|---|
Domain Name | string | name of Active Directory domain (e.g. example.com) or child domain (e.g. sales.example.com) |
Domain Account Name | string | name of the Active Directory administrator account |
Domain Account Password | string | password for the Active Directory administrator account |
Table 3.1b: LDAP Options
Setting | Value | Description |
---|---|---|
Hostname | string | hostname or IP address of LDAP server |
Base DN | string | top level of the LDAP directory tree to be used when searching for resources (e.g. dc=test,dc=org) |
Bind DN | string | name of administrative account on LDAP server (e.g. cn=Manager,dc=test,dc=org) |
Base password | string | password for |
Table 3.1c: NIS Options
Setting | Value | Description |
---|---|---|
NIS domain | string | name of NIS domain |
NIS servers | string | comma delimited list of hostnames or IP addresses |
Secure mode | checkbox | if checked, ypbind(8) will refuse to bind to any NIS server that is not running as root on a TCP port number over 1024 |
Manycast | checkbox | if checked, ypbind will bind to the server that responds the fastest; this is useful when no local NIS server is available on the same subnet |
Table 3.1d: NT4 Options
Setting | Value | Description |
---|---|---|
Domain Controller | string | hostname of domain controller |
NetBIOS Name | string | hostname of FreeNAS system |
Workgroup Name | string | name of Windows server’s workgroup |
Administrator Name | string | name of the domain administrator account |
Administrator Password | string | input and confirm the password for the domain administrator account |
The next configuration screen, shown in Figure 3.1e, can be used to create the network shares.
Figure 3.1e: Share Creation
FreeNAS® supports several types of shares for providing storage data to the clients in a network. The initial wizard can be used to quickly make shares using default permissions which should “just work” for common scenarios. If you wish to configure more complex scenarios, refer to the section on Sharing.
To create a share using the wizard, input a name, then select the “Purpose” of the share:
After selecting the “Purpose”, click the “Ownership” button to see the screen shown in Figure 3.1f.
Figure 3.1f: Share Permissions
The default permissions for the share will be displayed. To create a user or group, input the desired name, then check the “Create User” box, to create that user, and the “Create Group” box, to create that group. Check or uncheck the boxes in the “Mode” section to set the initial access permissions for the share. When finished, click the “Return” button to return to the share creation screen. Click the “Add” button to finish creating that share, which will then appear in the “Name” frame.
You can use the “Delete” button to remove the highlighted share in the “Name” frame. If you need to edit a share, highlight it, make the change, then press the “Update” button.
When you are finished making shares, click the “Next” button to advance to the screen shown in Figure 3.1g.
Figure 3.1g: Miscellaneous Settings
This screen can be used to configure the following settings:
When finished, click “Next”. A message will indicate that the wizard is now ready to perform all of the saved actions. If you wish to make any changes, click the “Return to Wizard” button to review your edits. If you click the “Exit without saving” button, none of your selections will be saved. To save your edits, click the “Confirm” button. A status bar will indicate when the wizard has completed applying your settings.
In addition to the settings that you specify, the wizard will automatically enable S.M.A.R.T. Tests, create a boot environment, and add the new boot environment to the boot menu. If you also wish to save a backup of the configuration database to the system being used to access the administrative graphical interface, go to System ‣ General, click the “Save Config” button, and browse to the directory to save the configuration to. It is recommended to always backup your configuration after making any configuration changes.
The rest of this Guide describes the FreeNAS® graphical interface in more detail. The layout of this Guide follows the order of the menu items in the tree located in the left frame of the graphical interface.
Note
it is important to use the GUI (or the Console Setup menu) for all configuration changes. FreeNAS® uses a configuration database to store its settings. While it is possible to use the command line to modify your configuration, changes made at the command line are not written to the configuration database. This means that any changes made at the command line will not persist after a reboot and will be overwritten by the values in the configuration database during an upgrade.