实验4stp挑战实验Word格式.docx

上传人:b****5 文档编号:16975951 上传时间:2022-11-27 格式:DOCX 页数:28 大小:176.36KB
下载 相关 举报
实验4stp挑战实验Word格式.docx_第1页
第1页 / 共28页
实验4stp挑战实验Word格式.docx_第2页
第2页 / 共28页
实验4stp挑战实验Word格式.docx_第3页
第3页 / 共28页
实验4stp挑战实验Word格式.docx_第4页
第4页 / 共28页
实验4stp挑战实验Word格式.docx_第5页
第5页 / 共28页
点击查看更多>>
下载资源
资源描述

实验4stp挑战实验Word格式.docx

《实验4stp挑战实验Word格式.docx》由会员分享,可在线阅读,更多相关《实验4stp挑战实验Word格式.docx(28页珍藏版)》请在冰豆网上搜索。

实验4stp挑战实验Word格式.docx

172.17.30.23

172.17.30.12

端口分配-交换机2

端口

分配

网络

Fa0/1–0/4

802.1q中继(本征VLAN99)

172.17.99.0/24

Fa0/5–0/10

VLAN30–Guest(Default)

172.17.30.0/24

Fa0/11–0/17

VLAN10–Faculty/Staff

172.17.10.0/24

Fa0/18–0/24

VLAN20–Students

172.17.20.0/24

学习目标

完成本实验后,您将能够:

∙根据拓扑图进行网络布线

∙删除启动配置并重新加载默认配置,将交换机设置为默认状态

∙执行交换机上的基本配置任务

∙在所有交换机上配置VLAN中继协议(VTP)

∙观察并解释生成树协议(STP,802.1D)的默认行为

∙改变生成树根的位置

∙观察对生成树拓扑变化的响应

∙解释802.1DSTP在支持服务连续性方面的局限性

∙配置快速STP(802.1W)

∙观察并解释快速STP在哪些方面有所改进

任务1:

准备网络

步骤1:

根据拓扑图所示完成网络电缆连接。

您可使用实验室中现有的、具有拓扑图中所示接口的交换机。

本实验中的输出来自Cisco2960交换机。

其它型号的交换机可能会产生不同的输出。

建立到所有三台交换机的控制台连接。

步骤2:

清除交换机的所有配置。

清除NVRAM、删除vlan.dat文件并重新加载交换机。

请参阅实验2.5.1了解相关步骤。

重新加载完成后,使用showvlan特权执行命令确认只存在默认VLAN,并且所有端口都已分配给VLAN1。

S1#showvlan

VLANNameStatusPorts

--------------------------------------------------------------------------

1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4

Fa0/5,Fa0/6,Fa0/7,Fa0/8

Fa0/9,Fa0/10,Fa0/11,Fa0/12

Fa0/13,Fa0/14,Fa0/15,Fa0/16

Fa0/17,Fa0/18,Fa0/19,Fa0/20

Fa0/21,Fa0/22,Fa0/23,Fa0/24

Gig1/1,Gig1/2

1002fddi-defaultactive

1003token-ring-defaultactive

1004fddinet-defaultactive

1005trnet-defaultactive

步骤3:

使用shutdown命令禁用所有端口。

使用shutdown命令确保交换机端口初始状态为非活动状态。

使用interface-range命令可简化此任务。

S1(config)#interfacerangefa0/1-24

S1(config-if-range)#shutdown

S1(config-if-range)#interfacerangegi1/1-2

S2(config)#interfacerangefa0/1-24

S2(config-if-range)#shutdown

S2(config-if-range)#interfacerangegi1/1-2

S3(config)#interfacerangefa0/1-24

S3(config-if-range)#shutdown

S3(config-if-range)#interfacerangegi1/1-2

步骤4:

以接入模式重新启用S2上的用户端口。

参考拓扑图,确定S2上供最终用户设备接入的交换机端口有哪些。

这三个端口将配置为接入模式,并通过noshutdown命令启用。

S2(config)#interfacerangefa0/6,fa0/11,fa0/18

S2(config-if-range)#switchportmodeaccess

S2(config-if-range)#noshutdown

任务2:

执行基本交换机配置

根据以下指导原则配置S1、S2和S3交换机:

∙配置交换机主机名。

∙禁用DNS查找。

∙将执行模式口令配置为class。

∙为控制台连接配置口令cisco。

∙为vty连接配置口令cisco。

(S1显示的输出)

Switch>

enable

Switch#configureterminal

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Switch(config)#hostnameS1

S1(config)#enablesecretclass

S1(config)#noipdomain-lookup

S1(config)#lineconsole0

S1(config-line)#passwordcisco

S1(config-line)#login

S1(config-line)#linevty015

S1(config-line)#end

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

S1#copyrunning-configstartup-config

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

任务3:

配置主机PC

使用实验开头地址表中的IP地址、子网掩码和网关配置PC1、PC2和PC3的以太网接口。

任务4:

配置VLAN

配置VTP。

按照下表在三台交换机上配置VTP。

请记住,VTP域名和口令区分大小写。

默认的工作模式为server。

交换机名称

VTP工作模式

VTP域

VTP口令

Server

Lab5

cisco

Client

 

S1(config)#vtpmodeserver

DevicemodealreadyVTPSERVER.

S1(config)#vtpdomainLab5

ChangingVTPdomainnamefromNULLtoLab5

S1(config)#vtppasswordcisco

SettingdeviceVLANdatabasepasswordtocisco

S1(config)#end

S2(config)#vtpmodeclient

SettingdevicetoVTPCLIENTmode

S2(config)#vtpdomainLab5

S2(config)#vtppasswordcisco

S2(config)#end

S3(config)#vtpmodeclient

S3(config)#vtpdomainLab5

S3(config)#vtppasswordcisco

S3(config)#end

配置中继链路和本征VLAN

配置中继端口和本征VLAN。

将每台交换机的端口Fa0/1至Fa0/4配置为中继端口。

将VLAN99指定为这些中继的本征VLAN。

在全局配置模式下使用interface-range命令来简化此项任务。

您应该还记得,我们在前面的步骤中禁用了这些端口,所以现在必须使用noshutdown命令来重新启用。

S1(config)#interfacerangefa0/1-4

S1(config-if-range)#switchportmodetrunk

S1(config-if-range)#switchporttrunknativevlan99

S1(config-if-range)#noshutdown

S1(config-if-range)#end

S2(config)#interfacerangefa0/1-4

S2(config-if-range)#switchportmodetrunk

S2(config-if-range)#switchporttrunknativevlan99

S2(config-if-range)#end

S3(config)#interfacerangefa0/1-4

S3(config-if-range)#switchportmodetrunk

S3(config-if-range)#switchporttrunknativevlan99

S3(config-if-range)#noshutdown

S3(config-if-range)#end

在VTP服务器上配置VLAN。

VTP能够将在VTP服务器上配置的VLAN传播到域中的VTP客户端,从而确保网络中VLAN配置的一致性。

在VTP服务器上配置以下VLAN:

VLAN

VLAN名称

management

VLAN10

faculty-staff

VLAN20

students

VLAN30

guest

S1(config)#vlan99

S1(config-vlan)#namemanagement

S1(config-vlan)#exit

S1(config)#vlan10

S1(config-vlan)#namefaculty-staff

S1(config)#vlan20

S1(config-vlan)#namestudents

S1(config)#vlan30

S1(config-vlan)#nameguest

检验VLAN。

在S2和S3上使用showvlanbrief命令,检查是否所有四个VLAN都已传播到客户端交换机上。

S2#showvlanbrief

1defaultactiveFa0/1,Fa0/2,Fa0/4,Fa0/5

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

Fa0/10,Fa0/11,Fa0/12,Fa0/13

Fa0/14,Fa0/15,Fa0/16,Fa0/17

Fa0/18,Fa0/19,Fa0/20,Fa0/21

Fa0/22,Fa0/23,Fa0/24,Gi0/1

Gi0/2

10faculty/staffactive

20studentsactive

30guestactive

99managementactive

S3#showvlanbrief

步骤5:

在所有三台交换机上配置管理接口地址。

S1(config)#interfacevlan99

S1(config-if)#ipaddress172.17.99.11255.255.255.0

S1(config-if)#noshutdown

S2(config)#interfacevlan99

S2(config-if)#ipaddress172.17.99.12255.255.255.0

S2(config-if)#noshutdown

S3(config)#interfacevlan99

S3(config-if)#ipaddress172.17.99.13255.255.255.0

S3(config-if)#noshutdown

在交换机之间执行ping操作,检查这些交换机是否都已正确配置。

从S1pingS2和S3的管理接口。

从S2pingS3的管理接口。

ping是否成功?

___________________________________________是

若不成功,则排除交换机配置故障,然后重试。

步骤6:

为VLAN分配交换机端口。

在S2上为VLAN分配端口。

请参阅实验开头的端口分配表。

S2(config)#interfacerangefa0/5-10

S2(config-if-range)#switchportaccessvlan30

S2(config-if-range)#interfacerangefa0/11-17

S2(config-if-range)#switchportaccessvlan10

S2(config-if-range)#interfacerangefa0/18-24

S2(config-if-range)#switchportaccessvlan20

S2#copyrunning-configstartup-config

[enter]

S2#

任务5:

配置生成树

检查802.1DSTP的默认配置。

在每台交换机上,使用showspanning-tree命令列出其上的生成树表。

以下仅提供了S1上的输出。

根选举取决于实验中每台交换机的BID。

S1#showspanning-tree

VLAN0001

Spanningtreeenabledprotocolieee

RootIDPriority32769

Address0019.068d.6980

Thisbridgeistheroot

HelloTime2secMaxAge20secForwardDelay15sec

BridgeIDPriority32769(priority32768sys-id-ext1)

AgingTime300

InterfaceRoleStsCostPrio.NbrType

------------------------------------------------------------------------

Fa0/1DesgFWD19128.3P2p

Fa0/2DesgFWD19128.4P2p

Fa0/3DesgFWD19128.5P2p

Fa0/4DesgFWD19128.6P2p

VLAN0010

RootIDPriority32778

BridgeIDPriority32778(priority32768sys-id-ext10)

VLAN0020

RootIDPriority32788

BridgeIDPriority32788(priority32768sys-id-ext20)

VLAN0030

RootIDPriority32798

BridgeIDPriority32798(priority32768sys-id-ext30)

VLAN0099

RootIDPriority32867

BridgeIDPriority32867(priority32768sys-id-ext99)

-----------------------------------

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 小学教育 > 数学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1