Layer 2 Switching Commands 745Command ModeGlobal Configuration modeUser GuidelinesThis command has no user guidelines.ExampleThe following example enables spanning-tree functionality.console(config)#spanning-treespanning-tree auto-portfastUse the spanning-tree auto-portfast command to set the port to auto portfastmode. This enables the port to become a portfast port if it does not see anyBPDUs for 3 seconds after a link up event. Use the no form of this commandto disable auto portfast mode.Syntaxspanning-tree auto-portfastno spanning-tree auto-portfastDefault ConfigurationAuto portfast mode is enabled by default.Command ModeInterface Configuration (Ethernet, Port Channel) modeUser GuidelinesThere are no user guidelines for this command.ExampleThe following example enables spanning-tree functionality on Gigabitethernet interface 4/0/1.console#configconsole(config)#interface gigabitethernet 4/0/1