VLAN on other LAN
-
I have a Netgate 4100 and 2 UniFi USW-48_PoE switches. I have USW1 connected to LAN1 and USW2 connected to LAN2. I set up VLAN10 using LAN1 as the parent interface. I set up VLAN20 using LAN2 as the parent interface. If I set a USW1 port's port profile to VLAN10 and a USW2 port's port profile to VLAN20, everything works. If I set a USW2 port's port profile to VLAN10, I get an IP from LAN2, not VLAN10. I assume its because I am using VLAN10 on LAN2, when VLAN10 is tied to LAN1. Is there a way to get VLAN10 to work on USW2?
-
@zinder pfsense won't let you assign a VLAN to multiple parent interfaces at the same time. I believe the only exception is if you bridge multiple interfaces together to make a software switch, then assign the VLANs onto the bridged interface.
This is NOT recommended, since it throws switching onto the router hardware itself. So, since the "hack" is to bridge and make a sudo-switch, you're better off doing it all on the much faster switching gear that you already have. @johnpoz has made some very good posts, with diagrams of this exact situation, for connecting multiple down-stream switches together with multiple VLANs passing traffic. Sorry for tagging him in this post, but maybe you could search for those, or he might throw one of the diagrams in here for you.
-
akuma1x,
I tried to search for this, but I'm not sure what key words to use. Are you saying something in my UniFi switch will do what I want, or are you suggesting I just use LAN1 and daisy chain the switches? -
@zinder Here it is, found it!
https://forum.netgate.com/topic/170424/interface-vlans-setup-advice/9
X Y and Z represent the VLANs on separate pfsense interfaces, they go to 3 different switches. On these switches, you have ports for all the VLANS, and the switches are connected together using these VLAN tags. That way, you can pickup/use any of the 3 VLANs, in this example, on any of the 3 switches.
-
akuma1x,
I'm starting to understand. I need to read the post and digest it. I'm not sure how to configure the X, Y, Z ports between the switches. I never thought about doing that.