Solved iocage - vnet - lo0 localhost alias not created

FreeBSD-13.0p11
py38-iocage-1.2_9

I have just converted a host to enable vnet. I use iocage to manage jails on this host. All jails on this host presently use shared ips. No jail on this host has a vnet0 i/f in use.

All the enabled jails start. All have the correct IP address assigned. All have network connectivity. What does not happen is the localhost aliases set for all jails are not created. I can create the lo0 addresses on the host using ifconfig lo0 inet 127.0.xxx.1 add and the appropriate jail can use that. However, manually adding lo0 for each jail was not necessary before vnet was enabled.

rc.conf
Code:
## VNET - Setup a bridge to enable vnet
## also see loader.conf and sysctl.conf settings

cloned_interfaces="bridge0"
ifconfig_bridge0="addm em0"
ifconfig_em0="up"
ifconfig_em0="inet 123.123.123.12/25"
ifconfig_em0_alias18="inet 192.168.18.45/16"
ifconfig_em0_alias216="inet 192.168.216.45/16"

gateway_enable="YES"             # enable if using vtnet
#net.inet.ip.forwarding=1        # same as this in /etc/sysctl.conf

Have I mis-configured something?
 
This has been resolved but the underlying cause is not known. The solution that eventually worked was to re-install iocage. However, as this problem evidenced on two separate hosts immediately after configuring vnet and rebooting each I suspect that this is a likely suspect.
 
Back
Top