Hi all,
I am trying to setup iocage to create a vnet jail and cannot figure out the right series of commands. I have em0 and re0. I want the vnet to bridge to re0, not em0. However, it keeps adding em0 to the bridge. My setup is as follows:
In /etc/rc.conf:
I am creating the jail as follows:
I have also tried using ip4_addr="re0|192.168.2.6/24", but this doesn't add an interface at all in the jail.
Note: em0 is not specified anywhere. But when I do this, it will add em0 to the bridge which seems to DOS attack the entire network. I have read through the documentation, but do not see anywhere where it specifies em0 or re0.
Please assist.
I am trying to setup iocage to create a vnet jail and cannot figure out the right series of commands. I have em0 and re0. I want the vnet to bridge to re0, not em0. However, it keeps adding em0 to the bridge. My setup is as follows:
In /etc/rc.conf:
Code:
cloned_interfaces="bridge0"
# plumb interface re0 into bridge0
ifconfig_bridge0="addm re0 up"
ifconfig_re0="up"
I am creating the jail as follows:
Code:
sudo iocage create -r LATEST vnet=on ip4_addr="vnet0|192.168.2.6/24" -n examplejail1
Note: em0 is not specified anywhere. But when I do this, it will add em0 to the bridge which seems to DOS attack the entire network. I have read through the documentation, but do not see anywhere where it specifies em0 or re0.
Please assist.