Comment on Basic networking/subnetting question.
neidu3@sh.itjust.works 1 week agoYes, but that’s done on the switch. Basically VLAN tags are applied in one of two ways:
Untagged (sometimes called Access) is something you apply on a switch port. For example, if you assign a port to Untagged VLAN 32, anything connected to that port will only be able to connect to port 32.
Tagged (sometimesreferred to as Trunk), on the other hand, is for traffic that is already assigned a VLAN tag. For example Tagged 32 means that it will allow traffic that already has a VLAN tag of 32. It is possible to assign multiple VLANs to a Tagged port. Whatever is connected to that port will need to be able to talk to the associated VLAN(s).
In your particular case, the best practice would be to assign two ports (One for each host, obviously) to Untagged 32 (arbitrarily chosen number, any VLAN ID will do, as long as you’re consistent), and all the other ports as Untagged to a different VLAN ID. That way the switch will effectively contain two segments that cannot talk to each other.
marauding_gibberish142@lemmy.dbzer0.com 1 week ago
Thank you so much for the explanation. I followed everything but:
I couldn’t really understand what you meant here. Did you mean VLAN 32 in the last line?
neidu3@sh.itjust.works 1 week ago
Derp, yes. Corrected.