so I succeded in doing it ^^ . The main goal is to make the NAS available on 2 vlan with its own IP on each while not being available in other networks..
I have to vlan (1 & 3) did the following:
1. In the Parameters/network, I edited the interface and enabled the vlan ID:
2. On the Unifi Switch I created a profile that switch both tags to the port where the NAS is plugged
3. Then I connected to the NAS using SSH and copied the script corresponding to the interface I created:
Code:
cp /etc/sysconfig/network-scripts/ifcfg-eth0.1 /etc/sysconfig/network-scripts/ifcfg-eth0.3
4. edit ifcfg-eth0.3 with the correct settings:
Code:
DEVICE=eth0.3
VLAN_ROW_DEVICE=eth0
VLAN_ID=3
ONBOOT=yes
BOOTPROTO=static
IPV6INIT=auto
IPADDR=192.168.10.10
NETMASK=255.255.255.0
5. reboot the code and normally you will have the nas available for both vlan
Hope it can help.