basic VLANS - Noob
-
@chrischambers
Looking at your image of Unifi settings. There is a misconfiguration of interfaces in the Unifi controller. As John mentioned please revisit the VLAN settings. -
@rameshk said in basic VLANS - Noob:
misconfiguration of interfaces
can you please explain as I can't see this " misconfiguration of interfaces " as I understand it that you create the vlan on the switch and then assign it to the port
-
@chrischambers said in basic VLANS - Noob:
I have the port profile set to All,
How is pfsense to know what is vlan 1 (lan) or vlan 20? For pfsense to know what traffic is what the traffic is ether tagged or untagged.
In this case since lan is native on the igb1 interface it would be untagged. Since you added vlan 20 to this same interface this traffic has to be tagged. You need to edit unifi to tag the vlan 20 traffic when it sends it to pfsense port.
-
@chrischambers
Currently my Unifi controller is off line due to experimenting with VPN and other activities. I will get you more information once I reconnect it. -
@johnpoz said in basic VLANS - Noob:
@chrischambers said in basic VLANS - Noob:
I have the port profile set to All,
How is pfsense to know what is vlan 1 (lan) or vlan 20? For pfsense to know what traffic is what the traffic is ether tagged or untagged.
In this case since lan is native on the igb1 interface it would be untagged. Since you added vlan 20 to this same interface this traffic has to be tagged. You need to edit unifi to tag the vlan 20 traffic when it sends it to pfsense port.
sorry if this all sounds a bit dump but I am I trying to get my head around this: I through that when you enter in a number for the VLAN, in my case 20 and this match's the VLAN on pfsense then this is the tagging.
-
No that just creates a vlan.. Where do you say when its tagged or not tagged
Untagged or Native is when that traffic has no tag on it.. like when connected to a pc.. Or when your sending that traffic to a device that has multiple vlans on it.. Like a port on pfsense, or AP etc..
1 vlan, can be untagged or native. Any other vlans on that port need to be tagged.. So the router, the other switch the AP, etc. can tell the traffic apart.
Since you are having more than 1 network(vlan) on your igb1.. 1 vlan can be untagged (lan) and the other vlan 20 has to be tagged..
https://help.ui.com/hc/en-us/articles/222183968#3
Vlan Tagging.To be honest - the docs for unifi to work with other devices and tag or untagged seems hard to find.. They use to have a doc when working with other switches.. But can not seem to find it..
From what I can tell if set to all, vlan 1 would be untagged.. Any other vlans would be tagged.. So the port connected to pfsense should be set to ALL, and then other port connected to PC would be just vlan 20..
Does your client get on this port get dhcp from vlan 20 on pfsense? If so that is working correctly most likely.. But you should really be able to see what vlans are tagged and untagged on what ports..
-
@chrischambers
Don’t worry mate I have spent hours / days / months with these trying learn and keep my knowledge updated.
Looking at your details I assume that the connection from your Router to Switch (trunk) doesn’t carry both VLANs to the switch. Therefore the switch don’t have any information about the route back to your router/gate way.
I have attached a sketch below to explain. -
@rameshk said in basic VLANS - Noob:
yea that is my set. if I am reading it with that vlan1 is the default traffic and vlan 20 is my test
-
@chrischambers
Check your settings on Unifi controller and let us know how it went. -
@rameshk said in basic VLANS - Noob:
@chrischambers
Check your settings on Unifi controller and let us know how it went.ok I am still having the same issues, I did watch a video about tagging and untagging, but he was creating a DHCP on the switch and not passing the DHCP range through a VLAN.
I did try creating a profile setting the Native network but this didn'twork as I got the same results, that I was able to ping from VLAN to anything but no from LAN to VLAN
and here is a little picture of my network, showing there my DHCP are
-
If your client is getting dhcp from your dhcp server for vlan 20... This means your tagging is correct.. Or your traffic would never hit the vlan dhcp server.
Not being able to ping some device on vlan 20.. You sure there is no firewall on this device. Out of the box windows for example is not going to allow some device from anything but its local network to ping it.
Simple sniff on pfsense vlan 20 interface while you ping the vlan 20 pc IP from lan.. Do you see the ping request go out?
That pic of tagging makes NO sense.. What port is that on.. Your saying vlan 20 is native.. but then you say tag all?
edit: One last time..
P1 on your switch vlan 1 (lan) untagged. Vlan 20 Tagged. Port 15.. Vlan 20 untagged..
-
@johnpoz I take pics as it might be easier then trying to explain.
-
And lets see these profiles.
Tagging vlan 1 to port 15 makes ZERO sense.. The only thing on that port should be 20 and it should be untagged.
-
-
Show the profile on port 1 (pfsense), and the profile on port 15 (pc)
-
@johnpoz said in basic VLANS - Noob:
Show the profile on port 1 (pfsense)
sorry I am cunfused. profile on pfsense - are you asking for the interface information ?
and want do you mean by profile of port 15. is this from the switch ?
please give examples -
@chrischambers I have just check my firewall and this is turn off.
I also just check that the port is working the LAN range and this works, with no issues.
it is just something with VLAN 20 that is missingjust found the old video I used to create my vlans minus the blocking of extra vlans
https://www.youtube.com/watch?v=hhPGN4UJHAM -
Port 1 from your drawing is connected to pfsense... What is the profile you have assigned to port 1 on your switch..
Port 15.. What you showed is WRONG... The only vlan on that should be native vlan 20.. nothing tagged, no other vlans
-
@johnpoz said in basic VLANS - Noob:
Port 1
on port 1 as shown in my drawn the profile is " All "
on port 15 the only profile on is "Test 20 "
with the following settings
-
@johnpoz said in basic VLANS - Noob:
Port 15.. What you showed is WRONG... The only vlan on that should be native vlan 20.. nothing tagged, no other vlans
forget this I was trying something. it is now deleted.