On a FreeBSD 12.2 server I am running several jails.
The FreeBSD server has two (2) physical eth interfaces (igb0, igb1).
These 2 eth interfaces (igb0, igb1) "combine" a LAGG interface on that server.
/etc/rc.conf
So far, I have been using IP aliases for the jail's networking without any problems.
/etc/jail.conf
Yet, I am trying to move to VNET networking. So I changed my /etc/jail.conf to
Now when I try to start the jail(s), I get the following error messages. No jail(s) are created
Starting jails:ngctl: send msg: No such file or directory
jail: jail1: jng bridge jail1 lagg0: failed
Any help would be much appreciated.
Thank you in advance for your time.
The FreeBSD server has two (2) physical eth interfaces (igb0, igb1).
These 2 eth interfaces (igb0, igb1) "combine" a LAGG interface on that server.
/etc/rc.conf
Code:
ifconfig_igb0="up"
ifconfig_igb1="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto lacp laggport igb0 laggport igb1 SYNCDHCP"
So far, I have been using IP aliases for the jail's networking without any problems.
/etc/jail.conf
Code:
$parentdir = "/var/jail";
path = "$parentdir/$name";
$eth = "lagg0";
ip4.addr = "${eth}|${ipv4}";
exec.clean;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.system_user = "root";
exec.jail_user = "root";
jail1 {
host.hostname = ${name}.local.lan;
ipv4 = "10.0.0.10/24";
}
Yet, I am trying to move to VNET networking. So I changed my /etc/jail.conf to
Code:
$parentdir = "/var/jail";
path = "$parentdir/$name";
$eth = "lagg0";
exec.clean;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.system_user = "root";
exec.jail_user = "root";
vnet;
vnet.interface = "ng0_${name}"; # vnet interface(s)
exec.start += "ifconfig ng0_${name} ${ipv4}";
exec.start += "route add default ${gw4}";
exec.prestart += "jng bridge ${name} ${eth}"; # bridge interface(s)
exec.poststop += "jng shutdown ${name}"; # destroy interface(s)
jail1 {
host.hostname = ${name}.local.lan;
ipv4 = "10.0.0.10/24";
$gw4 = "10.0.0.1";
}
Now when I try to start the jail(s), I get the following error messages. No jail(s) are created
[root@server:~]# service jail start
Starting jails:ngctl: send msg: No such file or directory
jail: jail1: jng bridge jail1 lagg0: failed
Any help would be much appreciated.
Thank you in advance for your time.