Can't set a static IP address.

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Are you trying to assign a single network to more than one interface on the system? If so, that's not allowed and it's also very broken. Each interface on the system needs to attach to a unique and non-overlapping subnet. Basic networking.

 

MartijnSc

Cadet
Joined
Oct 16, 2023
Messages
2
This still seems to be an issue.
My TrueNAS Scale (TNS) is running in Proxmox, with it's primary interface (ens18) connected to a real NIC on 192.168.20.0/24. Working fine.
In order to reduce network traffic, I configured a Linux Bridge on Proxmox and added that to the TNS configuration.
This Linux Bridge is NOT connected to any real NIC, it is intended to run between TNS and an Ubuntu VM.

This Linux Bridge is recognized by TNS and shows in the console and WebGUI as ens19.

But, when I try to set a static IP address on ens19 by disabling DHCP and adding an alias, it seems that the configuration for ens18 gets lost. TNS asks for the default gateway (192.168.20.1), after which it replies that that gateway cannot be reached by either interface.
Also, the console and GUI lose any information on ens18, which only gets back after you revert.

This should be an allowed configuration, as it does not connect two NICs to the same (V)LAN, right?
 

MartijnSc

Cadet
Joined
Oct 16, 2023
Messages
2
This still seems to be an issue.
My TrueNAS Scale (TNS) is running in Proxmox, with it's primary interface (ens18) connected to a real NIC on 192.168.20.0/24. Working fine.
In order to reduce network traffic, I configured a Linux Bridge on Proxmox and added that to the TNS configuration.
This Linux Bridge is NOT connected to any real NIC, it is intended to run between TNS and an Ubuntu VM.

This Linux Bridge is recognized by TNS and shows in the console and WebGUI as ens19.

But, when I try to set a static IP address on ens19 by disabling DHCP and adding an alias, it seems that the configuration for ens18 gets lost. TNS asks for the default gateway (192.168.20.1), after which it replies that that gateway cannot be reached by either interface.
Also, the console and GUI lose any information on ens18, which only gets back after you revert.

This should be an allowed configuration, as it does not connect two NICs to the same (V)LAN, right?
To answer my own message, with a solution that may be helpful for others:

I made this work by disabling DHCP on the new interface (ens19) and adding an Alias with the required IP address.
You then have to ignore the errors and go to the first interface (ens18) and re-enable DHCP on it.

I then just refreshed the WebGUI, had to login again, was able to test the settings and save it. In the end, it now has the config I want, entered through the WebGUI:
1699801566091.png
 
Top