Listing Virtual Networks
Sometimes, you may wish to list the Virtual Networks existing on the Parallels server. To do this, you can use either the
vznetcfg
or
prlsrvctl
utility.
Listing Virtual Networks With vznetcfg
To list the Virtual Networks on your server using the
vznetcfg
utility, execute the following command:
# vznetcfg net list
Network ID Status Master Interface Slave Interfaces
Shared active vnic0
Host-Only active vnic1
Bridged active eth0
vznetwork1 active vnic2
In the example above, 4 Virtual Networks -
vznetwork1
and 3 default Virtual Networks - exist on the Parallels server. The information on these Virtual Networks is presented in the table having the following columns:
Column Name
|
Description
|
Network ID
|
The ID assigned to the Virtual Network.
|
Status
|
Indicates the status of the Virtual Network. It can be one of the following:
-
active
: the Virtual Network is up and running.
-
configured
: the information on the Virtual Network is present in the
/etc/vz/vznet.conf
file on the server, but the bridge to which the Virtual Network is bound is down or absent from the server.
Note:
Detailed information on the
vznet.conf
file is given in the
Parallels Command Line Reference Guide
.
|
Master Interface
|
Displays the adapter on the server connected to the Virtual Network, if any.
|
Slave Interfaces
|
Lists the adapters in virtual machines and Containers joined to the Virtual Network, if any.
|
Listing Virtual Networks With prlsrvctl
You can also use the
prlsrvctl
utility to list the Virtual Networks existing on your server. To do this, run the following command:
# prlsrvctl net list
Network ID Type Bound To
Shared shared vnic0
Host-Only host-only vnic1
Bridged bridged eth0
vznetwork1 host-only vnic2
This utility displays the following information on Virtual Networks:
Column Name
|
Description
|
Network ID
|
The name assigned to the Virtual Network.
|
Type
|
The networking mode set for the Virtual Network.
|
Bound To
|
The adapter on the Parallels server connected to the Virtual Networks, if any.
|
|