I would like to create a VNET-based jail that attaches to my un-tagged LAN network via a bridge interface. I have jails that connect to tagged VLAN's and that seems to be working fine, but I can't get the correct syntax together to bring the untagged bridge online. I am trying to accomplish this using iocage and my
My main, un-tagged LAN is 10.0.1.0/24 (LAGG configured) and my jail VLAN is 172.16.55.0/24 (VLAN tag 55). Here is my
I am pretty sure the issue is that I am tagging the LAN traffic with VLAN ID 1 and the traffic needs to be untagged, but I am having trouble understanding how to get around this. If I plumb
For what it's worth, this is the command I was using to create the jail with iocage:
Any assistance anyone might be able to provide would be much appreciated. Also, if there is a better way to configure the VLAN bridge I would be open to making changes to that as well. I pieced that together from iocage's documentation and other blog/forum posts. Many thanks in advance!
/etc/rc.conf
file.My main, un-tagged LAN is 10.0.1.0/24 (LAGG configured) and my jail VLAN is 172.16.55.0/24 (VLAN tag 55). Here is my
/etc/rc.conf
file:
Code:
### Link aggregation of both physical NIC's
cloned_interfaces="lagg0 bridge0 bridge1"
ifconfig_em0="up"
ifconfig_em1="up"
ifconfig_lagg0="laggproto lacp laggport em0 laggport em1 up"
ifconfig_lagg0_alias0="inet 10.0.1.10/24"
defaultrouter="10.0.1.1"
### Bridge interface for LAN-attached jails
vlans_lagg0="1"
ifconfig_lagg0_1="up"
ifconfig_bridge1="addm em1 up"
### Bridge interface for jail VLAN (55)
vlans_lagg0="55"
ifconfig_lagg0_55="up"
ifconfig_bridge0="addm lagg0.55 up"
### iocage Jails
iocage_enable="YES"
I am pretty sure the issue is that I am tagging the LAN traffic with VLAN ID 1 and the traffic needs to be untagged, but I am having trouble understanding how to get around this. If I plumb
lagg0
into bridge1
, then my jails are unable to access the network/Internet/etc. (which makes sense). I was also thinking about trying to plumb em1
into bridge1
but I don't want to break my LAGG. I want to use VNET to keep everything consistent - I want all jails to have their own network stack.For what it's worth, this is the command I was using to create the jail with iocage:
Code:
[COLOR=#000000]iocage create -r LATEST -n lanjailtest1 interfaces="vnet0:bridge1" ip4_addr="vnet0|10.0.1.11/24" defaultrouter="10.0.1.1" vnet_default_interface="bridge1" vnet=on boot=on allow_raw_sockets=on[/COLOR]
Any assistance anyone might be able to provide would be much appreciated. Also, if there is a better way to configure the VLAN bridge I would be open to making changes to that as well. I pieced that together from iocage's documentation and other blog/forum posts. Many thanks in advance!