系统方案.docx
《系统方案.docx》由会员分享,可在线阅读,更多相关《系统方案.docx(10页珍藏版)》请在冰点文库上搜索。
![系统方案.docx](https://file1.bingdoc.com/fileroot1/2023-5/7/d1082c2b-8aac-4a92-ac4f-fe6004ad3a72/d1082c2b-8aac-4a92-ac4f-fe6004ad3a721.gif)
系统方案
实验系统方案
实验环境如图所示。
步骤一、交换机、路由器和PC机的基本配置
步骤二、关闭交换机的所有端口,然后启用接入端口
S1(config)#intrangef0/1-24
S1(config-if-range)#shutdown
S1(config-if-range)#intrangeg1/1-2
S1(config-if-range)#shutdown
S1(config-if-range)#intrangeg1/1-2
S1(config-if-range)#noshut
S1(config-if-range)#intrangef0/1-4
S1(config-if-range)#noshut
(交换机S2、S3配置参考S1)
步骤三、配置路由器各接口或子接口使之启用
R1(config)#ints0/0/0
R1(config-if)#ipaddr10.1.1.1255.255.255.252
R1(config-if)#clockrate64000
R1(config-if)#noshut
R1(config-if)#intf0/1
R1(config-if)#noshut
R1(config-if)#intf0/1.10
R1(config-subif)#encapsulationdot1Q10
R1(config-subif)#ipaddr192.168.10.1255.255.255.0
R1(config-subif)#intf0/1.11
R1(config-subif)#encapsulationdot1Q11
R1(config-subif)#ipaddr10.10.11.1255.255.255.0
****************************************************
R2(config)#intlo0
R2(config-if)#ipaddr209.165.200.161255.255.255.224
R2(config-if)#ints0/0/0
R2(config-if)#ipaddress10.1.1.2255.255.255.252
R2(config-if)#noshut
R2(config-if)#ints0/0/1
R2(config-if)#ipaddress10.2.2.1255.255.255.252
R2(config-if)#noshut
R2(config-if)#intf0/1
R2(config-if)#noshut
R2(config-if)#intf0/1.20
R2(config-subif)#encapsulationdot1Q20
R2(config-subif)#ipaddr192.168.20.1255.255.255.0
R2(config-subif)#intf0/1.21
R2(config-subif)#encapsulationdot1Q21
R2(config-subif)#ipaddr10.10.21.1255.255.255.0
****************************************************
R3(config)#ints0/0/1
R3(config-if)#ipaddr10.2.2.2255.255.255.252
R3(config-if)#clockrate64000
R3(config-if)#noshut
R3(config-if)#intf0/1
R3(config-if)#noshut
R3(config-if)#intf0/1.30
R3(config-subif)#encapsulationdot1Q30
R3(config-subif)#ipaddr192.168.30.1255.255.255.0
R3(config-subif)#intf0/1.31
R3(config-subif)#encapsulationdot1Q31
R3(config-subif)#ipaddr10.10.31.1255.255.255.0
步骤四、将S1配置为根桥以防止交换机环路产生
S1(config)#spanning-treevlan1,10,11,20,21,30,31,99priority4096
(默认VLAN的BID为[VLANID+32768],将所有VLAN的优先值都设置为4096,则STP会重新选举根桥即将S1置为所有VLAN的根桥)
步骤五、为交换机-交换机接口配置中继链路和本征VLAN
S1(config)#intrangeg1/1–2
S1(config-if-range)#switchportmodetrunk
S1(config-if-range)#switchporttrunknativevlan99
S1(config-if-range)#noshut
****************************************************
S2(config)#intg1/1
S2(config-if)#switchportmodetrunk
S2(config-if)#switchporttrunknativevlan99
S2(config-if)#noshut
****************************************************
S3(config)#intg1/1
S3(config-if)#switchportmodetrunk
S3(config-if)#switchporttrunknativevlan99
S3(config-if)#noshut
步骤六、配置VTP
S1(config)#vtpmodeserver
DevicemodealreadyVTPSERVER.
S1(config)#vtpdomaincisco
ChangingVTPdomainnamefromNULLtocisco
S1(config)#vtppasswordcisco
SettingdeviceVLANdatabasepasswordtocisco
(将S1设置为VTP服务器,将S2、S3设置为VTP客户端)
S2(config)#vtpmodeclient
DevicemodealreadyVTPclient.
S2(config)#vtpdomaincisco
ChangingVTPdomainnamefromNULLtocisco
S2(config)#vtppasswordcisco
步骤七、在S1(VTPServer)上配置VLAN
S1(config)#vlan10
S1(config-vlan)#vlan11
S1(config-vlan)#vlan20
S1(config-vlan)#vlan21
S1(config-vlan)#vlan30
S1(config-vlan)#vlan31
S1(config-vlan)#vlan99
S1(config-vlan)#nameManagement
(配置至此,用#shvlanbrief命令查看S2、S3交换机的vlan配置,会看到VTPServer已经将VLAN信息传播至两个交换机,并将结果截屏到Word中。
)
步骤八、为各个VLAN分配接口
S1(config)#intrangef0/2
S1(config-if)#switchportmodeaccess
S1(config-if)#switchportaccessvlan10
S1(config-if)#intrangef0/3
S1(config-if)#switchportmodeaccess
S1(config-if)#switchportaccessvlan11
S1(config-if)#intrangef0/4
S1(config-if)#switchportmodeaccess
S1(config-if)#switchportaccessvlan20
(交换机S2、S3配置参考S1)
S2(config)#intrangef0/2
S2(config-if)#switchportmodeaccess
S2(config-if)#switchportaccessvlan10
S2(config-if)#intrangef0/3
S2(config-if)#switchportmodeaccess
S2(config-if)#switchportaccessvlan31
+++++++++++++++++++++++++++++++++++++++++++++
S3(config)#intrangef0/2
S3(config-if)#switchportmodeaccess
S3(config-if)#switchportaccessvlan21
S3(config-if)#intrangef0/3
S3(config-if)#switchportmodeaccess
S3(config-if)#switchportaccessvlan30
S3(config-if)#intrangef0/4
S3(config-if)#switchportmodeaccess
S3(config-if)#switchportaccessvlan31
步骤九、为各交换机配置管理VLAN地址和默认网关
S1(config)#ipdefault-gateway192.168.10.1
S1(config)#interfacevlan10
S1(config-if)#ipaddress192.168.10.2255.255.255.0
S1(config-if)#noshutdown
****************************************************
S2(config)#ipdefault-gateway192.168.20.1
S2(config)#interfacevlan20
S2(config-if)#ipaddress192.168.20.2255.255.255.0
S2(config-if)#noshutdown
****************************************************
S3(config)#ipdefault-gateway192.168.30.1
S3(config)#interfacevlan30
S3(config-if)#ipaddress192.168.30.2255.255.255.0
S3(config-if)#noshutdown
步骤十、(注意:
此步骤最好不配,否则将导致网络不通)接入层交换机上配置端口安全功能
S1(config)#intf0/2
S1(config-if)#switchportport-security
S1(config-if)#switchportport-securitymaximum1
S1(config-if)#switchportport-securitymac-addresssticky
S1(config-if)#switchportport-securitymac-addresssticky0002.4A1A.3893(注意要根据实际MAC地址0002.4A1A.3893修改此处)
S1(config-if)#switchportport-securityviolationshutdown
(1、交换机S1、的其它端口和S2、S3配置参考S1的端口f0/2)
(2、第五行命令的运行以第四行命令运行为前提,否则系统返回“Stickymacisnotenabled”的错误信息。
)
步骤十一、为路由器配置RipV2协议
R1(config)#routerrip
R1(config-router)#version2
R1(config-router)#network10.0.0.0
R1(config-router)#network192.168.10.0
****************************************************
R2(config)#routerrip
R2(config-router)#version2
R2(config-router)#network10.0.0.0
R2(config-router)#network192.168.20.0
****************************************************
R3(config)#routerrip
R3(config-router)#version2
R3(config-router)#network10.0.0.0
R3(config-router)#network192.168.30.0
(在各路由器上用命令#shiproute查看路由表,收敛状态下R1、R3路由表都含8条路由,R2含有9条路由(包括loopback0接口的直连路由)并将结果截屏到Word中。
)
步骤十二、为交换机-路由器接口配置中继链路和本征VLAN
S1(config)#intf0/1
S1(config-if)#switchportmodetrunk
S1(config-if)#switchporttrunknativevlan99
S1(config-if)#noshut
S2(config)#intf0/1
S2(config-if)#switchportmodetrunk
S2(config-if)#switchporttrunknativevlan99
S2(config-if)#noshut
S3(config)#intf0/1
S3(config-if)#switchportmodetrunk
S3(config-if)#switchporttrun
参考下面的拓扑图,设计一个网络方案。
并用PacketTracer5.0进行仿真配置。
(四)实验报告提交
.将以自己“学号+姓名”的文件夹,提交到教师机上,该文件夹中应包括两个文件,一个是以“姓名”命名的”.pka”文件,另一个是以“学号+姓名”命名word文件。
四、实验材料的提交与成绩评定
1、本实验的实验报告一份(电子版或纸质版一份,具体形式由任课教师确定,格式参考学院统一实验报告)
2、实验源程序一份,请表明题号(电子版)
备注:
做下一次实验之时提交上一次实验的材料,由各班学习委员以班为单位收集并上交任课教师。
3、实验成绩总分为30分,由指导老师根据学生实验表现和实验材料进行评定,本门课程结束后实验平均成绩(实验总成绩/实验次数)按照30%的比例记入期末考试总成绩。