Juan Manuel Palacios
Contributor
- Joined
- May 29, 2017
- Messages
- 146
Hi @Patrick M. Hausen,
Just as many others here, I'm trying to solve the problem of putting some of my jails on separate VLANs, but unfortunately without much success, perhaps due to TrueNAS' practice of keeping IP addresses on bridge members, rather than on the bridges themselves.
My NAS only has a single physical interface, igb0, with its own static IP and already bridged to a few jails whose networking stacks have been working "fine" for a while, all of them using that interface's untagged native LAN:
But now I want to move some of those jails to separate VLANs, for which I created an initial testing VLAN interface and a bridge in the TrueNAS UI, and followed the recommendations you've already given multiple times elsewhere, e.g. https://www.truenas.com/community/threads/jail-using-incorrect-vlan.105422/#post-725792, to the letter, but unfortunately to no avail, as VLAN-based networking for a test jail is still not working.
But before I get any deeper into debugging and all the things I've tried (plenty!), not to mention attempting to move igb0's IP to bridge0 while making sure I can still access the TrueNAS web GUI and my existing jails don't break, I first wanted to ask you something I may be misunderstanding about that post of yours.
If I'm understanding correctly, you explain that, for bridges to work appropriately, their member interfaces MUST NOT have IP addresses, any of them, and rather the address should be on the bridge itself, according to FreeBSD documentation (Advanced Networking); and in your screenshots, vlan2 (DMZ), member of the "bridge2" bridge, can be seen without an IP, accordingly. Further, you explain that jails should be bound to these properly-configured-bridges, e.g. "vnet0:bridge2" in your "cloud" jail's network properties.
However, and again if I'm reading correctly, bridge2 does not seem to have an IP in the configuration screenshot that you posted for it. Did you happen to add it later? Remove it for privacy purposes when posting? Or is there something I'm misunderstanding?
Thank you,
Cc @DobleJs @RueGorE This might be of interest to you, as I believe we're trying to solve very similar problems (if you haven't solved it yourselves already, that is, of course).
Just as many others here, I'm trying to solve the problem of putting some of my jails on separate VLANs, but unfortunately without much success, perhaps due to TrueNAS' practice of keeping IP addresses on bridge members, rather than on the bridges themselves.
My NAS only has a single physical interface, igb0, with its own static IP and already bridged to a few jails whose networking stacks have been working "fine" for a while, all of them using that interface's untagged native LAN:
Code:
-> ifconfig igb0 igb0: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 9000 description: igb0 options=8120b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER> ether ac:1f:6b:17:37:ba inet 10.0.0.5 netmask 0xffffff00 broadcast 10.0.0.255 (...) -> ifconfig bridge0 bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000 (...) member: igb0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 1 priority 128 path cost 20000
But now I want to move some of those jails to separate VLANs, for which I created an initial testing VLAN interface and a bridge in the TrueNAS UI, and followed the recommendations you've already given multiple times elsewhere, e.g. https://www.truenas.com/community/threads/jail-using-incorrect-vlan.105422/#post-725792, to the letter, but unfortunately to no avail, as VLAN-based networking for a test jail is still not working.
But before I get any deeper into debugging and all the things I've tried (plenty!), not to mention attempting to move igb0's IP to bridge0 while making sure I can still access the TrueNAS web GUI and my existing jails don't break, I first wanted to ask you something I may be misunderstanding about that post of yours.
If I'm understanding correctly, you explain that, for bridges to work appropriately, their member interfaces MUST NOT have IP addresses, any of them, and rather the address should be on the bridge itself, according to FreeBSD documentation (Advanced Networking); and in your screenshots, vlan2 (DMZ), member of the "bridge2" bridge, can be seen without an IP, accordingly. Further, you explain that jails should be bound to these properly-configured-bridges, e.g. "vnet0:bridge2" in your "cloud" jail's network properties.
However, and again if I'm reading correctly, bridge2 does not seem to have an IP in the configuration screenshot that you posted for it. Did you happen to add it later? Remove it for privacy purposes when posting? Or is there something I'm misunderstanding?
Thank you,
Cc @DobleJs @RueGorE This might be of interest to you, as I believe we're trying to solve very similar problems (if you haven't solved it yourselves already, that is, of course).