Jump to content

How to configure support for multipleVLANs - Ubuntu (netplan)


Recommended Posts


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), Domotz Box, Windows, Linux, Synology etc.


This post will explain how to configure mutli-VLAN support via your own self-installed Ubuntu OS (including Ubuntu for Raspberry Pi):


1. Edit the file /etc/netplan/01-netcfg.yaml which is used by the current Ubuntu distribution version to configure the system network:


sudo nano /etc/netplan/01-netcfg.yaml


An example adding the VLANs 15 and 20:


 version: 2
 renderer: networkd
     dhcp4: false
     addresses: []
       addresses: [ "", "" ]
     id: 15 
     link: eth0
     addresses: [ "" ]
     id: 20
     link: eth0
     addresses: [ "" ]

*Do NOT use TAB for indentation. Click here for more examples.

2. Save the file and run the command "netplan apply":


sudo netplan apply



  • Like 1
Link to comment
Share on other sites

  • 11 months later...

When this is pasted in to nano I get this error

:~$ sudo netplan apply
/etc/netplan/01-netcfg.yaml:9:17: Invalid YAML: inconsistent indentation:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...