Final answer:
In PVST+, MAC addresses are learned in the C) Learning and Forwarding port states. The Learning state populates the MAC address table without forwarding frames, while in the Forwarding state, frames are sent to destinations and the MAC address table is actively updated.
Step-by-step explanation:
In Per-VLAN Spanning Tree Plus (PVST+), MAC addresses are learned during specific port states. The two port states where MAC addresses are learned are Learning and Forwarding.
The Learning state is when the switch begins to learn the MAC addresses that are trying to communicate through the switch. No data frames are forwarded to the destination during this time but the switch starts to populate its MAC address table.During the Forwarding state, data frames are actively transmitted through the switch to the destination, and the MAC address table continues to be updated with this traffic. This state is also where the usual operation occurs and traffic is forwarded to the appropriate port based on the switch's MAC address table.
The two PVST+ port states in which MAC addresses are learned are Learning and Forwarding.In the Learning state, the switch is actively learning the MAC addresses of devices connected to the port. It does not forward data at this stage.In the Forwarding state, the switch has already learned the MAC addresses and is actively forwarding data packets.