Adding VLAN route in Synology NAS
First SSH into the NAS
We need to copy an existing interface file and change the name and contents of this file. We first need to move into the following folder:
cd /etc/sysconfig/network-scriptsThis folder contains all the interface config files (ls to show the contents of the folder). The following file, ifcfg-eth0, will be present in this folder.
First, we need to copy the existing interface config file :
cp ifcfg-eth0 ifcfg-eth0.50Then we open the copied file with:
sudo nano ifcfg-eth0.50Add the content and modify it to your needs:
#VLAN network interface
DEVICE=eth0.50
VLAN_ROW_DEVICE=eth0
VLAN_ID=50
ONBOOT=yes
BOOTPROTO=none # none = No VLAN ip assigned to NAS | dhcp = VLAN IP assigned by router
BOOTPROTO=staticReboot your NAS or:
 sudo /etc/rc.network restart 
