VLANs not working in VMs/Jails
Description
Problem/Justification
Impact
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Ryan Moeller October 12, 2021 at 5:58 PM
I have not been active in the network stack for some time now. This will have to be fixed in FreeBSD by someone else.
NathanR August 12, 2020 at 7:10 AM
I just ran into this bug on my own TrueNAS 12 beta system. This system was upgraded from FreeNAS 11.3 (clean install).
No vlans existed before upgrading to v12.
I was trying to follow the guide 2 [here|https://www.ixsystems.com/community/threads/how-to-setup-vlans-within-freenas-11-3.81633/] but could not complete the vlan1 takeover of the default nic. Eventually I cleared all the vlan/bridge interfaces and the 2 system tuneables and started over.
I had the system working by adding vlan's and bridges, where the bridge device had an appropriate IP (each vlan has a dhcp server from pfsense). No vlan1 was defined, no system tuneables were defined, and `ifconfig` was missing `bridge0`. With this configuration, I could add the bridge device to both Jails and VM's and have the DHCP (discover/offer/request/ack) complete successfully. After a some edits (moving jails/vm's to vlans and adding an additional vlan/bridge) the DHCP process stopped working and a TCPDUMP showed the DHCPOFFER was not completing its journey between the vlan interface and the bridge.
I'm stuck now with a partially working system. I can upload a system dump if needed (system is rebooting currently)
Lewis Barclay October 4, 2019 at 9:56 AM
Thanks Ryan, will give that a try. Hopefully we can get this resolved sometime soon as kind of frustrating. Thanks again!
Ryan Moeller October 2, 2019 at 8:47 PM
There are a few issues with vlans and bridges I'm aware of. Unfortunately I don't have a known workaround I can recommend. You may try adding `-lro -toe -tso -txcsum` to the physical interface NIC's options (Network>Interfaces and choose Edit from the menu), but that doesn't seem to be the issue judging from your debug info. My time is being monopolized by higher priorities, so progress is quite slow on solving this.
Lewis Barclay October 1, 2019 at 9:14 AM
Hello, just wondered if there was any update/progress on this? Thanks!
This was brought up before as ticket: https://ixsystems.atlassian.net/browse/NAS-100816#icft=NAS-100816 but has since been closed as think the original poster hadn't replied.
I'm experiencing the same issue, when trying to add a VLAN interface to a VM, no DHCP address is delivered and static IP traffic is dropped/lost.
It definetely seems to be an issue with the VLAN, if I create the VLAN and go to Network > Interfaces and select the newly created VLAN interface, set DHCP then it gets an address straight away. However when passed through to the VM it does not.
Please let me know what other information I can provide!