can I use two different subnets with one NIC?

mathematics28

Dabbler
Joined
Mar 3, 2023
Messages
19
Hi Everyone,

So, I have 1 NIC in my machine, and I would like my windows VM inside of TrueNAS scale to use a different subnet and vlan than the TrueNAS server. Is this possible? Reason is I would like to use the VM for work and don't want them to be able to snoop. I would have to switch my switch port file to have all subnets on it, but that's as far as I figured so far (or new profile with just 2 subnets). Thanks!
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
You likely want tagged VLANs. You can then use 2 virtual network interfaces, each in a different sub-net / VLAN.

This requires network switch support. Others here might have more details, I don't use that feature.


Using over-layed sub-nets, (quick, cheap multiple sub-nets on same NIC), does allow snooping to some degree.
 

mathematics28

Dabbler
Joined
Mar 3, 2023
Messages
19
You likely want tagged VLANs. You can then use 2 virtual network interfaces, each in a different sub-net / VLAN.

This requires network switch support. Others here might have more details, I don't use that feature.


Using over-layed sub-nets, (quick, cheap multiple sub-nets on same NIC), does allow snooping to some degree.
True, but I am guessing that the NIC would have to be able to use tagged VLANS? Not really sure how that works. Tagging them in the switch is the easy part. Else I could just use another NIC with a different subnet for the VM.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Just add VLAN interfaces in the network interfaces menu ... TrueNAS is perfectly capable of 802.1q.
 

mathematics28

Dabbler
Joined
Mar 3, 2023
Messages
19
Just add VLAN interfaces in the network interfaces menu ... TrueNAS is perfectly capable of 802.1q.
That is a beautiful thing. Had no idea. Thank you Patrick!
 
Top