This command essentially disables spanning-tree on an interface and brings it immediately into the forwarding state. Only use this command on access ports
The port goes through all the spanning tree timers. Here is the listening phase.
Here is the learning phase.
Finally the port is forwarding.
Now we will configure portfast on Fa0/2.
Notice how Fa0/2 is no longer seen in spanning tree.