5.4.1.3. Configuring Virtual Network Parameters

OpenVZ allows you to configure the following parameters for a virtual network:

All these operations can be performed using the prlsrvctl utility. Let us assume that you want to configure the network1 virtual network. This virtual network is currently configured as a host-only network and has the following description: This is a host-only virtual network. To change these parameters, you can execute the following command:

# prlsrvctl net set network1 -t bridged --ifname enp0s6 -d "This is now a bridged \
virtual network"

This command configured the network1 virtual network as follows:

  1. Changes the virtual network type to bridged.
  2. Changes the virtual network description to the following: "This is now a bridged virtual network".