Enter config terminal:
config t
Select the interface you need. Normally Fast Ethernet Ports:
interface FastEthernet1
Enable Portfast:
spanning-tree portfast
exit
exit
Save the new config:
copy run start
To perform the operation in bulk you can select the full range of Fast Ethernet ports and thenapply portfast to them all.
Enter config terminal:
conf t
Select the interface range:
interface range fa0 - x
Where x is the last port and 0 is the first.
Enable portfast:
spanning-tree portfast
Exit:
end
Save the config:
copy run start