Guide

Set the management address

A new TrueNAS install has no address unless your network hands one out. Give it a fixed address from the console so you can reach its web page.

10 minutesOn the Hyper-V host and in the VM's console window
What improves

You can reach the TrueNAS web page to set it up.

Why it matters

A new install has no address on a network without DHCP, and the console step that keeps the address is easy to miss.

How you do it

Match the card by its hardware address, set the address, apply and persist it, then set the gateway and DNS.

The example

SettingValue
Address10.0.30.40/24
Gateway10.0.30.1
DNS servers10.0.20.10 and 10.0.20.11, the domain controllers
NameCON-NAS-01 in ad.contoso.com

Find out which card is which

TrueNAS lists network cards by hardware address, not by the names you gave them in Hyper-V. Get the addresses from the host.

Hyper-V host
Get-VMNetworkAdapter -VMName 'CON-NAS-01' | Format-Table Name, MacAddress -AutoSize

Hyper-V shows 00155D539014. TrueNAS shows the same card as 00:15:5d:53:90:14. Note the one for Mgmt.

Set the address on the management card

In the TrueNAS console:

  1. Choose Configure network interfaces.
  2. Open the card whose hardware address matches Mgmt.
  3. Set ipv4_dhcp to No.
  4. Under aliases, enter 10.0.30.40/24. Include the /24.
  5. Save.

Apply and persist

Saving is not enough. Back on the list of cards:

  1. Press a to apply the change.
  2. Press p to persist it.
You have about a minute

If you apply and do not persist, TrueNAS puts the old settings back. This protects you from locking yourself out, but it catches people who stop after Save.

The card should now show 10.0.30.40/24 in the list.

Set the name, gateway and DNS

Go back to the main menu and choose Configure network settings.

FieldValue
hostnameCON-NAS-01
domainad.contoso.com
ipv4gateway10.0.30.1
nameserver110.0.20.10
nameserver210.0.20.11

Choose Save.

Check you can reach it

The console menu now shows the web address. Test it from a PC on your management network.

Management PC
Test-NetConnection 10.0.30.40 -Port 443

TcpTestSucceeded : True means the web page is up. Open https://10.0.30.40 and sign in as truenas_admin. The browser warns about the certificate on a new install. That is expected.

Problems and fixes

"Gateway 10.0.30.1 is unreachable"

TrueNAS refuses a gateway it has no address near. The card has no address yet, or the address went in without /24, or the change was saved but not applied and persisted. Go back to step 2, then step 3, then try the gateway again.

The address disappears after a minute

The change was applied but not persisted. Set it again and press p straight after a.

The test fails

Check the card is on the right VLAN in Hyper-V, and that your firewall lets the management network reach this address on port 443.

Done when

Check

The console menu shows the web address, the port test succeeds, and you can sign in to the web page.

Your progress is kept in this browser only.