VLAN

Overview

This article explains network settings when using VLAN (KVM & XenServer)

How to enable VLAN

Go to Admin Panel -> Create IP Pool

Note: VLAN is supported for KVM and XenServer virtualization.

  • Gateway : As provided by the data center.
  • Netmask : As provided by the data center.
  • VLAN : Please check the Enable VLAN option.
  • VLAN Bridge : Enter vlan bridge as configured on the server.
  • Adding IP : Please add ip range to the pool .

Note : VLAN is supported for KVM and XenServer virtualization.
VLAN bridge must have an IP address assigned (even a dummy IP will work)
This will avoid known issue where VPS using VLAN network do not get their IPs configured through DHCP

Note: VLAN configuration is not done by Virtualizor and it should be configured by your system / network admin. Virtualizor will just use the VLAN bridge name in VPS configuration.

Following is the sample configuration file for VLAN with id : 192 .

Centos

~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1.192
DEVICE=eth1.192
ONPARENT=yes
VLAN=yes
NM_CONTROLLED=no
BRIDGE=Vbr0
~]# cat /etc/sysconfig/network-scripts/ifcfg-Vbr0
DEVICE=Vbr0 
TYPE=Bridge 
BOOTPROTO=static 
IPADDR=10.0.0.1
NETMASK=255.255.255.0 
ONBOOT=yes 
IPV6INIT=yes 
IPV6ADDR=2607:f0d0:1002:0011:0000:0000:0000:0002
IPV6_DEFAULTGW=2607:f0d0:1002:0011:0000:0000:0000:0001

Ubuntu 16 and lower (ifupdown)

~]# cat /etc/network/interfaces
auto eth1
iface eth1 inet static
address 192.168.1.10   
netmask 255.255.255.0   
gateway 192.168.1.1  

auto eth1.192
iface eth1.192 inet manual

auto Vbr0
iface Vbr0 inet manual
bridge_ports eth1.192
bridge_stp off
address 10.0.0.1
netmask 255.255.255.0

NOTE: Above sample is just an example for VLAN bridge file, it may vary as per your datacenter configuration. Please contact your datacenter for setting up VLAN on your server.

Was this helpful to you?