You receive a switch that has VLANs configured on all of its ports. At what layer is the switch operating?

A) Layer 1 (Physical layer)
B) Layer 2 (Data link layer)
C) Layer 3 (Network layer)
D) Layer 4 (Transport layer)