I'm trying to understand how to configure a "vnet" jail for a "thick" jail. In the jail documentation, it has this config:
I need some help to understand what those settings.
Question 1:
In the:
Question 2:
What does "epair" means? Is this specifying a type of network interface? If it is not "epair" can it be something else, like "vio"?
I'd like to be completely clear before trying to configure the jails. Thanks!
vnet {
...
# VNET/VIMAGE
vnet;
vnet.interface = "${epair}b";
# NETWORKS/INTERFACES
$id = "154";
$ip = "192.168.1.${id}/24";
$gateway = "192.168.1.1";
$bridge = "bridge0";
$epair = "epair${id}";
# ADD TO bridge INTERFACE
exec.prestart = "ifconfig ${epair} create up";
exec.prestart += "ifconfig ${epair}a up descr jail:${name}";
exec.prestart += "ifconfig ${bridge} addm ${epair}a up";
exec.start += "ifconfig ${epair}b ${ip} up";
exec.start += "route add default ${gateway}";
exec.poststop = "ifconfig ${bridge} deletem ${epair}a";
exec.poststop += "ifconfig ${epair}a destroy";
}
I need some help to understand what those settings.
Question 1:
In the:
What is the "vnet" referring to? Is this referring to the name of the jail as it is at the top line, or the type of networking? (If it means the jail, it has the jail name. Otherwise, the jail name can be something else but this must be "vnet;"# VNET/VIMAGE
vnet;
Question 2:
What does "epair" means? Is this specifying a type of network interface? If it is not "epair" can it be something else, like "vio"?
I'd like to be completely clear before trying to configure the jails. Thanks!