I am running PVST. If I have 2 switches connected to each other over access ports, but they are configured for different VLANs, how does PVST deal with it?

[Switch 1]
Port 1
Access Mode VLAN 10

[Switch 2]
Port 1
Access Mode VLAN 20

I know the traffic leaving switch 1 will become part of VLAN 20 on switch 2, and traffic leaving switch 2 will become part of VLAN 10 on switch 1, since the connection between them is in access mode on both switches and the traffic goes untagged between them. However, I am wondering what will happen with spanning tree since I am running PVST.

Note: I am not wanting to use this situation on purpose.

Nothing will happen. Since you have only 1 connection between the 2 switches. There's no danger of any loop that I can see from the short summary,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.