eaintheaccidentinvestigation,managementandreporting,eachpostshouldbedevelopedunderthissystemspecialistscheck,cleartheexaminations,time,cyclesandotherrelevantregulations.Strengtheningsitesupervisionandexamination,todetectandinvestigateillegalcommand,illegaloperationsandviolationsofoperatingrules.Secondsafetyreferstotheproductionsite,technologymanagement,equipment,facilities,andsooncanleadtoaccidentsrisksexist.1,accordingtotheextentofthesecurityrisks,solvingisdividedintoa,b,andclevelsofdifficulty;A-level:difficult,miningdifficulties,shallbereportedtothecompany'sproblems.B-class:difficulttoresolvedif计算机网络技术与设备实验四
路由器基本配置
【实验目的】
1. 掌握路由器在网络中的作用、组成以及路由器设备选型; 2. 掌握PacketTracer 仿真软件的使用方法; 3. 练掌握路由器的基本配置命令,包括路由器名称设定、保护口令设定、查看命令等。 【实验环境】
Cisco2621 Router、PacketTracer仿真软件、具备Windows操作系统的PC机 【实验重点及难点】
重点:掌握PacketTracer路由仿真软件的使用、路由器基本配置 难点:路由接口的配置 【实验拓扑】
PC1 PC2 PC3 PC4 PC5
【实验内容】
一、PacketTrace仿真软件介绍
路由、交换仿真软件就是对真实的路由器、交换机等网络设备进行软件模拟,可以在安
iculties,shallconsistofminingorganizationstosolveproblems.C-class:fromsegmentsandbusinessrisksthatmustbeaddressedintheDepartment.2,open-pitmineunsafetypesinclude:electrical,transport,blasting,fire,andotherslope.3,accordingtotheseverityofthehazardfilledinbyunittroubleshooting,registrationform(seeatteaintheaccidentinvestigation,managementandreporting,eachpostshouldbedevelopedunderthissystemspecialistscheck,cleartheexaminations,time,cyclesandotherrelevantregulations.Strengtheningsitesupervisionandexamination,todetectandinvestigateillegalcommand,illegaloperationsandviolationsofoperatingrules.Secondsafetyreferstotheproductionsite,technologymanagement,equipment,facilities,andsooncanleadtoaccidentsrisksexist.1,accordingtotheextentofthesecurityrisks,solvingisdividedintoa,b,andclevelsofdifficulty;A-level:difficult,miningdifficulties,shallbereportedtothecompany'sproblems.B-class:difficulttoresolvedif装仿真软件的普通PC上进行网络设备的配置、管理以及网络规划、网络验证等工作,而不需要真实的网络设备。目前,市场上路由、交换等网络设备模拟软件有很多种,比较优秀的有Boson、RouterSim、CIM等。其中PacketTracer是目前最流行的,最接近真实环境的模拟软件。可以说,PacketTracer软件是真实设备的缩影。
二、PacketTracer 使用
打开PacketTracer软件,选择“Custom Made Devices”中的2621XM系列路由器。再选择“Connections”连接线中的“Serial DCE” 连接线,按照如图路由器的方式连接好路由器。 然后,按照图示连接好交换机和主机。
三、路由器配置
1.路由器配置模式及其转换 ⑴ 用户模式(user mode) router>
用户模式(user mode):该模式下只能查看路由器基本状态和普通命令,不能更改路由器配置。此时路由器名字后跟一个“>”符号,表明是在用户模式下。
⑵ 特权模式(privileged mode) router#
特权模式(privileged mode):该模式下可查看各种路由器信息及修改路由器配置。在用户模式下以enable命令登陆,此时“>”将变成“#”,表明是在privileged mode。
⑶ 全局配置模式(golbal configuration mode): router(config)#
全局配置模式(golbal configuration mode):该模式下可进行更高级的配置,如配置设备名称、路由协议等等,并可由此模式进入各种配置子模式。其提示符如:router(config)#
⑷ 接口模式(interface mode): Router(config-if)#
路由器的每个接口如果要正常使用,必须配置IP地址,手动激活等,要完成这些配置,必须先从全局模式进入到接口模式,命令:interface 接口名称(如F0/0,S0/1等);
(从各模式下返回,只要不断输入exit即可)
2.按照地址表配置路由器各接口的地址信息 ⑴ 配置路由器A
Router>en
//进入特权模式 //进入全局模式 //设置主机名
//进入Fastethernet 0/0 接口模式
Router#config t
Router(config)#hostname LabA LabA(config)#interface fa0/0 LabA(config-if)#no shutdown
LabA(config)#enable secret 310jt //设置加密口令,由用户模式进入特权模式起作用。
LabA(config-if)#ip address 192.168.10.1 255.255.255.0 //配置Fa0/0接口的IP地址
//激活Fa0/0接口
//进入serial 0/0 接口模式
LabA(config-if)#interface serial 0/0
LabA(config-if)#ip address 192.168.20.1 255.255.255.0 //配置serial 0/0接口的IP地址
iculties,shallconsistofminingorganizationstosolveproblems.C-class:fromsegmentsandbusinessrisksthatmustbeaddressedintheDepartment.2,open-pitmineunsafetypesinclude:electrical,transport,blasting,fire,andotherslope.3,accordingtotheseverityofthehazardfilledinbyunittroubleshooting,registrationform(seeatt2
eaintheaccidentinvestigation,managementandreporting,eachpostshouldbedevelopedunderthissystemspecialistscheck,cleartheexaminations,time,cyclesandotherrelevantregulations.Strengtheningsitesupervisionandexamination,todetectandinvestigateillegalcommand,illegaloperationsandviolationsofoperatingrules.Secondsafetyreferstotheproductionsite,technologymanagement,equipment,facilities,andsooncanleadtoaccidentsrisksexist.1,accordingtotheextentofthesecurityrisks,solvingisdividedintoa,b,andclevelsofdifficulty;A-level:difficult,miningdifficulties,shallbereportedtothecompany'sproblems.B-class:difficulttoresolvedifLabA(config-if)#no shutdown LabA(config-if)#exit
LabA(config)#line vty 0 4 LabA(config-line)#password LabA(config-line)#exit LabA(config)#^z
//激活serial 0/0接口
//退出接口模式,返回全局模式 //进入Vty线类接口模式
//配置Vty登陆密码 //退出子接口模式,返回全局模式 LabA(config-line)#login //允许登陆
//即Ctrl+Z的组合键,可直接返回特权模式
LabA#copy running-config startup-config //保存上面所做的所有配置 Destination filename [startup-config]? [Enter] LabA#
//特权模式
查看当前路由器配置 LabA#show running-config
⑵ 配置路由器B
Router>en Router#config t
Router(config)#hostname Lab_B Lab_B(config)#enable secret 123 Lab_B(config)#interface fa0/0
Lab_B(config-if)#ip address 192.168.30.1 255.255.255.0 Lab_B(config-if)#no shut
Lab_B(config-if)#interface serial 0/0
Lab_B(config-if)#ip address 192.168.20.2 255.255.255.0 Lab_B(config-if)#clock rate 64000 Lab_B(config-if)#no shut
Lab_B(config-if)#interface serial 0/1
Lab_B(config-if)#ip address 192.168.40.1 255.255.255.0 Lab_B(config-if)#clock rate 64000 Lab_B(config-if)#no shut Lab_B(config-if)#exit Lab_B(config)#line vty 0 4 Lab_B(config-line)#password todd Lab_B(config-line)#login Lab_B(config-line)#exit Lab_B(config)#^z
Lab_B#copy running-config startup-config Destination filename [startup-config]? [Enter] 查看当前路由器配置 Lab_B#show running-config
⑶ 配置路由器C (本次实验可暂不配置)
Router>en Router#config t
Router(config)#hostname LabC
iculties,shallconsistofminingorganizationstosolveproblems.C-class:fromsegmentsandbusinessrisksthatmustbeaddressedintheDepartment.2,open-pitmineunsafetypesinclude:electrical,transport,blasting,fire,andotherslope.3,accordingtotheseverityofthehazardfilledinbyunitttionform(seeatt3
roubleshooting,registra
计算机网络技术与设备实验4-路由器基本配置



