How to configure VLANs for Xen VMs in XenCenter

 

  1. There is always a network by default available corresponding to any physical Nic on the Xen server, for untagged traffic. (Network 0 and Network 1 in the following picture). For adding a tagged VLAN on an interface we need to add it by clicking on “Add Network” button.

    tvgfqkc

  2. Then we keep the default selection of “External Network”. Click “Next”

    a583ky6

  3. Choose a name and description for the network. Click Next.

    voq1qiw

  4. Then select the VLAN ID and corresponding physical interface. Click “Finish”
    (The corresponding switch port has to be configured for tagged VLAN ID 2233)

    3afdyh7

  5. The new virual network named “Test” has been cretaed and is shown in the list with VLAN ID 2233. Any VM that needs to be connected to this network we can add a new interface to it and assign it to the network “Test”. The VM interface will receive untagged frames.

    qvldykf

  6. The networks connected to hypervisor are listed in “IP Address Configuration” section. “Network 0” is assigned to hypervisor during the installation and the corresponding Interface is named “Management”.
    If we want to give access to hypervisor to any of the virtual networks, we click on “Configure” in “IP Address Configuration” section.

    oreobfk

  7. In the new window that opens click on “Add IP address”

    o92eidz

  8. Choose the proper network and a name for the interface and setup the IP information. Click OK.

    p8eazga

  9. The interface “Test” is created in the hypervisor and is associated with the virtual network “Test”

    zacxruh