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):

auto eth0
iface eth0 inet static
        address 10.0.3.100/24

VM2 (node2):

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.


Revision #2
Created 22 March 2024 18:44:55 by Admin
Updated 22 March 2024 19:00:25 by Admin