Adding VLANs to

I am new to TrueNAS.

I am having issues adding VLANs in the Networking interface.

when I finish setting it up. There is a message that I have to test the changes before it gets permanently saved. Fair enough.

However, I get disconnected every time, and lose those created VLANs, since they were not saved.

What am I missing?

Thanks in advance

If you are really just adding VLANs while leaving your primary connection as is, you might try increasing the timeout value for the “test” operation to e.g. 300 seconds. A switch running STP on a port will take 30 seconds to re-establish the connection when you change the network interface of the NAS in some fundamental way.

If you try to change your path of access to a VLAN you will of course need to “test” and hence activate the TN configuration first, then adjust your switch, then reconnect. In that case a larger timeout also helps.

If this was TN CORE I would recommend not to run untagged and tagged frames across the same link but run all networks as tagged. I do not know how Linux behaves in that regard.

HTH,
Patrick

My UniFi network is set to RSTP, of that makes a difference on re-connection speed.

I don’t see a place to change the timeout for the test operation anywhere. Neither in the Network settings, nor the System Settings.

I do, however, see a Session Timeout, the default seems to be 300 seconds.

I switched that to 420 seconds, to see if that makes a difference.

It briefly showed the login screen, then took me back to the Network page. Unfortunately, the VLAN still disappeared.

Is that something I have to change via the shell?

Just enter e.g. 300 before clicking on “Test Changes” …

1 Like

Wow, I didn’t even notice that could be changed.

The box should be highlighted like that all the time, not just when you select it.

90 seconds appears long enough to work.

Thanks

Now I just have to go through my config to troubleshoot this. :wink:

“We encountered an issue while applying the new network changes. Unfortunately, we were unable to reconnect to the system after the changes were implemented. As a result, we have restored the previous network configuration to ensure continued connectivity.”

It’s all good now.

Thanks @pmh