Skip to main content

VLAN Setup Example

In this example, we will demonstrate how to set up a Virtual LAN (VLAN) zone to facilitate network-level isolation using VLAN tags. This setup will allow virtual machines (VMs) on different nodes to communicate through an isolated network.

Creating VLAN Zone and VNet

  1. Create VLAN Zone:

    • ID: myvlanzone
    • Bridge: vmbr0
  2. Create VNet:

    • Name: myvnet1
    • Zone: myvlanzone
    • Tag: 10

Apply the configuration through the main Software-Defined Networking (SDN) panel to create VNets locally on each node.

Setting Up Virtual Machines

VM1 (node1):

  • VM Name: vm1
  • Network Interface: vNIC on myvnet1
  • Network Configuration:
auto eth0
iface eth0 inet static
        address 10.0.3.100/24

VM2 (node2):

  • VM Name: vm2
  • Network Interface: vNIC on myvnet1
  • Network Configuration:
auto eth0
iface eth0 inet static
        address 10.0.3.101/24

Verifying Connectivity

After configuring VM1 and VM2, you should be able to ping between them using the configured network settings. This indicates successful communication over the isolated network established by the VLAN setup.

By following these steps, you've effectively created an isolated network using VLANs, allowing VMs on different nodes to communicate securely through the specified VLAN zone and VNet.