设为首页收藏本站language 语言切换
查看: 3611|回复: 2
收起左侧

[分享] CCNA LAB 70: Configuring Spanning Tree Protocol for Access Ports (PortFast)

[复制链接]
 成长值: 63715
发表于 2022-12-19 21:41:50 | 显示全部楼层 |阅读模式
本帖最后由 小乔 于 2022-12-19 21:43 编辑


Lab Objective:
The objective of this lab exercise is to configure access ports to transition immediately to the Forwarding state, instead of going through the typical Spanning Tree states (i.e., Blocking, Listening, Learning, etc.).

Lab Purpose:
Bypassing default Spanning Tree port states is a fundamental skill. By default, it can take up to 60 seconds for a switchport to transition to the Forwarding state and begin forwarding frames. In most cases, this is acceptable; however, on a network with DHCP clients, for example, that need IP addressing information from a DHCP server, this duration may cause these clients to think that the DHCP server is unavailable.

Certification Level:
This lab is suitable for both ICND2 and CCNA certification exam preparation.

Lab Difficulty:
This lab has a difficulty rating of 4/10.

Readiness Assessment:
When you are ready for your certification exam, you should complete this lab in no more than 10 minutes.

Lab Topology:
Please use any single switch for this lab. This lab is strictly about validating command syntax.

Task 1:
Configure a hostname of your liking on your switch, which should have at least 12 ports.

Task 2:
Configure VLAN10 named SALES on the switch.

Task 3:
Configure ports FastEthernet0/1 and FastEthernet0/2 using the interface range command so that Spanning Tree Protocol transitions these interfaces into a Forwarding state immediately. These interfaces should also be configured as access ports in VLAN10.

Task 4:
Verify your configuration using the appropriate commands in Cisco IOS.

Configuration and Verification
Task 1:
For reference information on configuring hostnames, please refer to earlier labs.

Task 2:
For reference information on configuring and verifying VLANs, please refer to earlier labs.

Task 3:
Sw1#conf t
Enter configuration commands, one per line.  End with CTRL/Z.
Sw1(config)#interface range fastethernet0/1 - 2
Sw1(config-if-range)#switchport mode access
Sw1(config-if-range)#switchport access vlan10
Sw1(config-if-range)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface  when portfast is enabled, can cause temporary bridging loops. Use with CAUTION

%Portfast will be configured in 2 interfaces due to the range command but will only have effect when the interfaces are in a non-trunking mode.
Sw1(config-if-range)#end
Sw1#
Task 4:
Sw1#show spanning-tree interface fastethernet 0/2 detail
Port 2 (FastEthernet0/2) of VLAN0010 is forwarding
Port path cost 100, Port priority 128, Port Identifier 128.2.
Designated root has priority 4106, address 000d.bd06.4100
Designated bridge has priority 4106, address 000d.bd06.4100
Designated port id is 128.2, designated path cost 0
Timers: message age 0, forward delay 0, hold 0
Number of transitions to forwarding state: 1   
The port is in the portfast mode
Link type is shared by default
BPDU: sent 81, received 0
The command above won’t work on Packet Tracer so use a show run instead if you don’t have access to a live switch.


来源: CCNA LAB 59: Configuring IOS Device Logging to a SYSLOG Server
来源: CCNA LAB 60: Performing an IOS Upgrade
来源: CCNA LAB  61: Performing an IOS Upgrade Using FTP
来源: CCNA LAB 62: Performing Password Recovery
来源: CCNA LAB 63: Configuring Extended VLANs on Cisco Catalyst Switches
来源: CCNA LAB 64: Changing the Native VLAN and Shutting Down Unused Ports
来源: CCNA LAB 65: Restricting Extended VLANs on Trunks and Changing the VTP Version
来源: CCNA LAB 66: Verifying Spanning Tree Port States on Catalyst Switches
来源: CCNA LAB 67: Configuring Spanning Tree Protocol Root Bridges Manually
来源: CCNA LAB 68: Configuring Spanning Tree Protocol Root Bridges Using the IOS Macro
来源: CCNA LAB 69: Assigning Multiple Instances to a VLAN Simultaneously
您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-23 23:54 , Processed in 0.057327 second(s), 21 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表