On an interface – Use the
spanning-tree portfast
interface configuration command
Globally – Use the
spanning-tree portfast default
global configuration command to enable PortFast on all access ports