1、网络工程实践报告实践课程设计报告题目 网络工程实践 一、交换机实验1、基本配置(1)交换机各命令操作模式的进入和退出Switch (处于用户模式)Switchenable 14 (从用户模式进入特权模式)Password adminSwitch#Switch#configure terminal (从特权模式进入全局模式)Switch(config)#Switch(config-if)#exit (2)交换机主机名的配置Switch(config)#hostname SA(注:将主机名配置为“SA”)SA(config)#(3)为交换机分配管理IP地址Switch(config)#interf
2、ace vlan 1 (VLAN 1是交换机默认的VLAN)Switch(config-if)#ip address 192.168.120.1 255.255.255.0Switch(config-if)#no shutdown2、VLAN的配置(1)创建VLANSwitch(config)#VLAN 5 (创建VLAN 5)Switch(config-vlan)#name exmp5 (将VLAN 5命名为exmp5)Switch(config)#VLAN 10 (创建VLAN 10)Switch(config-vlan)#name exmp10 (将VLAN 10命名为exmp10)(2
3、)把交换机端口分配到VLAN中Switch(config)#interface fastethernet 0/5 (进入0/5端口模式)Switch(config-if)# switch access vlan 5(把端口0/5分配给VLAN 5)Switch(config)#interface fastethernet 0/10 (进入0/10端口模式)Switch(config-if)# switch access vlan 10 (把端口0/10分配给VLAN 10)我们还可以把连续若干个端口一次分配给某个VLAN:Switch(config)#interface range faste
4、thernet 0/2-4Switch(config-if)# switch access vlan 5(3)显示VLAN信息Switch#show VLAN(4)删除VLANSwitch(config)#no VLAN 103、跨交换机的VLAN(1)在交换机SA上创建VLAN 10和VLAN 20,并把0/10端口划分给VLAN 10、0/20端口划分给VLAN 20SA(config)#VLAN 10SA(config-vlan)#name exmp10SA(config)#VLAN 20SA(config-vlan)#name exmp20SA(config)#interface fa
5、stethernet 0/10SA(config-if)# switch access vlan 10SA(config)#interface fastethernet 0/20SA(config-if)# switch access vlan 20(2)把交换机SA上与交换机SB相连的0/24端口配置为Trunk端口SA(config)#interface fastethernet 0/24SA(config-if)# switchport mode trunk (把端口0/24配置为Trunk端口)(3)在交换机SB上创建VLAN 10,并把0/10端口划分给VLAN 10SB(confi
6、g)#VLAN 10SB(config-vlan)#name exmp10SB(config)#interface fastethernet 0/10SB(config-if)# switch access vlan 10(4)把交换机SB上与交换机SA相连的端口0/24配置为Trunk端口SB(config)#interface fastethernet 0/24SB(config-if)# switchport mode trunk(5)验证Trunk端口SA #show interface fastethernet 0/24 switchport4、配置生成树协议(1)在交换机SA上创建
7、VLANSA(config)#VLAN 10SA(config-vlan)#name exmp10SA(config)#VLAN 20SA(config-vlan)#name exmp20SA(config)#interface fastethernet 0/10SA(config-if)# switch access vlan 10SA(config)#interface fastethernet 0/20SA(config-if)# switch access vlan 20(2)在交换机SA上把端口0/23-24配置为Trunk端口SA(config)#interface range f
8、astethernet 0/23-24SA(config-if)# switchport mode trunk(3)在交换机SB上创建VLAN 10,并把端口0/10划分到VLAN 10中SB(config)#VLAN 10SB(config-vlan)#name exmp10SB(config)#interface fastethernet 0/10SB(config-if)# switch access vlan 10(4)在交换机SB上把端口0/23-24配置为Trunk端口SB(config)#interface range fastethernet 0/23-24SB(config-
9、if)# switchport mode trunk(5)配置快速生成树协议在交换机SA上:SA(config)#spanning-treeSA(config-if)# spanning-tree mode rstp在交换机SB上:SB(config)# spanning-treeSB(config-if)# spanning-tree mode rstp(6)验证快速生成树协议SA(config)#show spanning-tree二、路由器实验1、基本配置(1)路由器各命令操作模式的进入和退出Router (处于用户模式)Routerenable 14(从用户模式进入特权模式)Passw
10、ord:adminRouter#Router#configure terminal (从特权模式进入全局模式)Router(config)#Router(config)#interface serial 1/2 (从全局模式进入端口模式)Router(config-if)#Router(config-if)#exit (exit是返回上一级模式命令)Router(config)#Router(config-if)#end (exit是返回特权模式命令)Router#(2)路由器命令的帮助信息Router ? (显示当前模式下所有可以执行的命令)Router(config)#int? (显示当前
11、模式下所有以int开头的命令)Router(config-if)#ip ?(显示当前模式下ip命令后可以跟随的参数)(3)路由器命令的简写与自动补齐Router(config)#int f 1/1(路由器支持命令简写,其代表interface fastethernet 0/5)Router(config)#int (按Tab键将自动补齐interface)Router(config)#interface(4)路由器RA主机名的配置Router(config)#hostname RA(注:将主机名配置为“RA”)RA(config)#(5)为路由器RA的DCE端口分配IP地址、时钟频率和带宽频率
12、RA(config)#interface serial 1/2 (进入RA的s1/2端口模式)RA(config-if)#ip address 192.168.120.100 255.255.255.0RA(config-if)#clock rate 64000 (在DCE接口上配置时钟频率为64000,其它端口不用配置)RA(config-if)#bandwidth 512 (配置端口的带宽频率为512KB)RA(config-if)#no shutdown (使端口处于活动状态)(6)路由器RB端口参数的配置Router(config)#hostname RBRB(config)#RB(c
13、onfig)#interface serial 1/3 RB(config-if)#ip address 192.168.120.101 255.255.255.0RB(config-if)#bandwidth 512RA(config-if)#no shutdown(7)查看路由器的配置信息RA#show version (查看路由器版本信息)RA#show running-config (查看路由器当前生效配置)RA#show interface Serial 1/2 (查看端口s1/2配置信息)RA#show ip route (查看路由器路由信息)2、静态路由(1)路由器RA端口参数的
14、配置RA(config)#interface serial 1/2RA(config-if)#ip address 192.168.120.100 255.255.255.0RA(config-if)#clock rate 64000 RA(config-if)#no shutdownRA(config)# interface fastethernet 1/1RA(config-if)#ip address 192.168.121.100 255.255.255.0RA(config-if)#no shutdown(2)路由器RB端口参数的配置RB(config)#interface seri
15、al 1/3RB(config-if)#ip address 192.168.120.101 255.255.255.0RB(config-if)#no shutdownRB(config)# interface fastethernet 1/1RB(config-if)#ip address 192.168.122.100 255.255.255.0RB(config-if)#no shutdown(3)在路由器RA上配置静态路由RA(config)#ip route 192.168.122.0 255.255.255.0 192.168.120.101或:RA(config)#ip rou
16、te 192.168.122.0 255.255.255.0 serial 1/2(4)在路由器RB上配置静态路由RB(config)#ip route 192.168.121.0 255.255.255.0 192.168.120.100或:RA(config)#ip route 192.168.121.0 255.255.255.0 serial 1/3(5)查看路由器上的静态路由信息RA#show ip interface brief三、综合实践1、实践题目网络工程实践2、实践要求使用5-6台设备组建连通网络;画出拓扑图;进行子网划分,并给网络中的设备分配IP地址;要包含跨交换机的VLA
17、N;对交换机和路由器进行必要的配置,使不同的子网之间能够进行通信。3、网络拓扑结构 SA RA RB RCVLAN 10 F0/1 F1/1 S1/2S1/3 F1/1 S1/4 F0/23 F0/23 F0/23 F0/23 F1/1 F0/10 SB RA:S1/2=192.168.60.1/24 SC RB:S1/2=192.168.60.2/24RC:S1/2=192.168.60.3/24 RA:F1/1=192.168.10.1/24 RB:F1/1=192.168.40.1/24RC:F1/1=192.168.20.1/24VLAN 10 VLAN 20 VLAN 30 VLAN
18、 10 192.168.10.34 192.168.10.65 192.168.40.54 192.168.40.33 4、小组成员及分工SA:孟 坤SB:贾 琳SC:王德卿RA:吴鹏超RB:冯贻国RC:朱宝亮5、设备的配置信息设备RA:设备RB:设备SC:SC(config)#SC(config)#SC(config)#vlan 102010-05-06 13:36:51 5-CONFIG:Configured from outbandSC(config-vlan)#name exmp102010-05-06 13:37:04 5-CONFIG:Configured from outband
19、SC(config-vlan)#exit2010-05-06 13:37:20 5-CONFIG:Configured from outbandSC(config)#vlan 202010-05-06 13:37:26 5-CONFIG:Configured from outbandSC(config-vlan)#name exmp202010-05-06 13:37:35 5-CONFIG:Configured from outbandSC(config-vlan)#exit2010-05-06 13:37:43 5-CONFIG:Configured from outbandSC(conf
20、ig)#interface fastethernet 0/202010-05-06 13:38:43 5-CONFIG:Configured from outbandSC(config-if)#switch access vlan 102010-05-06 13:39:09 5-CONFIG:Configured from outbandSC(config-if)#interface fastethernet 0/102010-05-06 13:39:35 5-CONFIG:Configured from outbandSC(config-if)#switch access vlan 2020
21、10-05-06 13:39:55 5-CONFIG:Configured from outbandSC(config-if)#exit2010-05-06 13:40:02 5-CONFIG:Configured from outbandSC(config)#interface range fastethernet 0/23-242010-05-06 13:40:40 5-CONFIG:Configured from outbandSC(config-if-range)#switchport mode trunk2010-05-06 13:41:18 5-CONFIG:Configured
22、from outbandSC(config-if-range)#exit2010-05-06 13:42:28 5-CONFIG:Configured from outbandSC(config)#spanning-tree2010-05-06 13:42:45 5-CONFIG:Configured from outbandSC(config)#spanning-tree mode rstp2010-05-06 13:43:09 5-CONFIG:Configured from outbandSC(config)#interface vlan 102010-05-06 13:43:35 5-
23、CONFIG:Configured from outbandSC(config-if)#ip address 192.168.40.33 255.255.255.02010-05-06 13:44:04 5-CONFIG:Configured from outbandSC(config-if)#no shutdown2010-05-06 13:44:24 5-CONFIG:Configured from outbandSC(config-if)#exit2010-05-06 13:44:30 5-CONFIG:Configured from outbandSC(config)#interfac
24、e vlan 202010-05-06 13:44:43 5-CONFIG:Configured from outbandSC(config-if)#ip address 192.168.40.54 255.255.255.02010-05-06 13:45:07 5-CONFIG:Configured from outbandSC(config-if)#exit2010-05-06 13:46:08 5-CONFIG:Configured from outbandSC(config)#SC(config)#end设备4:设备5:设备6:6、SC的配置结果(show run)SC#show r
25、unning-configSystem software version : 1.66(3) Build Sep 7 2006 RelBuilding configuration.Current configuration : 1020 bytes!version 1.0!hostname SCvlan 1!vlan 10name exmp10!vlan 30name exmp20!enable secret level 14 5 %YH.Y*TQC,tZVTH.Vpu_;C,tpU0D+S!spanning-tree mode rstpspanning-treeinterface fastE
26、thernet 0/1switchport mode trunk!interface fastEthernet 0/2switchport mode trunk!interface fastEthernet 0/3switchport mode trunk!interface fastEthernet 0/4switchport mode trunk!interface fastEthernet 0/5switchport mode trunk!interface fastEthernet 0/6switchport mode trunk!interface fastEthernet 0/7s
27、witchport mode trunk!interface fastEthernet 0/8switchport mode trunk!interface fastEthernet 0/9switchport mode trunk!interface fastEthernet 0/10switchport mode trunk!interface fastEthernet 0/20switchport access vlan 10!interface vlan 10no shutdownip address 192.168.40.33 255.255.255.0!interface vlan
28、 30ip address 192.168.40.54 255.255.255.0!end四、实践总结通过两周的时间来对网络的认识,我对网络知识有了初步对交换机和路由器的了解和认识,了解了交换机与路由器主要功能的区别和之间的联系。对于交换机:学会交换机的基本连接和配置方法,了解了交换机在网络互连中的作用;学会局域网互连、局域网与广域网互连的方法,了解了构建小型计算机网络的基本知识,并且熟悉真实环境下交换机使用和熟悉交换机的配置与管理方法。对于路由器:学会路由器的基本连接和配置方法,了解了路由器在网络互连中的作用;学会了网互连、局域网与广域网互连的方法,了解了建小型计算机网络的基本知识;熟悉了该实践中的路由器特性;和掌握华为路由器基本配置方法。通过Console口配置路由器:通过Console口配置QuidwayR系列中低端路由器和掌握Console口方式配置路由器。当然交换机的种类很多分类也不少,例如有两层交换机和三层交换机,而在两层交换机中有大致分为了六类,有时间的原因本次的时间我们不可能对它们的认识很深,这需要我们在课下自己动手操作,我觉得本次实践一个人的力量是不够的这需要团队的合作,以及对我们以后的工作会有很大的帮助。
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1