shaharsaporta
Cadet
- Joined
- Jan 9, 2022
- Messages
- 7
Hello,
I'm using latest Truenas 12 on a standard PC, with a dual Intel 1GB NIC, and have issues with using multiple vlans on this machine.
For the discussion - I have designated one port for management, it is configured as an access port on the switch (HP 1920). The 2nd port is configured as a trunk port on the switch, and there are 3 vlans configured on it.
From the Truenas side my configuration is simple - for the physical port I have not configured anything (including IP address) except disabling hardware offload, added the vlans as interfaces (again - no IP address here also) which its parent interface is the physical NIC.
I have 2 jails, one is using vlan2 (for the example) and the other is using vlan3.
The 3rd vlan is for SMB shares and has an IP address, all relevant services have binding to this interface.
I'm assuming this configuration should work (or maybe I'm doing something wrong here).
When I turn on one jail (any of them) everything works fine. When I turn on the 2nd one, the network seem to be flooded, and it feels like the Truenas bridges between vlans in such a way that (for example) a Wifi device gets the wrong IP assignment in terms of wrong subnet on the wrong vlan, and other connected devices can't seem to communicate at all. When I shut the interface in question (the 'trunked' NIC) from the switch side, everything gets back to normal.
I have already tried using all vlans on the same NIC, including management, changed cables and the dual port NIC itself, but the problem seem to be from the Truenas box itself.
It is worth mentioning that other trunked ports on this switch (I have a Wifi AP with 5 vlans, a Hypervisor, and a link to another switch on the network) works fine, so unless it is something specific with this switch and Truenas (or FreeBSD) I can only focus on the Truenas. I have not tried this configuration with earlier versions of Truenas nor Freenas.
Any help appreciated.
Thanks,
Shahar
I'm using latest Truenas 12 on a standard PC, with a dual Intel 1GB NIC, and have issues with using multiple vlans on this machine.
For the discussion - I have designated one port for management, it is configured as an access port on the switch (HP 1920). The 2nd port is configured as a trunk port on the switch, and there are 3 vlans configured on it.
From the Truenas side my configuration is simple - for the physical port I have not configured anything (including IP address) except disabling hardware offload, added the vlans as interfaces (again - no IP address here also) which its parent interface is the physical NIC.
I have 2 jails, one is using vlan2 (for the example) and the other is using vlan3.
The 3rd vlan is for SMB shares and has an IP address, all relevant services have binding to this interface.
I'm assuming this configuration should work (or maybe I'm doing something wrong here).
When I turn on one jail (any of them) everything works fine. When I turn on the 2nd one, the network seem to be flooded, and it feels like the Truenas bridges between vlans in such a way that (for example) a Wifi device gets the wrong IP assignment in terms of wrong subnet on the wrong vlan, and other connected devices can't seem to communicate at all. When I shut the interface in question (the 'trunked' NIC) from the switch side, everything gets back to normal.
I have already tried using all vlans on the same NIC, including management, changed cables and the dual port NIC itself, but the problem seem to be from the Truenas box itself.
It is worth mentioning that other trunked ports on this switch (I have a Wifi AP with 5 vlans, a Hypervisor, and a link to another switch on the network) works fine, so unless it is something specific with this switch and Truenas (or FreeBSD) I can only focus on the Truenas. I have not tried this configuration with earlier versions of Truenas nor Freenas.
Any help appreciated.
Thanks,
Shahar