Previous page

Next page

Locate page in Contents

Print this page

Creating VLAN Adapters

Parallels Server Bare Metal allows you to create new VLAN adapters on the Parallels server. You can use these adapters later on to connect your virtual machines and Containers to any of the available Virtual Networks (for more information on Virtual Networks, see Managing Virtual Networks ) . VLAN adapters can be made using the vznetcfg vlan add command. To create a new VLAN adapter, you need to specify two parameters.

  • VLAN ID—an arbitrary integer number which will uniquely identify the virtual LAN among other VLANs on the server.
  • Physical network adapter on the server to which the VLAN is to be bound.

For example, you can execute the following command to make a new VLAN adapter, associate it with a VLAN having the ID of 5 (i.e. with VLAN 5), and attach the VLAN adapter to the eth0 physical adapter on the server:

# vznetcfg vlan add eth0 5

To check that the VLAN adapter has been successfully created, execute the following command:

# vznetcfg if list

Name Type Network ID Addresses

eth0 nic 192.168.0.150/22,dhcp

eth0.5 vlan

...

VLAN adapters can be easily identified by the vlan designation shown in the Type column of the command output. As you can see, only one VLAN adapter currently exists on the server. It is assigned the name of eth0.5 . This name is generated automatically on the basis of the specified VLAN ID and the name of the physical adapter to which the VLAN adapter is tied.

At any time, you can delete the eth0.5 VLAN adapter and thus destroy VLAN 5 by issuing the following command:

# vznetcfg vlan del eth0.5