this post was submitted on 24 Nov 2023
2 points (100.0% liked)

Home Networking

189 readers
1 users here now

A community to help people learn, install, set up or troubleshoot their home network equipment and solutions.

Rules

founded 10 months ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 10 months ago (1 children)

This is more dependant on the switch. So I'm gonna say no, for the simple fact, unless the ports are separate, and a member of said VLAN, it's basically a dumb switch. You have to program what ports belong to that VLAN and not the untagged VLAN.

Sorry it isn't just plug and pray.

[–] [email protected] 1 points 10 months ago

Yes currently its set to dumb switch but i can change/tag them according to my needs. Ive already created VLAN1 on edgerouters side for other devices (unifi AP, pc). So this part should not be more difficult in case of VLAN2. Except trunking. So what im asking here would connecting tagged ports (vlan2) on edgerouter and tagged ports on the switch with second cable work? Or should i still try to push both tagged and untagged traffic to switch through one cable

[–] [email protected] 1 points 10 months ago (1 children)

Yes.

On the switch, define the ports that need to be on VLAN2 as "access ports".

VLAN2, Untagged, PVID2

Then use a single cable from your edgerouter to any one of those ports.

Make sure that no other (V)LANs are assigned to that particular port on the EdgeRouter.

[–] [email protected] 1 points 9 months ago

Thanks!

"Untagged" here means default VLAN with id:1 - the one used when nothing is set. By default all ports on the switch are set as untagged for this id.
Maybe i should have marked VLAN1 and VLAN2 as VLAN10 and VLAN20 (with respective id's) to avoid confusion.