I believe I have a simple question:

I’m planning on buying a second managed switch (B) to connect to my main managed switch (A). For now, I basically want to have two vlans, say, vlan 100 for my home network and vlan 200 for my poe security cameras.

Originally, I was getting switch B just for the extra ports for the cameras, but because the two switches are on opposite ends of the house, I realized I could run an ethernet cable from switch B to a nearby desktop computer (instead of relying on poor wifi).

So, how would I set the two vlans on the two switches?

I assume for switch B I set vlan 100 for the desktop and vlan 200 for the cameras, but what do I do for the port on switch A that is connected to switch B? And is there a name for this configuration method? I was trying to look up this problem online, but had a hard time with the search terms.

Thanks for reading!