I will give this a try, though it is a bit overwhelming, sorry.
I only need a VLAN on one switch port of the Flint 1. I need the rest of the ports to remain on the upstream subnet. It is very important that this is the setup. I do not need WiFi or anything else, just the one switch port for the VLAN.
Am I making these changes in Luci on the Flint 2? I’m a bit confused, I can’t lie.
So essentially what I’m doing is I’m creating a VLAN on the Flint 2, sending that VLAN downstream via the port connected to the Flint 1 and then essentially ignoring that VLAN on all Flint 1 ports except for one?
If the vlan was untagged from the flint 2 that network is for eth0 (wan) in flint 1, if the vlan was tagged from the flint 2 the network can be found as eth0.<vlan id> in flint 1.
Then you can use it like a device for other ports in the Flint 1.
In my use case i often go for a dumbap approach which means i disable all firewall, and dhcp on the flint 1, and combine vlan devices with the br-lan bridge and turn lan into a dhcp cliënt, theres alot of ways doing this so it is what direction you want really with this vlan device. , its encouraged to check the videos in the dumbap link some can be useful maybe not directly to your use case but it will cover it from adding devices to the bridge as removing firewall zones.
^ tl;dr In case you dont get a dhcp client ip from the vlan then it might be a issue with the firewall zone for that network on the flint 2, its essential the input is set to accept since newly created firewall zones automatically copy the global firewall rules which have normally input to reject.
Since vlan acts as a tunnel it will encapsulate the network and expose clients on the flint 2
Edit
After reviewing this full post again, maybe you dont really need vlan, just eth0 in the bridge of br-lan and lan as dhcp client might be enough sufficient.
So I think I have most of what I need in place now. Correct me if I’m wrong on anything so far.
On Flint 2:
Edit br-lan under Devices tab, go to VLAN Filtering, add VLAN 1 as untagged on all ports. Leave local box checked.
Create a second VLAN (I used VLAN ID 7) and tag the port that is leading to the WAN port on Flint 1. Do I leave the local box checked?
Switch br-lan to br-lan.1 in the Interfaces tab.
Create new interface for the second VLAN. I created br-lan.7
Set protocol as static address. Chose IP address of 192.168.11.1. Chose subnet mask 255.255.255.0 and left gateway empty. Unchecked default gateway option.
Created a new firewall zone named vlan7, with forward destination to WAN. Under covered network option I chose vlan.7. I also set input and output to accept. Do I need to set forward to accept?
Thank you for all of your help with this!! I think I’m much closer to setting this up than before.
you can leave it on reject only if you choose to have multiple subnets you can use the traffic rules to forward very specific devices to talk to each other via different firewall zones, setting this to accept for the zone will mean for all devices can talk to other zones which also have it to accept, which ideally is not really what you want
How do I now see the VLAN 7 on the Flint 1? Is it supposed to show up as a network device, or do I first have to make the Flint 1 aware of the tagged packets?
On the Flint 1 I am not automatically seeing the tagged VLAN network device when I try adding a new interface. Would the Flint 1 have to be set up for the tagged packets beforehand?
My understanding is that the Flint 1 will drop all frames with a VLAN tag that hasn’t already been defined on the Flint 1.
I created the eth0.7 interface as a DHCP client on Flint 1, but I’m not receiving an IP address. I checked the firewall zone that is associated with the interface and confirmed that it is the WAN zone, with input and output set to accept.
Do I need to set up the VLAN filtering on the Flint 1 as well? I feel like I’m so close but I’m missing something small.
if you look to wan it follows the global rules, you can set that one to input accept.
can you check if that works out for you?
tbh, since you gonna go for a dumbap type of settings best is to remove all zones and set everything on accept since your main router takes care of it.
What I forgot to do was go to the DHCP tab under br-lan.7 on the Flint 2 and click the green Set Up DHCP Server. This started up the DHCP service and I am now getting an IP address in the proper DCHP range on eth0.7 on the Flint 1.
So how do I now choose the LAN port I want for the VLAN on the Flint 1?
I was just writing back to you about what I did, it was exactly this.
The last step that that I was missing is creating a bridge that includes eth0.7 as well as the port on the Flint 1 that I want to use as the VLAN after removing said port from br-lan on the Flint 1. I set that up and boom! VLAN configured
xize11, your help has been indispensible!! You have pushed my networking knowledge with VLANs forward tremendously. Can you please check your direct messages?