In my quest to separate some of my devices (ie IoT-stuff) from the rest of my network, I have (yet again) reached a point where I am stuck :-(
At the moment I want to use my router's built in switch to create a separate subnet with dhcp and vlan-tag on a specific lan port (port #4). I want this subnet to use the 192.168.4.0 ip address range (my orginal home network uses 192.168.1.0 address). I have succesfully been able to create a VLAN, vlan2004 for the router's lan port #4. I have also been able to create a bridge, br4 including the vlan2004 interface.
Now, here's where I get stuck despite trying to read up on the forum.
* Devices connected on lan port #4 (ie vlan2004), with a manually assigned 192.168.4.x ip address, are not able to reach either internet or my original home network. Probably some routing rules missing (ie ebtables or iptables)?
* I can assign an ip address to both the VLAN and the bridge but I don't know which one to use, ie which one should be set as the gateway and have the address 192.168.4.1? It's not possible to ping either ip address of the vlan or the bridge from a connected device.
* Also, I can't get DHCP to work on the subnet, even though I tried using dnsmasq.conf.add as described in the wiki, followed by a "service restart_dnsmasq". Should the dnsmasq.conf.add use the VLAN tag or the bridge in it?
At the moment I want to use my router's built in switch to create a separate subnet with dhcp and vlan-tag on a specific lan port (port #4). I want this subnet to use the 192.168.4.0 ip address range (my orginal home network uses 192.168.1.0 address). I have succesfully been able to create a VLAN, vlan2004 for the router's lan port #4. I have also been able to create a bridge, br4 including the vlan2004 interface.
Now, here's where I get stuck despite trying to read up on the forum.
* Devices connected on lan port #4 (ie vlan2004), with a manually assigned 192.168.4.x ip address, are not able to reach either internet or my original home network. Probably some routing rules missing (ie ebtables or iptables)?
* I can assign an ip address to both the VLAN and the bridge but I don't know which one to use, ie which one should be set as the gateway and have the address 192.168.4.1? It's not possible to ping either ip address of the vlan or the bridge from a connected device.
* Also, I can't get DHCP to work on the subnet, even though I tried using dnsmasq.conf.add as described in the wiki, followed by a "service restart_dnsmasq". Should the dnsmasq.conf.add use the VLAN tag or the bridge in it?