Final answer:
In a PVST network, a switch learns MAC addresses and processes BPDUs in the Learning and Forwarding port states. The Learning state involves learning MAC addresses without forwarding frames, while the Forwarding state includes both learning and forwarding.
Step-by-step explanation:
In a PVST (Per-VLAN Spanning Tree) network, a switch learns MAC addresses and processes Bridge Protocol Data Units (BPDUs) in two specific port states. These port states are:
Learning
Forwarding
During the Learning state, the switch learns MAC addresses from frames received on the port but does not forward any frames. In the Forwarding state, the switch both learns MAC addresses and forwards frames to the destination addresses. The other port states mentioned, including Blocking, Disabled, and Listening, do not allow for learning MAC addresses or processing BPDUs.