Jump to content

How to configure support for multipleVLANs - Ubuntu (netplan)


henriquesalvador

Recommended Posts

henriquesalvador

 

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:

 

network:
 version: 2
 renderer: networkd
 ethernets:
   eth0:     
     dhcp4: false
     addresses: [192.168.0.5/24]
 gateway4: 192.168.0.1
     nameservers: 
       addresses: [ "8.8.8.8", "8.8.4.4" ]
 vlans:
   vlan15: 
     id: 15 
     link: eth0
     addresses: [ "192.168.15.5/24" ]
   vlan20:
     id: 20
     link: eth0
     addresses: [ "192.168.20.5/24" ]

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

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

 

sudo netplan apply

 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...