当前位置:首页 >> 信息与通信 >>

STP实验报告


BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

ATEN

企业网络高级技术
STP 实验报告
第三组

2T57:王攀

2007 年-11 月 28 日
Page: 1/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

1.1 实验任务
配置交换机的优先级,实现网络的负载分担,并配置骨干交换机之间的 EhternetChannel

1.2 试验环境和网络拓扑

1.3 完成标准
(1) 按照拓扑图连接交换机。 (2) 在交换机上配置 VLAN,启用 STP,实现不同的 VLAN 选择不同的根网桥,实现负 载分担。 (3) 在接入交换机上配置上行速链路。 (4) 配置接入交换机连接主机的端口为速端口。 (5) 在两台核心交换机之间配置以太网通道。

2. 详细操作步骤
Step 1:在交换机上添加 VLAN
在交换机 A、B、C 和 D 上添加 VLAN 2、3、4 配置各交换机之间连接的接口为 Trunk 模式 交换机 A 配置如下: A#conf t Enter configuration commands, one per line. End with CNTL/Z. A(config)#interface range f0/1 - 2 A(config-if-range)#switchport mode trunk //配置端口 1~2 为中继 A(config-if-range)#

Page: 2/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

*Mar 1 00:04:01.611: %DTP-5-TRUNKPORTON: Port Fa0/1-2 has become dot1q trunk A(config-if-range)#interface range f0/10 – 11 //配置端口 11~12 为中继 A(config-if-range)#switchport mode trunk A(config-if-range)# *Mar 1 00:04:36.191: %DTP-5-TRUNKPORTON: Port Fa0/10-11 has become dot1q trunk A(config-if-range)#exit A(config)#exit A# A#vlan database A(vlan)#vtp domain 2t57 Changing VTP domain name from NULL to 2t57 A(vlan)#vtp server Device mode already VTP SERVER. A(vlan)#exit APPLY completed. Exiting.... A# A#vlan database A(vlan)#vlan 2 name VLAN2 VLAN 2 added: Name: VLAN2 A(vlan)#vlan 3 name VLAN3 VLAN 3 added: Name: VLAN3 A(vlan)#vlan 4 name VLAN4 VLAN 4 added: Name: VLAN4 A(vlan)#exit APPLY completed. Exiting.... A# A#show vlan-s

//配置 VTP 域为 2t57

//配置 VTP 模式为 Server

//添加 VLAN 2、3、4

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/0, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/12, Fa0/13, Fa0/14, Fa0/15 2 VLAN2 active 3 VLAN3 active 4 VLAN4 active 1002 fddi-default active 1003 token-ring-default active

Page: 3/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

1004 fddinet-default 1005 trnet-default

active active

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1 enet 100001 1500 1002 1003 2 enet 100002 1500 0 0 3 enet 100003 1500 0 0 4 enet 100004 1500 0 0 1002 fddi 101002 1500 1 1003 1003 tr 101003 1500 1005 0 srb 1 1002 1004 fdnet 101004 1500 1 ibm 0 0 VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1005 trnet 101005 1500 1 ibm 0 0 A# A#show interface f0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none A#show interface f0/2 switchport Name: Fa0/2 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) //查看端口 1 //端口开启 //管理模式:中继 //运行模式:中继 //管理中继封装:802.1Q //运行中继封装:802.1Q //中继协商:未开启 //VLAN 通过模式:0(非活动) //本地 VLAN 中继模式:1(默认) //多 VLAN 中继开启:所有 //活动的中继多 VLAN:1-4 //未标记的帧优先级:0 //超量标记帧优先级:错误 //语音 VLAN:无 //信任的运行:无 //查看端口 2

//运行模式:中继

Page: 4/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none A#show interface f0/10 switchport Name: Fa0/10 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none A#show interface f0/11 switchport Name: Fa0/11 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none

//查看端口 10

//运行模式:中继

//查看端口 11

//运行模式:中继

交换机 B 配置如下: B#conf t Enter configuration commands, one per line. End with CNTL/Z.

Page: 5/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

B(config)#interface range f0/1 – 2 //配置端口 1-2 为中继 B(config-if-range)#switchport mode trunk B(config-if-range)# *Mar 1 00:05:18.543: %DTP-5-TRUNKPORTON: Port Fa0/1-2 has become dot1q trunk B(config-if-range)#interface range f0/10 – 11 //配置端口 10-11 为中继 B(config-if-range)#switchport mode trunk B(config-if-range)# *Mar 1 00:05:45.963: %DTP-5-TRUNKPORTON: Port Fa0/10-11 has become dot1q trunke xit B(config)#exit B# B#vlan database B(vlan)#vtp domain 2t57 Domain name already set to 2t57 . B(vlan)#exit APPLY completed. Exiting.... B# B#show vlan-s

//配置 VTP 域名为 2t57

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/0, Fa0/3, Fa0/4, Fa0/5 Fa0/6, Fa0/7, Fa0/8, Fa0/9 Fa0/12, Fa0/13, Fa0/14, Fa0/15 2 VLAN2 active 3 VLAN3 active 4 VLAN4 active //VTP 同步 VLAN 成功 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1 enet 100001 1500 1002 1003 2 enet 100002 1500 0 0 3 enet 100003 1500 0 0 4 enet 100004 1500 0 0 1002 fddi 101002 1500 0 1 1003 1003 tr 101003 1500 1005 0 srb 1 1002 1004 fdnet 101004 1500 1 ibm 0 0

Page: 6/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1005 trnet 101005 1500 1 ibm 0 0 B# B#show interface f0/1 switchport Name: Fa0/1 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none B#show interface f0/2 switchport Name: Fa0/2 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none B#show interface f0/10 switchport Name: Fa0/10 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q //查看端口 1

//运行模式:中继

//查看端口 2

//运行模式:中继

//查看端口 10

//运行模式:中继

Page: 7/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none B#show interface f0/11 switchport Name: Fa0/11 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none

//查看端口 11

//运行模式:中继

交换机 C 配置如下: C#conf t Enter configuration commands, one per line. End with CNTL/Z. C(config)#interface range f0/10 – 11 //配置端口 10-11 为中继 C(config-if-range)#switchport mode trunk C(config-if-range)# *Mar 1 00:06:14.191: %DTP-5-TRUNKPORTON: Port Fa0/10-11 has become dot1q trunk C(config-if-range)#exit C(config)#exit C# C#vlan d C(vlan)#vtp domain 2t57 Domain name already set to 2t57 . C(vlan)#vtp client Setting device to VTP CLIENT mode. C(vlan)#exit

//配置 VTP 域名为 2t57 //配置 VTP 为客户模式

Page: 8/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

In CLIENT state, no apply attempted. Exiting.... C#show vlan-s VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3 Fa0/4, Fa0/5, Fa0/6, Fa0/7 Fa0/8, Fa0/9, Fa0/12, Fa0/13 Fa0/14, Fa0/15 2 VLAN2 active 3 VLAN3 active 4 VLAN4 active //VTP 同步 VLAN 成功 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1 enet 100001 1500 1002 1003 2 enet 100002 1500 0 0 3 enet 100003 1500 0 0 4 enet 100004 1500 0 0 1002 fddi 101002 1500 0 1 1003 1003 tr 101003 1500 1005 0 srb 1 1002 VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1004 fdnet 101004 1500 1 ibm 0 0 1005 trnet 101005 1500 1 ibm 0 0 C# C#show interface f0/10 switchport Name: Fa0/10 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) //查看端口 10

//运行模式:中继

Page: 9/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none C#show interface f0/11 switchport Name: Fa0/11 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none

//查看端口 11

//运行模式:中继

交换机 D 配置如下: D#conf t Enter configuration commands, one per line. End with CNTL/Z. D(config)#interface range f0/10 – 11 //配置端口 10-11 为中继 D(config-if-range)#switchport mode trunk D(config-if-range)#e *Mar 1 00:06:41.843: %DTP-5-TRUNKPORTON: Port Fa0/10-11 has become dot1q trunkx it D(config)#exit D# D#vlan d D(vlan)#vtp domain 2t57 Domain name already set to 2t57 . D(vlan)#vtp client Setting device to VTP CLIENT mode. D(vlan)#exit In CLIENT state, no apply attempted. Exiting.... D#show vlan-s

//配置 VTP 域名为 2t57 //配置 VTP 为客户模式

Page: 10/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/3 Fa0/4, Fa0/5, Fa0/6, Fa0/7 Fa0/8, Fa0/9, Fa0/12, Fa0/13 Fa0/14, Fa0/15 2 VLAN2 active 3 VLAN3 active 4 VLAN4 active //VTP 同步 VLAN 成功 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1 enet 100001 1500 1002 1003 2 enet 100002 1500 0 0 3 enet 100003 1500 0 0 4 enet 100004 1500 0 0 1002 fddi 101002 1500 0 1 1003 1003 tr 101003 1500 1005 0 srb 1 1002 VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ -----1004 fdnet 101004 1500 1 ibm 0 0 1005 trnet 101005 1500 1 ibm 0 0 D# D#show interface f0/10 switchport Name: Fa0/10 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE

//查看端口 10

//运行模式:中继

Page: 11/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Voice VLAN: none Appliance trust: none D#show interface f0/11 switchport Name: Fa0/11 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: Disabled Access Mode VLAN: 0 ((Inactive)) Trunking Native Mode VLAN: 1 (default) Trunking VLANs Enabled: ALL Trunking VLANs Active: 1-4 Priority for untagged frames: 0 Override vlan tag priority: FALSE Voice VLAN: none Appliance trust: none

//查看端口 11

//运行模式:中继

Step 2:配置根网桥
(1) 配置交换机 A 为 VLAN 1 和 2 的根网桥 交换机 A 配置如下: A#conf t Enter configuration commands, one per line. End with CNTL/Z. A(config)#spanning-tree vlan 1 root primary //配置成为 VLAN1 的根网桥 % This switch is already the root of VLAN1 spanning tree //这个交换机已经是 VLAN1 生成树的根网桥 VLAN 1 bridge priority set to 8192 //VLAN1 网桥优先级设置为 8192 VLAN 1 bridge max aging time unchanged at 20 //VLAN1 网桥最大生存时间 20 不变 VLAN 1 bridge hello time unchanged at 2 //VLAN1 网桥握手时间 2 不变 VLAN 1 bridge forward delay unchanged at 15 //VLAN1 网桥转发延迟 15 不变 A(config)#spanning-tree vlan 2 root primary //配置成为 VLAN2 的根网桥 % This switch is already the root of VLAN2 spanning tree //这个交换机已经是 VLAN2 生成树的根网桥 VLAN 2 bridge priority set to 8192 VLAN 2 bridge max aging time unchanged at 20 VLAN 2 bridge hello time unchanged at 2 VLAN 2 bridge forward delay unchanged at 15 A(config)#exit A# *Mar 1 00:20:38.031: %SYS-5-CONFIG_I: Configured from console by console A#show spa brief //查看交换机 A 生成树信息

Page: 12/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

VLAN1 //VLAN1 Spanning tree enabled protocol ieee //生成树开启的协议 ieee Root ID Priority 8192 //根网桥优先级 8192 Address cc00.0d08.0000 //地址 cc00.0d08.0000 This bridge is the root //这个网桥是根网桥 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec //握手时间 2 秒 最大生存期 20 秒 转发延迟 15 秒 Bridge ID Priority 8192 //网桥 ID 优先级 8192 Address cc00.0d08.0000 //地址 cc00.0d08.0000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec //握手时间 2 秒 最大生存期 20 秒 转发延迟 15 秒 Aging Time 300 //生存期 300 Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0d08.0000 128.2 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.0d08.0000 128.3 FastEthernet0/10 128.11 128 19 FWD 0 8192 cc00.0d08.0000 128.11 FastEthernet0/11 128.12 128 19 FWD 0 8192 cc00.0d08.0000 128.12 //根网桥上所有端口均为指定端口,所有端口状态:转发 VLAN2 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.0d08.0001 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc00.0d08.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0d08.0001 128.2 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.0d08.0001 128.3 FastEthernet0/10 128.11 128 19 FWD 0 8192 cc00.0d08.0001 128.11 FastEthernet0/11 128.12 128 19 FWD 0 8192 cc00.0d08.0001 128.12

Page: 13/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

VLAN3 Spanning tree enabled protocol ieee Root ID Priority 32768 Address cc00.0d08.0002 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc00.0d08.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 32768 cc00.0d08.0002 128.2 FastEthernet0/2 128.3 128 19 FWD 0 32768 cc00.0d08.0002 128.3 FastEthernet0/10 128.11 128 19 FWD 0 32768 cc00.0d08.0002 128.11 FastEthernet0/11 128.12 128 19 FWD 0 32768 cc00.0d08.0002 128.12

VLAN4 Spanning tree enabled protocol ieee Root ID Priority 32768 Address cc00.0d08.0003 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc00.0d08.0003 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 32768 cc00.0d08.0003 128.2 FastEthernet0/2 128.3 128 19 FWD 0 32768 cc00.0d08.0003 128.3 FastEthernet0/10 128.11 128 19 FWD 0 32768 cc00.0d08.0003 128.11 FastEthernet0/11 128.12 128 19 FWD 0 32768 cc00.0d08.0003 128.12

(2) 配置交换机 B VLAN3~4 的优先级为 8192

Page: 14/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

交换机 B 配置如下: B#conf t Enter configuration commands, one per line. End with CNTL/Z. B(config)#spanning-tree vlan 3 priority 8192 //配置 VLAN3 网桥优先级为 8192 B(config)#spanning-tree vlan 4 priority 8192 //配置 VLAN4 网桥优先级为 8192 B(config)#exit B# *Mar 1 00:22:19.671: %SYS-5-CONFIG_I: Configured from console by console B#show spa brief VLAN1 Spanning tree enabled protocol ieee Root ID Priority 8192 //根网桥优先级 8192 Address cc00.0d08.0000 Cost 19 //根路径成本 19 Port 2 (FastEthernet0/1) //端口 2(FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 //网桥优先级 32768 Address cc00.1444.0000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0d08.0000 128.2 FastEthernet0/2 128.3 128 19 BLK 0 8192 cc00.0d08.0000 128.3 FastEthernet0/10 128.11 128 19 FWD 19 32768 cc00.1444.0000 128.11 FastEthernet0/11 128.12 128 19 FWD 19 32768 cc00.1444.0000 128.12 //端口 2 被阻塞 VLAN2 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.0d08.0001 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc00.1444.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Page: 15/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0d08.0001 128.2 FastEthernet0/2 128.3 128 19 BLK 0 8192 cc00.0d08.0001 128.3 FastEthernet0/10 128.11 128 19 FWD 19 32768 cc00.1444.0001 128.11 FastEthernet0/11 128.12 128 19 FWD 19 32768 cc00.1444.0001 128.12 //端口 2 被阻塞 VLAN3 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.1444.0002 This bridge is the root //成为 VLAN3 的根网桥 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc00.1444.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.1444.0002 128.2 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.1444.0002 128.3 FastEthernet0/10 128.11 128 19 FWD 0 8192 cc00.1444.0002 128.11 FastEthernet0/11 128.12 128 19 FWD 0 8192 cc00.1444.0002 128.12 //根网桥上所有端口均为指定端口,所有端口状态:转发 VLAN4 //成为 VLAN4 的根网桥 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.1444.0003 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc00.1444.0003 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 Designated

Interface

Page: 16/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.1444.0003 128.2 FastEthernet0/2 128.3 128 19 LRN 0 8192 cc00.1444.0003 128.3 FastEthernet0/10 128.11 128 19 FWD 0 8192 cc00.1444.0003 128.11 FastEthernet0/11 128.12 128 19 FWD 0 8192 cc00.1444.0003 128.12 //根网桥上所有端口均为指定端口,所有端口状态:转发 交换机 A 配置如下: A#show spa brief VLAN1 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.0d08.0000 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc00.0d08.0000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0d08.0000 128.2 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.0d08.0000 128.3 FastEthernet0/10 128.11 128 19 FWD 0 8192 cc00.0d08.0000 128.11 FastEthernet0/11 128.12 128 19 FWD 0 8192 cc00.0d08.0000 128.12

VLAN2 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.0d08.0001 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 8192 Address cc00.0d08.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Page: 17/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.0d08.0001 128.2 FastEthernet0/2 128.3 128 19 FWD 0 8192 cc00.0d08.0001 128.3 FastEthernet0/10 128.11 128 19 FWD 0 8192 cc00.0d08.0001 128.11 FastEthernet0/11 128.12 128 19 FWD 0 8192 cc00.0d08.0001 128.12

VLAN3 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.1444.0002 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc00.0d08.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.1444.0002 128.2 FastEthernet0/2 128.3 128 19 BLK 0 8192 cc00.1444.0002 128.3 FastEthernet0/10 128.11 128 19 FWD 19 32768 cc00.0d08.0002 128.11 FastEthernet0/11 128.12 128 19 FWD 19 32768 cc00.0d08.0002 128.12

VLAN4 Spanning tree enabled protocol ieee Root ID Priority 8192 Address cc00.1444.0003 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 32768 Address cc00.0d08.0003 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Page: 18/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/1 128.2 128 19 FWD 0 8192 cc00.1444.0003 128.2 FastEthernet0/2 128.3 128 19 BLK 0 8192 cc00.1444.0003 128.3 FastEthernet0/10 128.11 128 19 FWD 19 32768 cc00.0d08.0003 128.11 FastEthernet0/11 128.12 128 19 FWD 19 32768 cc00.0d08.0003 128.12

Step 3:配置以太网通道
配置交换机 A 与 B 之间的以太网通道 交换机 A 配置如下: A#conf t Enter configuration commands, one per line. End with CNTL/Z. A(config)#interface range f0/1 – 2 //端口 1 和 2 A(config-if-range)#channel-group 1 mode on //以太通道 1 模式开启 Creating a port-channel interface Port-channel1 //创建一个以太通道 Port-channel1 A(config-if-range)# *Mar 1 00:25:57.543: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po1 *Mar 1 00:25:58.363: %EC-5-BUNDLE: Interface Fa0/2 joined port-channel Po1 //端口 1 和 2 加入到以太通道 Po1 A(config-if-range)# *Mar 1 00:26:00.091: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-chann el1, changed state to up //在以太通道 1 上的线路协议,修改参数启用 A(config-if-range)#exit A(config)#exit A# *Mar 1 00:26:09.175: %SYS-5-CONFIG_I: Configured from console by console A# A#show interface port 1 //查看通道 1 Port-channel1 is up, line protocol is up //以太通道 1 开启,线路协议开启 Hardware is EtherChannel, address is cc00.0d08.f001 (bia cc00.0d08.f001) //硬件是 EtherChannel. 地址是 cc00.0d08.f001 MTU 1500 bytes, BW 200000 Kbit, DLY 1000 usec, //MTU: Maximum Transmission Unit (最大数据包传输单位) 1500 字节 //BW: Band Width (频带宽度) 200000 千位 (表示通道建立成功,原值位 100000Kbit) //DLY: Delay (端口延迟) 1000 毫秒 reliability 255/255, txload 1/255, rxload 1/255 //可靠性 255/255,发送负载 1/255,接收负载 1/255 Encapsulation ARPA, loopback not set //封装 ARPA 接口回环没有设置 Keepalive set (10 sec) //保活设置(10 秒) Full-duplex, 100Mb/s //全双工,100Mb/s

Page: 19/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Members in this channel: Fa0/1 Fa0/2 //在此通道中的成员:端口 0/1 端口 0/2 ARP type: ARPA, ARP Timeout 04:00:00 //地址解析协议类型:ARPA,ARP 超时 04:00:00 Last input 00:00:00, output never, output hang never //Last input: 自从接口接受到最近的一个数据包后的时间。当该数据包是被 precess-switch 的方式转发的时候计数器会更新,而当该包是被 fast-switch 的方式转发时则不更新计数器 00:00:00 //output: 自从接口发送最后一个数据包以后 //output hang: 接口因数据包传输时间过长而重启的时间,never 为没有重启过 Last clearing of "show interface" counters never //清除接口统计计数器后的时间 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 //输入列队: 0/75/0/0 (长度/最大/丢弃/淹没);总输出丢弃:0 Queueing strategy: fifo //列队策略:fifo Output queue: 0/40 (size/max) //输入列队:0/40 (长度/最大) 5 minute input rate 0 bits/sec, 0 packets/sec //5 分钟输入率 0 位/秒,0 包/秒 5 minute output rate 0 bits/sec, 0 packets/sec //5 分钟输出率 0 位/秒,0 包/秒 0 packets input, 0 bytes, 0 no buffer //0 包输入,0 字节,由于没有足够缓冲丢弃的数据包 0 个 Received 0 broadcasts, 0 runts, 0 giants, 0 throttles //收到的广播和多播数据包数量 0,小于介质最小包大小而被丢弃的包的个数 0,大 于介质最大包大小而被丢弃的包的个数 0,接口 disable 的次数 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored //输入错误 0,CRC:接口接收到的冗余校验和的数量 0,frame:接受到的含有 CRC 错误和非整数的十进制数目的数据包的数量 0,overrun:因为输入的速率超出了接受者硬 件的处理能力没有硬件缓存来处理的次数 0, ignored:因为接口的内部缓存而造成的接受 到数据包被忽略的数目 0 input packets with dribble condition detected //frame 超长输入的数据包个数 0 0 packets output, 0 bytes, 0 underruns //系统发出的数据包格数 0,系统接发的所有数据包 0 字节,发送者传输过快导致路 由器无法处理的次数 0 output errors, 0 collisions, 1 interface resets //接口认为的所有传输数据包的错误的总和 0,因为以太网冲突导致重传的数据包的 个数 0,接口重启次数 1 0 babbles, 0 late collision, 0 deferred //传输的计时器到 0, //late collision:传输数据包序文报头后发生的碰撞叫 late collisions。通常发生 late collision 都是因为以太网的线缆过长,超出了它所能传输的距离限制造成的 //deferred:因为载波的问题,芯片延后传输帧 0 lost carrier, 0 no carrier //传输过程中丢失载波次数,没有载波的次数 0 output buffer failures, 0 output buffers swapped out //输出缓存错误 0,输出缓存交换 0 交换机 B 配置如下: B#conf t Enter configuration commands, one per line. End with CNTL/Z.

Page: 20/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

B(config)#interface range f0/1 – 2 //端口 1-2 B(config-if-range)#channel-group 2 mode on //配置以太通道 2 模式开启 Creating a port-channel interface Port-channel2 B(config-if-range)# *Mar 1 00:26:19.815: %EC-5-BUNDLE: Interface Fa0/1 joined port-channel Po2 *Mar 1 00:26:20.763: %EC-5-BUNDLE: Interface Fa0/2 joined port-channel Po2 B(config-if-range)# *Mar 1 00:26:22.479: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-chann el2, changed state to up B(config-if-range)#exit B(config)#exit B# *Mar 1 00:26:28.135: %SYS-5-CONFIG_I: Configured from console by console B# B#show interface port 2 Port-channel2 is up, line protocol is up Hardware is EtherChannel, address is cc00.1444.f001 (bia cc00.1444.f001) MTU 1500 bytes, BW 200000 Kbit, DLY 1000 usec, //BW: Band Width (频带宽度) 200000 千位 (表示通道建立成功,原值位 100000Kbit) reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Full-duplex, 100Mb/s Members in this channel: Fa0/1 Fa0/2 ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:00, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 0 packets output, 0 bytes, 0 underruns 0 output errors, 0 collisions, 1 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out

Page: 21/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Step 4:配置上行速链路
在交换机 C 与 D 上配置上行速链路 交换机 C 配置如下: C#conf t Enter configuration commands, one per line. End with CNTL/Z. C(config)#spanning-tree uplinkfast //配置上行速链路 C(config)# *Mar 1 00:29:44.051: %SPANTREE_FAST-7-PORT_FWD_UPLINK: FastEthernet0/11 moved to Forwarding (UplinkFast). //VLAN3 端口 0/11 移动到转发(上行速链路) C(config)#exit C# *Mar 1 00:30:03.931: %SYS-5-CONFIG_I: Configured from console by console C#show spa brief VLAN1 Spanning tree enabled protocol ieee uplinkfast enabled //生成树开启的协议 ieee 上行速链路开启 Root ID Priority 8192 Address cc00.0d08.0000 Cost 3019 Port 12 (FastEthernet0/11) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

VLAN3

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 BLK 12 32768 cc00.1444.0000 128.12 FastEthernet0/11 128.12 128 3019 FWD 0 8192 cc00.0d08.0000 128.12

VLAN2 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.0d08.0001 Cost 3019 Port 12 (FastEthernet0/11) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Page: 22/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Bridge ID

Priority 49152 Address cc00.1580.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 BLK 12 32768 cc00.1444.0001 128.12 FastEthernet0/11 128.12 128 3019 FWD 0 8192 cc00.0d08.0001 128.12

VLAN3 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.1444.0002 Cost 3019 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 0 8192 cc00.1444.0002 128.12 FastEthernet0/11 128.12 128 3019 BLK 12 32768 cc00.0d08.0002 128.12

VLAN4 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.1444.0003 Cost 3019 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0003 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Page: 23/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Aging Time 300 Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 0 8192 cc00.1444.0003 128.12 FastEthernet0/11 128.12 128 3019 BLK 12 32768 cc00.0d08.0003 128.12 C# C#conf t Enter configuration commands, one per line. End with CNTL/Z. C(config)#interface f0/11 //端口 11 C(config-if)#shutdown //关闭 C(config-if)# *Mar 1 00:32:48.647: %SPANTREE_FAST-7-PORT_FWD_UPLINK: VLAN1 FastEthernet0/10 moved to Forwarding (UplinkFast). //VLAN1 端口 0/10 移动到转发(上行速链路) *Mar 1 00:32:49.183: %DTP-5-NONTRUNKPORTON: Port Fa0/11 has become non-trunk //端口 0/11 已经变成非中继 *Mar 1 00:32:50.339: %LINK-5-CHANGED: Interface FastEthernet0/11, changed state to administratively down //端口 0/11,修改参数关闭管理 *Mar 1 00:32:51.339: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern et0/11, changed state to down //在 0/11 上线路协议,修改参数为关闭 C(config-if)#exit C(config)#exit C# *Mar 1 00:33:00.471: %SYS-5-CONFIG_I: Configured from console by console C#show spa brief VLAN1 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.0d08.0000 Cost 3031 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Page: 24/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 12 32768 cc00.1444.0000 128.12 //端口 0/11 被关闭后,自动启用被阻塞的端口 0/10 并变成转发状态,时间大约 50 秒 VLAN2 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.0d08.0001 Cost 3031 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 12 32768 cc00.1444.0001 128.12 //端口 0/11 被关闭后,自动启用被阻塞的端口 0/10 并变成转发状态,时间大约 50 秒

VLAN3 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.1444.0002 Cost 3019 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 0 8192 cc00.1444.0002 128.12

Page: 25/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

VLAN4 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.1444.0003 Cost 3019 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.1580.0003 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 0 8192 cc00.1444.0003 128.12 交换机 D 配置如下: D#conf t Enter configuration commands, one per line. End with CNTL/Z. D(config)#spanning-tree uplinkfast //配置上行速链路 D(config)# *Mar 1 00:30:29.371: %SPANTREE_FAST-7-PORT_FWD_UPLINK: FastEthernet0/11 moved to Forwarding (UplinkFast). D(config)#exit D# *Mar 1 00:30:33.723: %SYS-5-CONFIG_I: Configured from console by console D#show spa brief VLAN1 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.0d08.0000 Cost 3019 Port 12 (FastEthernet0/11) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.165c.0000 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

VLAN3

Page: 26/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 BLK 12 32768 cc00.1444.0000 128.11 FastEthernet0/11 128.12 128 3019 FWD 0 8192 cc00.0d08.0000 128.11

VLAN2 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.0d08.0001 Cost 3019 Port 12 (FastEthernet0/11) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.165c.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 BLK 12 32768 cc00.1444.0001 128.11 FastEthernet0/11 128.12 128 3019 FWD 0 8192 cc00.0d08.0001 128.11 VLAN3 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.1444.0002 Cost 3019 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.165c.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID -------------------- ------- ---- ----- --- ----- -------------------- -------

Port ID

Page: 27/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

FastEthernet0/10 FastEthernet0/11

128.11 128.12

128 128

3019 FWD 3019 BLK

0 8192 cc00.1444.0002 128.11 12 32768 cc00.0d08.0002 128.11

VLAN4 Spanning tree enabled protocol ieee uplinkfast enabled Root ID Priority 8192 Address cc00.1444.0003 Cost 3019 Port 11 (FastEthernet0/10) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 49152 Address cc00.165c.0003 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300

Interface Designated Name Port ID Prio Cost Sts Cost Bridge ID Port ID -------------------- ------- ---- ----- --- ----- -------------------- ------FastEthernet0/10 128.11 128 3019 FWD 0 8192 cc00.1444.0003 128.11 FastEthernet0/11 128.12 128 3019 BLK 12 32768 cc00.0d08.0003 128.11

Step 5:配置速端口
配置交换机 C 与 D 的 1~5 号端口为速端口 交换机 C 配置如下: C#conf t Enter configuration commands, one per line. End with CNTL/Z. C(config)#interface range f0/1 – 5 //端口 0/1 - 5 C(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 spanning tree loops. Use with CAUTION //%警告:速端口只能被用于连接到单主机、集线器、集中器、交换机、网桥等端口 //当启用速端口时,会操正临时生成树环路。小心使用! %Portfast has been configured on FastEthernet0/1 but will only have effect when the interface is in a non-trunking mode. //%速端口已经在端口 0/1 上启用,但是它只作用在非中继模式的端口上 %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 spanning tree loops.

Page: 28/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

Use with CAUTION %Portfast has been configured on FastEthernet0/2 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/3 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/4 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/5 but will only have effect when the interface is in a non-trunking mode. C(config-if-range)#exit C(config)#exit 交换机 D 配置如下: D#conf t Enter configuration commands, one per line. End with CNTL/Z. D(config)#interface range f0/1 – 5 //端口 0/1 - 5 D(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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/1 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION

Page: 29/30

BENET2.0

企业网络高级技术 STP 实验报告

2T57:王攀

%Portfast has been configured on FastEthernet0/2 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/3 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/4 but will only have effect when the interface is in a non-trunking mode. %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 spanning tree loops. Use with CAUTION %Portfast has been configured on FastEthernet0/5 but will only have effect when the interface is in a non-trunking mode. D(config-if-range)#exit D(config)#exit

3. 实验总结
STP 协议在逻辑上断开网络的环路,防止广播风暴的产生,而一旦正在用的线路出现故 被逻辑上断开的线路又被连接,重新传输数据。此实验的配置要点有: l l l 配置交换机的根网桥方法有两种:直接配置网桥为根网桥,即 vlan .No root primary;配 置网桥优先级为 8129。 配置以太通道的原则有: 参与捆绑的端口必须属于同一 VLAN; 如果端口配置的中继模 式,那么,应该在链路的两端将通道中的所有端口配置成相同的中继模式。 参与捆绑的端口的物理参数设置必须相同,应该有同样的速度和全/半双工模式设置。

Reference:
《企业网络高级技术》——BENET 网络工程师认证课程 第二学期 科学技术文献出版社

Page: 30/30


相关文章:
《网络设备配置与管理》实验报告_STP 配置
逸夫楼 511 同组人员: 实验地点: 日 实验 4:STP 配置 姓名: 期: 党杰 学号: 2014-10-11 11401190140 陈泽佳,郑毅,何萧,夏宇鹏 实验报告 一、实验目的: ?...
vtp stp实验报告 冗余配置 绝对稳定
Vtp stp 实验报告 实验环境如下图 配置如下 1 Sw3 为 vtp 服务器 Vtp 有三种工作模式 服务器模式,客户机模式。转发模式。 SW3#vlan database 进入 VLAN ...
vrrp和stp实验指导书
vrrp和stp实验指导书_调查/报告_表格/模板_实用文档。数据通信网络协议实验 一、 VRRP 试验试验环境组网拓扑: LOOPBACK 地址规划: 序号 1 序号 1 2 3 S3526-2...
STP、PVST配置实验
14.2 实验 1: STP、PVST 为了减少网络的故障时间,我们经常会采用冗余拓扑。STP 可以让具有冗余结构的网络在故障时自动调整网络的数据 转发路径。 STP 重新收敛...
营销策划实验报告
营销策划实验报告_经济/市场_经管营销_专业资料。《营销策划》课程综合实验报告 ...威胁 STP:市场细分、目标市场、市场定位 4PS:产品策略、价格策略、渠道策略、...
实验报告一
实验报告一_实习总结_总结/汇报_实用文档。实验一交换机的配置一、 VLAN 的配置...生成树协议版本:STP、RSTP(快速生成树协议)、MSTP(多生成树协议)。 生成树协议...
有限元分析实验报告_图文
有限元分析实验报告_机械/仪表_工程科技_专业资料。学生学号 1049721501301 实验课...图 2.1 阶梯轴三维模型 将该模型导出 Stp 通用格式,并导入到 Workbench 中。...
交换机实验 实验报告
交换机实验 实验报告_计算机硬件及网络_IT/计算机_专业资料。交换机实验 II ...传统的二层 预防技术主要有 STP(Spanning tree) 来预防, STP 在不断的修改和...
手机市场STP报告
(一)市场细分 该实验的市场不同于实际市手机市场 STP 报告 鉴于目前的市场情况分析了解,把七岸缤纷手机产品定位于国内市场,同时 国内市场又分为华南,华北,华东,...
实验8生成树配置—生成树协议STP
实验8生成树配置—生成树协议STP_计算机硬件及网络_IT/计算机_专业资料。实验八...2014年度细分行业报告汇集 2014年移动互联网O2O分析报告 休闲农庄项目可行性研究...
更多相关标签: