文档详情

计算机网络基础模拟器实验报告.doc

发布:2018-05-05约5.36千字共14页下载文档
文本预览下载声明
计算机网络模拟器实验报告 实验说明:共5个实验,其中前3个必做,后2个选做。 实验目的 掌握模拟器软件的使用方法; 掌握配置PC、交换机、路由器的方法; 掌握为交换机设置VLAN,为端口设置TRUNK的方法。 实验环境(请注意关闭杀毒软件) WinXP/WIN7、HW-RouteSim 2.2(软件请到BB课程资源下载,下载后直接解压缩运行;下载前请关闭杀毒软件) 实验步骤及结果 实验一:计算机和交换机基本设置 添加一个交换机,两个计算机,连接A电脑到交换机3号端口,B电脑到6号端口,双击交换机,进入终端配置: Switchsystem password: [Quidway]sysname S3026 ;交换机重命名为S3026 [S3026]super password 111 ;设置特权密码为111 [S3026]quit S3026sys password:111 [S3026]display currect-config ;查看当前所有配置 [S3026]display vlan all ;查看当前VLAN设置 观察此时所有交换机端口都在同一个vlan1内。 双击小电脑A: login:root password:linux [root@PCAroot]# ? ;输入?号查看命令提示 [root@PCAroot]#ifconfig eth0 netmask 双击小电脑B: login:root password:linux [root@PCAroot]#ifconfig eth0 netmask 点击A电脑做测试: [root@PCA root]#ping 实验结果及其分析:(将结果保存为文件net1.txt) [root@PCA root]# ping 64 bytes from : icmp_seq=1 ttl=128 time=0.207 ms 64 bytes from : icmp_seq=1 ttl=128 time=0.100 ms 64 bytes from : icmp_seq=1 ttl=128 time=0.96 ms 64 bytes from : icmp_seq=1 ttl=128 time=0.96 ms 4packets transmitted, 4 received, 0% loss, time 2000ms 试验二:基本VLAN设置 添加2台交换机,4台计算机。 连接A电脑到A交换机3号端口,B电脑到6号端口; 连接C电脑到B交换机3号端口,D电脑到6号端口; 将A交换机的8号端口与B交换机的1号端口连接。 分别设置计算机的IP为: PCA: PCB: PCC: PCD: 掩码都是 此时,PCA与PCC在同一个子网内;PCB与PCD在同一个子网内; 默认交换机设置下,PCA能与PCC连通,PCB能与PCD连通。 实验结果及其分析: 继续本实验: ... ... ;登录交换机过程省略 [SwitchA]vlan 2 ;创建vlan2 [SwitchA-vlan2]port e0/3 to e0/4 [SwitchA]vlan 3 [SwitchA-vlan3]port e0/5 to e0/6 [SwitchB]vlan 2 [SwitchB-vlan2]port e0/3 to e0/4 [SwitchB]vlan 3 [SwitchB-vlan3]port e0/5 to e0/6 分别查看各交换机的VLAN设置,然后测试连通性: [root@PCA root]#ping 通 (本机IP) [root@PCA root]#ping 不通 (中间连接线是vlan 1) [root@PCA root]#ping 不通 (不同网络,不同vlan) [root@PCA root]#ping 不通 (不同网络,不同vlan) [root@PCB root]#ping 不通 (中间连接线是vlan 1) 将PCA改接到SwitchA E0/2 (vlan 1) [root@PCA root]#ping 不通 (同网络,不同vlan) 将PCC改接到SwitchB E0/2 (vlan 1) [root@PCA root]#ping 通 (同网络,同在vlan 1) 再改回来: 将PCA接回到SwitchA E0/3 (vlan 1) 将PCC接回到SwitchB E0/3 (vlan 1) 并设置trunk: [S3026A]interface ethernet 0/8 [S3026
显示全部
相似文档