Simple VLAN question

I have a connection coming into the house, then into a Synology router.

I have 2 VLANS set up, the default one and a 2nd one called Secure.

I don't have Ethernet run in my house but we have 6 coax drops installed and I've got MoCA adapters run which are all currently working. They're plugged into port 2 of the router and everything connected receives an IP address from the default VLAN.

I tried putting a smart switch in between the router and the MoCA network with port 2 of the router to port 2 of the switch, and port 7 of the switch to the network. I thought I had the Secure VLAN set up on the ports right but nothing on the MoCA network is working.

I've attached screenshots to show how I have things configured. If anyone could chime in on what I've configured wrong I'd appreciate it.
 

Attachments

  • Screenshot 2023-06-11 at 1.25.21 PM.png
    Screenshot 2023-06-11 at 1.25.21 PM.png
    210.5 KB · Views: 75
  • Screenshot 2023-06-11 at 1.25.05 PM.png
    Screenshot 2023-06-11 at 1.25.05 PM.png
    120.6 KB · Views: 39
  • Screenshot 2023-06-11 at 1.24.47 PM.png
    Screenshot 2023-06-11 at 1.24.47 PM.png
    299.2 KB · Views: 40
  • Screenshot 2023-06-11 at 1.24.29 PM.png
    Screenshot 2023-06-11 at 1.24.29 PM.png
    303.9 KB · Views: 44
  • Screenshot 2023-06-11 at 1.05.40 PM.png
    Screenshot 2023-06-11 at 1.05.40 PM.png
    134.1 KB · Views: 44

Gandalf007

Ars Tribunus Angusticlavius
6,975
Subscriptor
So the last screenshot is your router and the others are the switch?

Do you have any routing between VLANs configured? Otherwise they will act as if they were separate physical networks. Or maybe you don't want routing between VLANs 1 and 27, but just need to configure a DHCP server for VLAN 27 (and maybe NAT to the WAN, if you want internet access)?

Configuring clients with static IP addresses may help with debugging, e.g. ensuring you have connectivity between switch and router but just need DHCP.
 
So the last screenshot is your router and the others are the switch?
Right
Do you have any routing between VLANs configured? Otherwise they will act as if they were separate physical networks. Or maybe you don't want routing between VLANs 1 and 27, but just need to configure a DHCP server for VLAN 27 (and maybe NAT to the WAN, if you want internet access)?
NAT and DHCP are already configured for both VLANs.
And I think you're asking about an option on the Synology called network isolation, that is turned off for both subnets.
Right now I've made port 4 on the router an access port for VLAN 27 with my PLEX server on it and it receives an IP from the .27 subnet (which is why I went with VLAN #27, for clarity) and I can reach it from both VLANs currently with anything connected to any port on the router.
 

Andrewcw

Ars Legatus Legionis
19,138
Subscriptor
If you have 6 COAX drops and you want to enforce VLAN's. You might need 5 managed switches at each end point or devices that tag.
MoCA doesn't strip VLAN tags. But anything transmitted back that isn't going through a managed switch has no vlan tag unless your device is specifically adding a VLAN tag. So Your Port 2 connected to you MoCA network while you have it to send tags. What does it do with Untagged traffic coming back at it. So it should be your MoCA network connected to port 2 on your router. And your smart switch on the other end of another MoCA adapter. With that port also listening for those VLANs. And the rest of your ports will tag appropriately. The issue will be the other 4 MoCA adapters if they don't have devices tagging.
 
Alright, I'm going to break this down mostly for my own clarity. I'm just learning about these more advanced networking topics.
If you have 6 COAX drops and you want to enforce VLAN's. You might need 5 managed switches at each end point or devices that tag.
MoCA doesn't strip VLAN tags. But anything transmitted back that isn't going through a managed switch has no vlan tag unless your device is specifically adding a VLAN tag.
See the attached network layout diagram. Everything on the MoCA segment should be in the same VLAN. So as long as the switch port the head adapter is plugged into is set up as the untagged port for that VLAN that should work, right?
This same port should be a tagged port for the main VLAN too, yes?
Or am I not understanding.
So Your Port 2 connected to you MoCA network while you have it to send tags. What does it do with Untagged traffic coming back at it. So it should be your MoCA network connected to port 2 on your router. And your smart switch on the other end of another MoCA adapter. With that port also listening for those VLANs. And the rest of your ports will tag appropriately. The issue will be the other 4 MoCA adapters if they don't have devices tagging.
I think the way I have everything set up makes this requirement moot, but maybe not. Again, check the diagram.
 

Attachments

  • Network topology.png
    Network topology.png
    161.2 KB · Views: 48
Take a step back. If you plug in a computer into port 7 right now. Does it work?
And only after you plug 7 back into the MoCA network it goes haywire when trying to use it on the exit side of the adapter pairing.
I reset the switch and carefully set up the VLAN again. All computers and other devices (AppleTV, etc) appear to be working correctly on the MoCA segment.
They all receive IP addresses from the proper subnet.
And if that is the case. See what happens when you disconnect the FAR Synology node.
The only outlier is this. The Synology mesh unit goes offline when the VLAN is active but works fine through the switch and MoCA segment if it's plugged into a port that's not part of the defined VLAN.
How your MoCA adapters deal with VLANs is likely undefined unless the adapters specifically say they support VLANs.
They seem to just pass the tags along to the endpoint.
Why are you tagging VLAN 1 heading to the MoCA network?
I was going based on this video:

View: https://youtu.be/Z8PYtgnvzR8
 
What are you actually trying to accomplish?
Keeping smart devices segmented from computers and game consoles.
The smart device's wireless network is confined to 2.4G, the computers and consoles are on a different subnet and their wireless network gets the 2 5G bands.
How do you know this? Also, if they don't explicitly support VLANs it's possible they allow some frame lengths but drop others with the tag.
Just based on the fact that everything plugged into that segment is getting IP addresses from the correct subnet?

This is what I'm using:
https://www.gocoax.com/product-page/ma2500c
I can't find a page with their tech specs, but according to their FAQ:

Can your MoCA devices bridge 802.1q VLAN tagged packets?​


Yes, some MoCA devices can bridge 802.1q VLAN tagged packets. However, it is important to check the specifications of the specific MoCA device you are using to ensure that it supports VLAN tagging. Some MoCA devices may not support VLAN tagging, or may require specific configuration settings to enable this feature.
 
I scrapped the whole concept. Bit the bullet and got a micro PC with 4x 2.5GbE ports on it and am now learning pfSense.
Synology router is in AP mode, it untags VLANs correctly for the wifi networks, and it still allows integration with LDAP for RADIUS auth, so I'm mostly happy.

Now I'm banging my head up against learning the care and maintenance of proper firewall rules.
My logic never seems to coincide with it's logic.

I've not yet had my 'Ah Ha' moment, but I'm working for it.
 

Attachments

  • IMG_0420.jpeg
    IMG_0420.jpeg
    122.8 KB · Views: 41

Rickybobby26

Smack-Fu Master, in training
2
This is crazy but your entire story corresponds to almost exactly what I went through this past summer. I went with a Firewalla Gold pro I think it’s called. It’s a 4 port 2.5 gbe mini pc. The software is closed but highly customizable and able to run docker containers, and the hardware is pretty open I figured worst comes to worse, I can run psense. And I scrapped all of Synology networking equipment all together. They don’t fully comply with the 802.11q standard for vlan traffic. For the rest of my network and wireless, I went with NETGEAR Insight Cloud Managed wireless access points and mini switches. So I have a pile of Synology $#!+ over in the corner. Needless to say- I am not very happy with them.😡
 
This is an old thread, but in all the OP's posts I never saw it clarified where the tagged vs. untagged packets were actually terminating. I assume they were meant for the Synology MESH, but then all those client PCs were getting it too.

In general, most client devices, whether they are IoT devices, PCs, or anything else SHOULD be on an Access port. Meaning a port that is untagged in a single vlan no trunk.
In the designs shown, it's never clear where these trunks terminate and the subnets broken out.

There are cases where a trunk is appropriate for client devices. Voice vlans being the biggest one. But the 90% case, this isn't true.

So I think from the beginning this was not a recommended design.
 

Rickybobby26

Smack-Fu Master, in training
2
I believe the actual problem is using the Synology equipment with any other networking equipment while trying to tag. I did experience the exact same issue with the mesh any time I tried to segment part of my network which included a NETGEAR gs108tv3- which is a fully managed and compliant switch. That happened any time I tried over the course of a few years actually and never was able to segment with the 2600 anmd 2200 Synology network equipment. More recently I had purchased the newest generation of synology equipment with wifi6 compatibility- 100% totally expecting the VLAN issue to have been user error or some setting somewhere deep down I could never find. Only thing is, I had the same exact issues on the brand new equipment that I had previously except now I had more access points and segmenting was no longer optional at this point. Synology “VLANS” are proprietary.
 

ferzerp

Ars Tribunus Angusticlavius
6,023
Most of the home VLAN setups that I see that don't work come down to two main things:

1) the person setting it up just not understanding the concept fully
2) not configuring the equipment properly (e.g. they'll set a port to a VLAN, but then not set that port to tag all incoming traffic with that VLAN so the connected system is sending untagged traffic, and the switch doesn't add the tag).
 

iljitsch

Ars Tribunus Angusticlavius
9,637
Subscriptor++
If you want to have an extra network to connect stuff you don't trust to so those devices can't look at the traffic between your more trusted stuff, the way to do that with VLANs is:

A: the default VLAN for the more trusted stuff
B: the second VLAN for the less trusted

Now any switch or router needs to know which VLANs go on which of its ports, and in what way: tagged or untagged. Tagged means that an extra 4-byte header is added to the Ethernet frame that holds the VLAN ID so routers and switches on the other side know which VLAN those packets belong to.

Untagged is, well, untagged, which means a regular packet the same as without VLANs. Because there is no VLAN ID in the packet the router or switch needs to have a default VLAN ID for ports that handle untagged packets.

Now what you want to do is make VLAN A the default VLAN. Usually that's number 1. Then between the routers/switches, add VLAN B, let's give that VLAN ID 666, as a tagged VLAN. And then on the ports that connect to the untrusted stuff, you have VLAN 666 as the default/untagged VLAN and VLAN 1 does not go to these ports.

If the MOCA stuff is between two switches or a switch and a router that will do VLAN 1 untagged + VLAN 666 tagged, then there is absolutely no reason that the untagged VLAN 1 packets won't get through. It's also extremely probable that that the tagged VLAN 666 packets will make it through.

However, there are two reasons why MOCA stuff or anything else in the middle won't allow tagged packets through:

1. The device implements VLANs itself and is not configured to handle this particular VLAN
2. Tagged packets are 4 bytes larger than the old Ethernet spec allows for and the device can't handle the extra bytes. So 1500 byte IP packets will not make it through

In the first case nothing works, but in the second case pings will work but most regular communication won't.
 

von Chaps

Ars Scholae Palatinae
2,186
Subscriptor
Now what you want to do is make VLAN A the default VLAN. Usually that's number 1.
FWIW, and if it's a green-field site, it might be worth avoiding VLAN 1. There is/was some feeling that its use could lead to some problems. IDK if that was ever really true or whether it still is but, if you have the chance, it might be judicious to just skip it.

I use a VLAN id that matches the /24, so

192.168.10.0/24 is VLAN id 10
192.168.20.0/24 is VLAN id 20
etc.

Which is nice, because I didn't want to use 192.168.1.0/24 anyway because of the potential for clashes if VPNing to another network (and sometimes modems & routers want to use it), so VLAN 1 is out of the picture in this scheme.
 
  • Like
Reactions: Paladin