Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
2.5.c and 2.5.d PortFast, BPDU guard and the rest

TutorialLab 1255 min

Lab 125: Configuring Spanning-Tree PortFast

Lab 125: Configuring Spanning-Tree PortFast

We know that Spanning-Tree Protocol (STP) help us to prevent to occur switching loop. However, spanning-tree sometime can also create a problem for your network. For example, suppose you have a server that is connected into your switch. You are sure that there are no chances to occur a switching loop even if STP is disabled. Participating in the STP process can prevent users from accessing the server resources until the STP convergence. Here comes a handy feature called spanning-tree PortFast. Using it means the port, on which this feature is enabled, would not participate in the STP process.

The ports enabled with the PortFast feature would not spend the usual 50 seconds to come up into the forwarding mode while STP is converging. Enabling the PortFast feature on all the switches will disable the STP process on all non-trunk ports. It will cause to take less time to change the state of the interfaces to up on all the non-trunking ports.

The following figure shows the commands used to enable PortFast. First, y ou need to select an interface for which you want to enable the PortFast feature and then execute the spanning-tree portfast command to enable this feature.

A switch console exploring the PortFast command. Under "interface fa0/1", the help for "spanning-tree portfast ?" lists two keywords, "disable Disable portfast for this interface" and "trunk Enable portfast on the interface even in trunk mode", plus <cr>. The command is then entered as "spanning-tree portfast" and the switch answers with the warning that portfast should only be enabled on ports connected to a single host, that connecting hubs, concentrators, switches or bridges to the interface when portfast is enabled can cause temporary bridging loops, and to use with CAUTION. It ends with "%Portfast has been configured on FastEthernet0/1 but will only have effect when the interface is in a non-trunking mode." The source boxes the help listing, the entered command and that closing message in red. The topmost line of the console is cut in half by the scroll area and is not legible, so it is omitted here.

As shown in the preceding figure, the PortFast feature will only have effect when the interface is in a non-trunking mode. So enabling the PortFast feature on a trunk port is useless.

We will use the following topology to demonstrate how the PortFast feature works.

  1. Create the following topology but do not interconnect the devices now.

A 2960-24TT switch named Switch1 drawn above two PC-PT workstations, PC0 on the left and PC1 on the right, with no cables between them yet. A speech bubble beside PC0 reads "PC0 will be connected to interface fa0/1" and one beside PC1 reads "PC1 will be connected to interface fa0/2". No addresses are shown.

  1. Now, execute the following command on Switch to enable the PortFast feature on the Fa0/ 1 interface.

Switch1's console with PortFast being enabled on fa0/1. The session runs "enable", "config t" (answered by "Enter configuration commands, one per line. End with CNTL/Z."), then "interface fa0/1" and "spanning-tree portfast"; those last two commands are boxed in red in the source. The switch prints the warning that portfast should only be enabled on ports connected to a single host and that connecting hubs, concentrators, switches or bridges can cause temporary bridging loops, to be used with CAUTION, then "%Portfast has been configured on FastEthernet0/1 but will only have effect when the interface is in a non-trunking mode." The console window clips the right-hand edge of the three warning lines, so each is transcribed only as far as the last whole word that can be read.

  1. Now connect PC0 to the fa0/ 1 interface and PC1 to the fa0/ 2 interface.

Switch1 drawn above two PC-PT workstations, now cabled: PC0 on the left and PC1 on the right. A speech bubble on the left reads "This link will be activated within 5 seconds" and one on the right reads "This link will be activated within 30 seconds". On the switch, the port light facing PC0 is green while the port light facing PC1 is amber; both lights at the PC ends are green. No interface names or addresses are printed in this figure.

In the preceding figure, you will notice that the Fa0/ 1 interface will be activated within 5 seconds because it will not participate in the STP convergence process. But the Fa0/ 2 interface will take some time, usually 30-50 seconds, in order to come into the Forwarding state. Thas is what the PortFast feature does.

Source: itexamanswers.net