Solved Allocating a physical interface with vnet + iocage

Hi,

Does anyone know, How I can allocate my vmx interface into jail with vnet in iocage?
I can do it in ezjail with this variable:
export jail_test_vnet_interface="vmx1"


I think it may not support this feature without a bridge.
 
Ok, I found out.

Follow these steps:
  1. Set defaultrouter property on none.
    iocage set defaultrouter=none jail
  2. You have to set interfaces property, So just set it to a vnet.
    iocage set interfaces="vnet0:bridge0" jail
  3. Set ip4_addr property on none.
    iocage set ip4_addr="none" jail
  4. And allocate your host interface with vnet_interfaces property:
    iocage set vnet_interfaces="vmx0"
Configure your network inside the jail.
 
Back
Top