stp实验心得_STP实验报告

  • Post author:
  • Post category:其他


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)#

*Mar1 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)#

*Mar1 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//配置VTP域为2t57

Changing VTP domain name from NULL to 2t57

A(vlan)#vtp server

Device mode already VTP SERVER.//配置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.//添加VLAN 2、3、4

Exiting….

A#

A#show vlan-s

VLAN NameStatusPorts

—- ——————————– ——— ——————————-

1defaultactiveFa0/0, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/12, Fa0/13, Fa0/14, Fa0/15

2VLAN2active

3VLAN3active

4VLAN4active

1002 fddi-defaultactive

1003 token-ring-defaultactive

1004 fddinet-defaultactive

1005 trnet-defaultactive

VLAN TypeSAIDMTUParent RingNo BridgeNo StpBrdgMode Trans1 Trans2

—- —– ———- —– —— —— ——– —- ——– —— ——

1enet1000011500—–10021003

2enet1000021500—–00

3enet1000031500—–00

4enet1000041500—–00

1002 fddi1010021500—–11003

1003 tr101003150010050–srb11002

1004 fdnet 1010041500–1ibm-00

VLAN TypeSAIDMTUParent RingNo BridgeNo StpBrdgMode Trans1 Trans2

—- —– ———- —– —— —— ——– —- ——– —— ——

1005 trnet 1010051500–1ibm-00

A#

A#show interface f0/1 switchport//查看端口1

Name: Fa0/1

Switchport: Enabled//端口开启

Administrative Mode: trunk//管理模式:中继

Operational Mode: trunk//运行模式:中继

Administrative Trunking Encapsulation: dot1q//管理中继封装:802.1Q

Operational Trunking Encapsulation: dot1q//运行中继封装:802.1Q

Negotiation of Trunking: Disabled//中继协商:未开启

Access Mode VLAN: 0 ((Inactive))//VLAN通过模式:0(非活动)

Trunking Native Mode VLAN: 1 (default)//本地VLAN中继模式:1(默认)

Trunking VLANs Enabled: ALL//多VLAN中继开启:所有

Trunking VLANs Active: 1-4//活动的中继多VLAN:1-4

Priority for untagged frames: 0//未标记的帧优先级:0

Override vlan tag priority: FALSE//超量标记帧优先级:错误

Voice VLAN: none//语音VLAN:无

Appliance trust: none//信任的运行:无

A#show interface f0/2 switchport//查看端口2

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

A#show interface f0/10 switchport//查看端口10

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//查看端口11

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

交换机B配置如下:

B#conf t

Enter configuration commands, one per line.End with CNTL/Z.

B(config)#interface range f0/1 – 2//配置端口1-2为中继

B(config-if-range)#switchport mode trunk

B(config-if-range)#

*Mar1 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)#

*Mar1 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//配置VTP域名为2t57

Domain name already set to 2t57 .

B(vlan)#exit

APPLY completed.

Exiting….

B#

B#show vlan-s

VLAN NameStatusPorts

—- ——————————– ——— ——————————-

1defaultactiveFa0/0, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/12, Fa0/13, Fa0/14, Fa0/15

2VLAN2active

3VLAN3active

4VLAN4active//VTP同步VLAN成功

1002 fddi-defaultactive

1003 token-ring-defaultactive

1004 fddinet-defaultactive

1005 trnet-defaultactive

VLAN TypeSAIDMTUParent RingNo BridgeNo StpBrdgMode Trans1 Trans2

—- —– ———- —– —— —— ——– —- ——– —— ——

1enet1000011500—–10021003

2enet1000021500—–00

3enet1000031500—–00

4enet1000041500—–00

1002 fddi1010021500-0—11003

1003 tr101003150010050–srb11002

1004 fdnet 1010041500–1ibm-00

VLAN TypeSAIDMTUParent RingNo BridgeNo StpBrdgMode Trans1 Trans2

—- —– ———- —– —— —— ——– —- ——– —— ——

1005 trnet 1010051500–1ibm-00

B#

B#show interface f0/1 switchport//查看端口1

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//查看端口2

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//查看端口10

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

B#show interface f0/11 switchport//查看端口11

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)



版权声明:本文为weixin_39781599原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。