OpenVZ allows you to configure the following parameters for a virtual network:
-
The networking mode in which the virtual network is operating.
Note
Note: Before changing the virtual network type to bridged, a network bridge must be created for the virtual network. See Section 5.4.1.2, “Creating Network Bridges for Physical Network Adapters”.
- The description of the 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:
- Changes the virtual network type to bridged.
- Changes the virtual network description to the following: "This is now a bridged virtual network".