By default, OpenVZ creates the following virtual networks on the server:
-
Bridged virtual network that is connected to one of the physical adapters on the hardware node (as a rule,
enp0s5
) and provides virtual machines and containers included in this virtual network with access to the network behind this physical adapter. - Host-only virtual network that is connected to a special virtual adapter on the server and allows the virtual machines and containers joined to this virtual network to access only the server and the other virtual machines and containers on this network.
You can create your own virtual networks using the prlsrvctl
command. For example, to create a new virtual network network1
, you can run:
# prlsrvctl net add network1
By default, the command creates a host-only virtual network, but you can change its type if needed (see Section 5.4.1.3, “Configuring Virtual Network Parameters”).