Skip to content

Instantly share code, notes, and snippets.

@norrland
Created October 23, 2019 12:29
Show Gist options
  • Select an option

  • Save norrland/b8ef90b73709ae38341b4c6ca7a4361b to your computer and use it in GitHub Desktop.

Select an option

Save norrland/b8ef90b73709ae38341b4c6ca7a4361b to your computer and use it in GitHub Desktop.
# /etc/rc.conf
# VLAN20 - virt int
cloned_interfaces="bridge0 vlan20 bridge1 vlan40"
ifconfig_vlan20="vlan 20 vlandev em0"
ifconfig_bridge0="addm vlan20 up"
# VLAN40 - virt pub
ifconfig_vlan40="vlan 40 vlandev em0"
ifconfig_bridge1="addm vlan40 up
# grep vnet /iocage/jails/pubjail/config.json
"interfaces": "vnet0:bridge1",
"ip6_addr": "vnet0|2001:xxxx::99:a999/64",
"vnet": 1,
"vnet0_mac": "02ff6005de3c 02ff6005de3d",
"vnet1_mac": "none",
"vnet2_mac": "none",
"vnet3_mac": "none",
"vnet_default_interface": "bridge1",
"vnet_interfaces": "none",
# grep vnet /iocage/jails/intjail/config.json
"interfaces": "vnet0:bridge0",
"ip4_addr": "vnet0|10.0.20.123/24",
"vnet": 1,
"vnet0_mac": "02ff60d1b7e1 02ff60d1b7e2",
"vnet1_mac": "none",
"vnet2_mac": "none",
"vnet3_mac": "none",
"vnet_default_interface": "bridge0",
"vnet_interfaces": "none",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment