Jump to content

How to configure support for multiple VLANs

Recommended Posts

Configuring Multi-VLAN support for Remote Network Monitoring with Domotz Pro



Domotz Pro is a remote network monitoring software which supports multi-VLAN configurations for remote network and device monitoring. The software which is designed for integration companies and IT professionals enables a host of network monitoring features including: Remote Access, Remote Power Management, Network Mapping, SNMP, Alerts, Network Diagnostics and more. Read more about Domotz’s Remote Network Monitoring Features.



Domotz supports monitoring of multi-VLAN network configuration through a variety of network installation options which include: Self Installation on a Raspberry Pi (i.e. your own Raspberry Pi device) or via the Domotz Box or Domotz Pi which are available for purchasing from the Domotz Portal.



This post will explain how to configure mutli-VLAN support via your own self-installed Raspberry Pi device.



Configuring Multi-VLAN support on a Self-Installed Raspberry Pi device for Remote Monitoring

Starting from Package version 1.03-201(April 2016) of the Domotz Agent for Raspberry Pi, the full package can be installed on your own Raspberry Pi device and supports the discovery and monitoring of devices hosted on two or more VLANs accessible from the Raspberry Pi. (Instructions and latest package are available here https://portal.domotz.com/portal/hardware/instructions/raspberry)

This short guide is meant for users who have multiple VLAN and are already aware of related configuration and procedures. 
For further details, and step by step guides, on how to configure VLANs on Switches and Raspberry Pi, the user should refer to detailed guides (for example, please refer to: http://www.sbprojects.com/projects/raspberrypi/vlan.php).


In order to allow the Domotz to discover and monitor devices on two or more VLANs, the user should configure both the Switch and the Raspberry Pi to multiple VLANs:


Switch Configuration 
The interface port of the switch which will be used to connect the Raspberry Pi, should be configured:
- in Access mode / Untagged for the main interface used by the Raspberry to communicate with the gateway (e.g. eth0).
- in Trunk 802.1q mode / Tagged for the additional VLANs to be monitored  (e.g. the eth0.10 used for lan 10)


Please, refer to your specific switch/model guide on how to configure Trunk 802.1q and Access mode (Untagged/Tagged) for the port.

Raspberry Pi Configuration

In order to configure the Raspberry Pi to access both the main and VLAN interfaces, execute the following steps:
1. Install vlan package and configure modules:

sudo apt-get install vlan
sudo su
echo 8021q >> /etc/modules

2. Open with your favorite text editor /etc/network/interfaces and configure the Network Interface  to access the main and VLANs.

E.g. if we have a primary network on (DHCP) and a secondary VLAN 10 on network (Static IP:

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
       post-up ifup eth0.10

iface eth0.10 inet static

In bold the part of the configuration due to the VLAN support, if you are using the Stretch version please see bellow the additional steps.


3. Restart the Raspberry Pi

Stretch Additional Steps


For the new version of Raspbian (Stretch) the "post-up" has no more effect, for this version please do the following:


1 - Create a file “vlans” in /etc/network/if-up.d/:


$sudo nano /etc/network/if-up.d/vlans


2 - Add the following to it:


ifup eth0.10


3 - Make the file executable:


$sudo chmod 755 /etc/network/if-up.d/vlans


4 - Reboot the Agent, the interface eth0.10 should be up automatically now.


Further reading about Domotz Pro:



·        Remote Network Monitoring Features



·        Pricing



·        Remote Network Management Installation Options



  • Upvote 1
Link to post
Share on other sites
  • Silvio featured and pinned this topic
  • 6 months later...

The multi-VLAN configuration (as well as the possibility of setting Static IP Address) have been simplified and it is available directly in the Web Service page of the Domotz Box itself, on it's port 3000.


E.g.    (assuming the the local IP Address of the Box itself).


You can find all the necessary information for configuring the Domotz Box to monitor multiple VLANs in the Network Info section of the http portal. Network Info:




If DHCP is enabled then the network details will not be editable.



When pressing the VLAN Config button you will see the following screen which will assist you in this configuration.


Link to post
Share on other sites
This topic is now closed to further replies.
  • Create New...