




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、.计算机网络规划与设计实 验 指 导 书计算机科学学院*;计算机网络规划与设计实验指导书预备实验搭建交换机模拟实验环境一、实验目的1. 掌握交换机模拟软件的安装与使用方法;2. 掌握用模拟软件设计网络的方法;3. 掌握在模拟环境中配置网络设备的基本方法。二、实验要求1. 安装网络实验模拟软件;2. 按实验内容要求设计一个简单的网络;3. 按实验步骤完成各网络设备的配置;4. 进行相关测试;5. 对实验结果进行分析讨论;6. 完成实验思考题;7. 实验结束提交书面实验报告。三、实验环境1. 运行Windows操作系统的PC机一台;2. 网络实验模拟软件Cisco Packet Tracer四、实
2、验内容及步骤1. 安装Cisco Packet Tracer模拟器软件;2. 启动网络设计器,按图1-1设计一个网络拓扑,在该网络中有两台Cisco2950交换机,两台交换机通过快速以太网端口1进行级联;3. 添加4台PC机,PC1和PC2分别连接在交换机1的第2和第3号端口,PC3和PC4分别连接在交换机2的第2和第3号端口;4. 设计完成后,保存该网络拓扑结构;5. 启动网络模拟器软件,在“File”菜单下,选择“Load Netmap”菜单项,装载刚才设计好的网络拓扑结构,以模拟出该网络环境;6. 分别设置这两台交换机的主机名为C2950A和C2950B;7. 分别设置4台PC机的IP地
3、址为192.168.3.11,192.168.3.12,192.168.3.51,192.168.3.52(子网掩码设置为:255.255.255.0);8. 在PC1中,分别Ping主机PC2,PC3和PC4,检查网络的连通性;9. 在模拟器的“File”菜单下,选择“Save multi devices configs”菜单项,将整个网络配置保存到一个文件中,然后退出模拟器;10. 重新启动模拟器,并加载前面设计的网络拓扑结构;11. 在模拟器的“File”菜单下,选择“Load multi devices configs”菜单项,从保存的配置文件中恢复网络配置;12. 检查各网络设备的配
4、置是否恢复。图1-1 网络拓扑结构五、实验结果及分析1配置命令:Switch1:Switch>enSwitch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname C2950AC2950A(config)#exitC2950A#%SYS-5-CONFIG_I: Configured from console by consoleSwitch2:Swit
5、ch>enSwitch#configConfiguring from terminal, memory, or network terminal? Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname C2950AC2950A(config)#exitC2950A#%SYS-5-CONFIG_I: Configured from console by consoleC2950A#2检查连通性:理解实验内容中的每一个步骤,并在实验报告中记录关键步骤的作用及配置方法。六、实验思考
6、题1. 如果把主机PC3的IP地址配置为192.168.2.51,还能和PC1主机Ping通吗?为什么?答:不能Ping通,因为这样的话它和其他的PC的网关号不一样,表明PC3和其他的PC不在同一网段,所以Ping不通。实验一交换机的基本配置与VLAN设置一、实验目的1. 了解交换机的配置方式;2. 掌握交换机的基本配置与管理方法;3. 掌握基于交换机的VLAN划分和设置方法。二、实验要求1. 按实验内容要求设计网络拓扑结构;2. 按网络设计要求完成交换机的基本配置;3. 按网络设计要求完成VLAN的划分与配置;4. 配置PC机的IP地址、子网掩码及网关;5. 进行相关测试;6. 在实验报告上
7、记录配置方法和命令;7. 对实验结果进行分析讨论;8. 完成实验思考题;9. 实验结束提交书面实验报告。三、实验环境1. 运行Windows操作系统的PC机一台;2. PC机上安装有网络实验模拟软件Cisco Packet Tracer四、实验内容及步骤1. 启动网络设计器,按图2-1设计一个网络拓扑,在该网络中有一台Cisco2950交换机和3台PC机,PC1、PC2和PC3分别连接在交换机的第1、第2和第3号端口;2. 设计完成后,保存该网络拓扑结构;3. 启动网络模拟器软件,在“File”菜单下,选择“Load Netmap”菜单项,装载刚才设计好的网络拓扑结构,以模拟出该网络环境;4.
8、 设置交换机的主机名为C2950;配置命令:Switch(config)#hostname C29505. 配置交换机的特权密码为cisco;配置命令:C2950(config)#enable password cisco6. 配置Telnet虚拟终端,允许16个Telnet连接,Telnet登录口令为cisco;配置命令:C2950(config)#line vty 0 15C2950(config-line)#password ciscoC2950(config-line)#login/登录口令生效C2950(config-line)#exit7. 配置以太网端口的端口说明、端口速度及通信
9、方式;配置命令:C2950(config)#int f0/1C2950(config-if)#description "This is the interface 0/1 connet with PC1."C2950(config-if)#speed 100/端口速度100MC2950(config-if)#duplex full/端口设置为全双工8. 保存交换机配置信息;配置命令:C2950#copy running-config startup-config9. 查看交换机配置信息;配置命令:C2950#show interfaces10. 创建VLAN2和VLAN3;
10、配置命令:C2950#vlan database C2950(vlan)#vlan 2 name myvlan2C2950(vlan)#vlan 3 name myvlan311. 划分VLAN端口;配置命令:C2950(config)#interface f0/1C2950(config-if)#switchport mode access C2950(config-if)#switchport access vlan 2C2950(config-if)#exitC2950(config)#int f0/2C2950(config-if)#switchport mode access C29
11、50(config-if)#switchport access vlan 2C2950(config-if)#exitC2950(config)#int f0/3C2950(config-if)#switchport mode access C2950(config-if)#switchport access vlan 312. 配置管理VLAN2和VLAN3的虚拟子端口IP地址;配置命令:C2950(config)#interface vlan 2C2950(config-if)#ip address 192.168.2.1 255.255.255.0C2950(config-if)#no
12、shutdown C2950(config-if)#exitC2950(config)#int vlan 3C2950(config-if)#ip address 192.168.3.1 255.255.255.0C2950(config-if)#no shut13. 验证VLAN设置;配置命令:C2950#show vlan14. 分别设置3台PC机的IP地址为192.168.2.11,192.168.2.12,192.168.3.13,子网掩码为255.255.255.0,网关为192.168.2.1,192.168.2.1,192.168.3.1;15. 在主机PC1中,分别Ping主机
13、PC2和PC3,检查网络的连通性。图2-1 网络拓扑结构五、实验结果及分析按上述配置完成后,PC1,PC2,PC3之间相互不能ping通六、实验思考题1. 本实验中主机PC1和PC2、PC3能Ping通吗?为什么?答:不能Ping通,因为他们在不同的VLAN。2. 本实验中VLAN2和VLAN3能直接通信吗?为什么?如果不能直接通信,那么用什么办法才能使它们可以互相通信? 答:有以下两种方法:(1).通过路由器实现VLAN间的通信 。具体为:通过路由器的不同物理接口与交换机上的每个VLAN分别连接或者通过路由器的逻辑子接口与交换机的各个VLAN连接。( 2). 用交换机代替路由器实现VLAN间
14、的通信实验二路由器的基本配置一、实验目的1. 了解路由器的工作模式和使用界面;2. 熟悉Cisco网络设备的基本配置命令;3. 掌握Cisco路由器的基本配置方式及配置命令;4. 掌握路由器的基本配置与管理方法。二、实验要求1. 按实验内容要求设计网络拓扑结构;2. 按网络设计要求完成路由器的基本配置;3. 配置PC机的IP地址、子网掩码及网关;4. 进行网络连通性测试;5. 在实验报告上详细记录实验的每一个步骤和任务及该任务的实现方法;6. 对实验结果进行分析讨论;7. 完成实验思考题;8. 实验结束提交书面实验报告。三、实验环境1. 运行Windows操作系统的PC机一台;2. PC机上安
15、装有网络实验模拟软件Cisco Packet Tracer四、实验内容及步骤1. 启动网络设计器,按图3-1设计一个网络拓扑,在该网络中有两台Cisco2501路由器和2台PC机,PC1和PC2分别连接在Router 1和Router 2的以太网端口,两台路由器通过同步串口相连;2. 设计完成后,保存该网络拓扑结构;3. 启动网络模拟器软件,在“File”菜单下,选择“Load Netmap”菜单项,装载刚才设计好的网络拓扑结构,以模拟出该网络环境;4. 在用户模式下输入“?”,分别按“Enter”键和“Space bar”键,观察其不同,并了解此模式下可以使用的命令;5. 进入特权模式,输入
16、“?”,观察此模式下的命令,了解用“q”键退出上下文帮助模式的方法;6. 输入“sh?”,观察发生的结果;7. 输入“sh”,按“Tab”键,观察发生的情况;8. 分别键入“Up Arrow”、“Ctrl-P”、“Ctrl-A”、“Ctrl-B”、“Ctrl-D”、“Ctrl-E”、“Ctrl-F”观察结果;9. 分别输入“show version”、“show interfaces”、“show running-config”、“show terminal”等命令,观察输出结果;10. 输入“show startup-config”命令,观察输出结果,输入执行“copy running-co
17、nfig startup-config”命令后,再用“show startup-config”命令显示配置信息;11. 输入“show flash”命令观察内存中的文件信息;12. 设置两台路由器的主机名分别为R2501A和R2501B;配置命令:Router(config)#hostname R2501ARouter(config)#hostname R2501B13. 设置路由器的特权密码为cisco;配置命令:R2501A(config)#enable password ciscoR2501B(config)#enable secret cisco14. 配置Telnet虚拟终端,设置5
18、条线路,Telnet登录口令为cisco;配置命令:R2501A(config)#line vty 0 4R2501A(config-line)#password ciscoR2501A(config-line)#loginR2501B(config)#line vty 0 4R2501B(config-line)#password ciscoR2501B(config-line)#login15. 配置路由器1和路由器2的以太网端口IP地址分别为192.168.1.1和192.168.2.1;配置命令:R2501A(config)#interface e0R2501A(config-if)#
19、ip address 192.168.1.1 255.255.255.0R2501A(config-if)#no shutR2501B(config)#int e0R2501B(config-if)#ip address 192.168.2.1 255.255.255.0R2501B(config-if)#no shut16. 配置路由器1和路由器2的串口IP地址分别为192.168.10.1和192.168.10.2;配置命令:R2501A(config)#int s0R2501A(config-if)#ip address 192.168.10.1 255.255.255.0R2501A(
20、config-if)#no shutR2501A(config-if)#clock rate 6400R2501B(config)#int s0R2501B(config-if)#ip address 192.168.10.2 255.255.255.0R2501B(config-if)#no shut17. 分别设置主机PC1和PC2的IP地址为192.168.1.2和192.168.2.2,子网掩码为255.255.255.0,网关为192.168.1.1和192.168.2.1;18. 在主机PC1中,Ping主机PC2,检查网络的连通性。图3-1 网络拓扑结构五、实验结果及分析1. 理
21、解实验内容中的每一个步骤,并在实验报告中记录相关的输出结果;Router3配置过程:R2951B#show runBuilding configuration.Current configuration : 548 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname R2951Benable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0in
22、terface FastEthernet0/0 ip address 192.168.10.2 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 ip address 192.168.2.1 255.255.255.0 duplex auto speed auto!ip classlessip route 192.168.1.0 255.255.255.0 192.168.10.1 line con 0line vty 0 4 password cisco loginendRouter2配置过程:R2501A#show
23、 runBuilding configuration.Current configuration : 523 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname R2501A!enable password ciscointerface FastEthernet0/0 ip address 192.168.10.1 255.255.255.0 duplex auto spe
24、ed auto!interface FastEthernet0/1 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto!ip classlessip route 192.168.2.0 255.255.255.0 192.168.10.2 line con 0line vty 0 4 password cisco loginend2. 说明关键步骤的作用及配置方法。六、实验思考题1. 本实验中路由器2的串口IP地址能否设置为192.168.20.1?为什么?答:不行,要是换成20.1 的话和对端ip不属于同一子网,无法通信2.
25、 本实验中主机PC1和PC2能Ping通吗?为什么?怎样才能使PC1和PC2Ping通?答:就现在这种状态的话pc1和pc2是不能通信的要向通信必须起静态路由 或者动态路由协议才行。静态:R1:ip route 192.168.10.0 0.0.0.255 192.168.10.1 R2:ip route 192.168.10.0 0.0.0.255 192.168.10.2 动态:Rip R1: router rip version 2 no auto net 192.168.10.0 net192.168.1.0 R2: router rip version 2 no auto net 1
26、92.168.10.0 net192.168.2.0实验三路由协议配置一、实验目的1. 熟悉路由器的基本连接和配置方法,了解路由器在网络互连中的作用;2. 掌握路由器的接口配置方法;3. 掌握静态路由的创建方法与使用原则;4. 掌握使用路由协议实现动态路由选择的方法。二、实验要求1. 按实验内容要求设计网络拓扑结构;2. 按网络设计要求完成路由器的端口配置;3. 规划和配置路由器的IP地址;4. 通过配置路由器的静态路由,使网络可以互相通信;5. 使用动态路由协议配置路由器的动态路由;6. 进行网络连通性测试;7. 在实验报告上详细记录实验的每一个步骤和配置方法;8. 对实验结果进行分析讨论;
27、9. 完成实验思考题;10. 实验结束提交书面实验报告。三、实验环境1. 运行Windows操作系统的PC机一台;2. PC机上安装有网络实验模拟软件Cisco Packet Tracer四、实验内容及步骤1. 启动网络设计器,参照图4-1设计一个网络拓扑,在该网络中选择三台Cisco2500系统的路由器和3台PC机,三台PC机分别和三台路由器的以太网端口相连,三台路由器通过同步串口互相连接;2. 设计完成后,保存该网络拓扑结构;3. 启动网络模拟器软件,在“File”菜单下,选择“Load Netmap”菜单项,装载刚才设计好的网络拓扑结构,以模拟出该网络环境;4. 按网络拓扑结构规划和配置
28、所有路由器的网络端口IP地址及掩码地址;5. 分别设置三台PC机的IP地址、子网掩码和网关;6. 使用Ping和traceroute等网络命令测试网络的连通性;7. 在各个路由器中配置静态路由,然后测试路由器之间的连通性;8. 在各个路由器中配置动态路由协议,然后测试路由器之间的连通性;9. 使用show ip route命令察看各个路由器的路由;10. 通过人为的故障模拟观察路由器的工作情况。图4-1 网络拓扑结构五、实验结果及分析1. 在实验报告中写出详细的实验步骤,并记录相关的输出结果;Router0配置过程:Building configuration.Current configur
29、ation : 696 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Routerinterface FastEthernet0/0 ip address 20.1.1.1 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 ip address 10.1.1.1 255.255.255.0 d
30、uplex auto speed auto!interface FastEthernet1/0 no ip address duplex auto speed auto shutdown!interface FastEthernet1/1 ip address 192.168.0.254 255.255.255.0 duplex auto speed auto!router rip version 2 network 10.0.0.0 network 20.0.0.0 network 192.168.0.0 no auto-summary!ip classlessline con 0line
31、vty 0 4 loginendRouter1配置过程:Router>enRouter#show runBuilding configuration.Current configuration : 696 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Routerinterface FastEthernet0/0 ip address 12.1.1.1 255.
32、255.255.0 duplex auto speed auto!interface FastEthernet0/1 ip address 10.1.1.2 255.255.255.0 duplex auto speed auto!interface FastEthernet1/0 no ip address duplex auto speed auto shutdown!interface FastEthernet1/1 ip address 192.168.1.254 255.255.255.0 duplex auto speed auto!router rip version 2 net
33、work 10.0.0.0 network 12.0.0.0 network 192.168.1.0 no auto-summary!ip classlessline con 0line vty 0 4 loginendRouter2的配置:Router>enRouter#show runBuilding configuration.Current configuration : 688 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno
34、service password-encryptionhostname Routerinterface FastEthernet0/0 ip address 20.1.1.2 255.255.255.0 duplex auto speed auto!interface FastEthernet0/1 ip address 12.1.1.2 255.255.255.0 duplex auto speed auto!interface Ethernet1/0 no ip address duplex auto speed auto shutdown!interface Ethernet1/1 ip
35、 address 192.168.2.254 255.255.255.0 duplex auto speed auto!router rip version 2 network 12.0.0.0 network 20.0.0.0 network 192.168.2.0 no auto-summary!ip classlessline con 0line vty 0 4 loginend测试结果:2. 写出本实验中IP地址的规划和分配;PC0,PC1,PC2的IP地址分别为: 192.168.0.254 192.168.1.1 192.168.2.1Router0的两个接口的IP为:Router
36、1的两个IP地址为:Router2的两个IP地址为:3. 分析各种动态路由协议的作用及配置方法。六、实验思考题1. 本实验中对路由器的端口有什么要求?为什么?这个模拟机里的路由器本身默认只有两个以太网接口和一个console口,当然只能用console口链接主机,而不能用以太网接口接主机,同时console口不能用于路由器之间相连。要是不用console口连接主机的话,必须加入模块,可以使以太网接口也可以是串行口,如果是串行口就只能用于路由器之间的连线,若是以太网的话可以用于路由器之间也可以是路由器接主机2. 本实验中三台路由器的IP地址设置有什么要求?为什么?两两连接的路由器接口必须是同一网
37、段的ip地址,同一个路由器上的三个接口均不能分配同一网段ip 链接主机的端口上的ip必须和主机上的ip地址是同一网段的当然,三个主机也不能是同一网段的ip实验四网络设计与配置一、实验目的1. 掌握网络的规划和设计方法;2. 掌握网络设备的连接及配置方法;3. 掌握IP地址的规划和设置方法;4. 掌握基本的网络测试方法。二、实验要求1. 完成小型网络的设计方案并画出网络拓扑图;2. 按网络设计要求选择合适的网络设备并完成各设备的连接及配置;3. 规划和配置网络中各网络设备端口的IP地址;4. 测试网络的连通性及网络基本性能参数;5. 在实验报告上详细记录实验的每
38、一个步骤和配置方法;6. 对实验结果进行分析讨论;7. 完成实验思考题;8. 实验结束提交书面实验报告。三、实验环境1. 运行Windows操作系统的PC机一台;2. PC机上安装有网络实验模拟软件Cisco Packet Tracer四、实验内容及步骤1. 设计一个小型网络,要求至少有三台路由器和三台交换机,其中至少有一台为三层交换机;2. 写出网络设计方案;3. 在模拟器中用网络设计器画出网络拓扑图;4. 按网络设计要求选择合适的网络设备并完成各设备的之间的连接;5. 规划和配置各网络设备端口的IP地址;IP地址分别为:PC0:192.168.1.1/24 PC1: 192.168.2.1
39、/24 PC2: 192.168.3.1/24 PC3: 192.168.1.2/24 PC4: 192.168.2.2/24 PC5: 192.168.3.2/246. 进行VLAN的划分,并进行相关的配置;7. 使用三层交换实现VLAN间的路由;、8. 测试网络的连通性及网络基本性能参数;9. 在实验报告上详细记录实验的每一个步骤和配置方法;10. 对实验结果进行分析讨论;11. 完成实验思考题;12. 实验结束提交书面实验报告。五、实验结果及分析1. 在实验报告中写出详细的实验步骤,并记录相关的配置方法;Switch1:配置步骤:Sw2>enSw2#show runBuilding
40、 configuration.Current configuration : 1179 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Sw2!interface FastEthernet0/1 switchport mode trunk!interface FastEthernet0/2!interface FastEthernet0/3 switchport acc
41、ess vlan 2 switchport mode access!interface FastEthernet0/4 switchport access vlan 3 switchport mode access!interface FastEthernet0/5 switchport access vlan 4 switchport mode access!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface Fast
42、Ethernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEth
43、ernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlan1 no ip address shutdown!line con 0!line vty 0 4 loginline vty 5 15 login!EndSwitch0配置过程:Sw1>en Sw1#show runBuilding configuration.Cur
44、rent configuration : 1202 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname Sw1!interface FastEthernet0/1 switchport mode trunk!interface FastEthernet0/2 switchport mode trunk!interface FastEthernet0/3 switchport
45、 access vlan 2 switchport mode access!interface FastEthernet0/4 switchport access vlan 3 switchport mode access!interface FastEthernet0/5 switchport access vlan 4 switchport mode access!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthe
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 二零二五年度生物质能发电站建设分包协议
- 二零二五年度律师事务所提供劳动合同解除通知及起草收费标准协议
- 2025年度车辆借用与车辆安全监控服务合同
- 二零二五年度汽车租赁公司车辆保管与押金返还合同
- 二零二五年度高端商务写字楼物业管理承包合同范本
- 二零二五年度员工自愿离职交接手续及离职后业务支持协议
- 二零二五年度电子商务企业标准劳动合同封面与电商平台合作协议
- 二零二五年度员工股权激励与期权绑定合同
- 二零二五年度商标使用权收购合同范本
- 二零二五年度老旧小区改造房屋土地转让与民生改善合同
- 陕22N1 供暖工程标准图集
- 统编版八年级语文下册 24 唐诗三首练习题 (含答案)
- 混凝土抗压强度统计评定表(自动计算-数理-非数理)
- 公司清洁生产的审核报告书
- 2024露天煤矿智能化建设与管理规范
- 中国成人患者肠外肠内营养临床应用指南(2023版)
- 高速公路机械施工方案设计
- 学校桌椅采购投标方案(技术方案)
- 乳腺结节健康宣教
- GA/T 2012-2023窃照专用器材鉴定技术规范
- 内部控制及内部审计
评论
0/150
提交评论