set static ip truenas

How to Setup a Static IP Address on TrueNAS

How to Setup a Static IP Address on TrueNAS: A Step-by-Step Guide

Setting up a static IP address on a TrueNAS server is a crucial task for ensuring reliable network configuration. This guide provides a workaround for setting up a static IP address during the TrueNAS installation process, where the installer does not offer an easy way to do so.

TL;DR:

We accessed the TrueNAS server shell prompt remotely using IPMI or at the console, listed the interfaces with ip a, and set the IP address using specific commands.

ip a
sudo ip addr add 198.32.160.100/24 dev eth0
sudo ip route add default via 198.32.160.1 dev eth0

Replace eth0 with your network interface name and adjust the IP address and subnet to your network’s configuration.

Detailed Steps:

  1. Accessing the Shell Prompt: Load the “Shell” from the menu after the OS installation to access the command line.

  2. Listing Network Interfaces: Type ip a to list all network interfaces. Identify the active interface (typically in UP status).

  3. Configuring the IP Address: Enter the following commands, adjusting them as necessary for your network:

sudo ip addr add 198.32.160.100/24 dev eth0
sudo ip route add default via 198.32.160.1 dev eth0
  1. Testing the Configuration: Use ping 8.8.8.8 to test the configuration.

  2. Accessing the TrueNAS GUI: Log into your TrueNAS GUI using the admin credentials you set.

For more detailed insights on IP configuration in Linux, read our article on Configuring Static IP Address from the Command Line in Linux: A Comprehensive Guide.

Conclusion:

While setting up a static IP on TrueNAS can seem complex due to the installer’s limitations, following these steps makes the process manageable.

For advanced networking and server solutions, consider PureVoltage’s dedicated server solutions with 24/7 technical support for optimal server performance and reliability.

Remember, sometimes the simplest solutions are found in the shell, highlighting the power and flexibility of command-line interfaces.


Posted

in

by