Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

PortFast · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Case Skills Exam

Quick explanation

PortFast allows an edge interface to enter forwarding rapidly instead of waiting for normal spanning-tree convergence. It does not disable spanning tree.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Use only an edge port connected to an end device.
  • Do not enable on an ordinary inter-switch link.
Access edge port Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport mode access
 switchport access vlan [VLAN-ID]
 spanning-tree portfast
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VLAN-ID]
VLAN identifier.
Default on access edge ports Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Review all affected non-trunk interfaces first.
enable
configure terminal
spanning-tree portfast default
end
Trunk to an edge endpoint Optional when requested
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • On a switch with fixed 802.1Q encapsulation, omit the encapsulation selection command if it is not supported. Match native VLAN and allowed VLANs at both ends.
  • Use only for an explicitly intended edge trunk, never a normal switch-to-switch trunk.
enable
configure terminal
interface [INTERFACE]
 switchport
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan [NATIVE-VLAN]
 switchport trunk allowed vlan [ALLOWED-VLANS]
 no shutdown
 spanning-tree portfast trunk
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[NATIVE-VLAN]
Matching native VLAN ID on trunk peers.
[ALLOWED-VLANS]
Comma-separated VLAN IDs and ranges; replace the whole list only when intended.

Show / Verify

Primary verification Section link
show spanning-tree interface [INTERFACE] detail
Example output
The port is in the portfast mode

Confirm the interface is an intended edge port.

Detailed verification Section link
show spanning-tree summary
Example output
Portfast Default is enabled

Check global default when configured.

Connectivity verification

Layer 2 endpoint test

After sending traffic between the intended hosts, verify that the expected MAC addresses are learned on the correct VLAN and interface.

show mac address-table vlan [VLAN-ID]
show interfaces [INTERFACE] switchport

Common mistakes

  • Enabling edge behavior on a redundant switch-to-switch connection.
  • Assuming PortFast disables STP.
  • Using global default without assessing affected ports.
Remove configuration — separate, potentially disruptive actions

Disable PortFast on an interface

Normal convergence behavior resumes on the interface; global defaults are overridden where supported.

enable
configure terminal
interface [INTERFACE]
 spanning-tree portfast disable
 exit
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?