一、实验目的和要求
本课程设计的目的是使得学生在学习“计算机网络”这门课程的基础上,进一步理解计算机网络的基本理论,将理论知识和实践结合起来,提高学生对IP地址规划与简单网络连通性的水平。
课程设计是教学中很重要的一项实践环节,它可以帮助学生理解课堂教学中的内容,对提高学生的实践认识和实际动手能力都有很重要的实际意义。按照课程设计的要求,结合所学的理论知识,查找相关资料,完成课程设计任务,同时提高网络应用能力,为后续课程打好基础。
二、实验主要仪器和设备
PC(win 10系统)、Cisco Packet Tracer 6.1Sv
三、实验方法与步骤(需求分析、算法设计思路、流程图等)
1. 在模拟环境中建立与任务书中的相应的拓扑图。其中,PC1、PC2与交换机之间、路由器R2与交换机之间的连线用直连线,路由器之间的连接用串口线,交换机之间的连线、PC3、Server与路由器之间的连线用交叉线。
2. 将每个设备的名称改成拓扑图上显示的名称。 如上图所示 以ISP为例: 3. 在R2、R3和ISP上:关闭域名解析,通过console登录时关闭会话超时。 R2: R3: ISP: 4. 设置R2、R3、ISP的特权密码为ccnp。 R2: R3: ISP: 5. 使用地址表确定接口地址,在纸上画出拓扑图并在标出地址和相应的接口名称。使用拓扑图确定哪些接口是 DCE 接口,配置 DCE 接口的时钟频率为 64000。 根据地址表,逐个配置交换机和路由器各接口的地址。 在R2上配置接口,其中接口IP如图: 在R3上配置接口,将其S0/0/1接口的时钟频率调为64000,其中接口ip如图:
在ISP上配置接口,将其S0/0/0接口的时钟频率调为64000,其中接口ip如图:
在S3上配置接口,其中接口ip如图: 配置PC1的ip地址、子网掩码、网关。 配置PC2的ip地址、子网掩码、网关。 配置PC3的ip地址、子网掩码、网关。 配置Server的ip地址、子网掩码、网关。 6. 使用静态路由协议实现全网的连通性 S3:
ISP:
R2:
R3:
7. 显示各路由器和三层交换机的路由表 R2: R3: ISP: S3: 8. 显示二层交换机的MAC地址表 9. PC1ping通PC2和PC3
PC1、PC2ping通Server R2ping通R3、ISP的Fa0/0接口 10. 在PT中的Simulation模式下,观察简单PDU(Simple PDU)的模拟测试过程,起点:PC1,终点:Server。 方法:首先点击右下角“Simulation”,转换为Simulation模式;选中右列中的“add simple PDU(P) ”,然后分别点击主机PC1和服务器Server;多次点击按钮“Capture/Forward”单步执行操作,同时在“Event List” 框中观察结果,直到Last Status的状态变成“successful”为止。 四、实验原始纪录(源程序、数据结构等) 1.ISP的配置命令 Router>en Router#conf t Router(config)#hostname ISP ISP(config)#no ip domain-lookup ISP(config)#line console 0 ISP(config)#no exec-timeout ISP(config)#exit ISP(config)#enable password ccnp ISP(config)#int f0/0 ISP(config-if)#ip add 209.165.201.17 255.255.255.0 ISP(config-if)#no shutdown ISP(config-if)#exit ISP(config)#int S0/0/0 ISP(config-if)# ip add 209.165.200.226 255.255.255.252 ISP(config-if)#no shutdown ISP(config-if)#exit ISP(config)#ip routing ISP(config)#ip route 192.168.11.0 255.255.255.0 S0/0/0 ISP(config)#ip route 192.168.10.0 255.255.255.0 S0/0/0 ISP(config)#ip route 10.1.1.0 255.255.255.0 S0/0/0 ISP(config)#ip route 192.168.30.0 255.255.255.0 S0/0/0 ISP(config)#ip route 10.2.2.0 255.255.255.252 S0/0/0 ISP(config)#exit ISP#show ip route 2.R2的命令配置 Router>en Router#conf t Router(config)#hostname R2 R2(config)#no ip domain-lookup R2(config)#line console 0 R2(config)#no exec-timeout R2(config)#exit R2(config)#enable password ccnp R2(config)#int f0/1 R2(config-if)#ip add 10.1.1.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#int S0/0/1 R2(config-if)# ip add 10.2.2.1 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#int S0/1/0 R2(config-if)# ip add 209.165.200.225 255.255.255.252 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#ip routing R2(config)#ip route 209.165.201.0 255.255.255.0 S0/1/0 R2(config)#ip route 192.168.30.0 255.255.255.0 S0/0/1 R2(config)#ip route 192.168.11.0 255.255.255.0 f0/1 R2(config)#ip route 192.168.10.0 255.255.255.0 f0/1 R2 (config)#exit R2#show ip route 3.R3配置命令 Router>en Router#conf t Router(config)#hostname R3 R3(config)#no ip domain-lookup R3(config)#line console 0 R3(config)#no exec-timeout R3(config)#exit R3(config)#enable password ccnp R3(config)#int f0/0 R3(config-if)#ip add 192.168.30.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#int S0/0/1 R3(config-if)# ip add 10.2.2.2 255.255.255.252 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#ip routing R3(config)#ip route 192.168.10.0 255.255.255.0 S0/0/1 R3(config)#ip route 192.168.11.0 255.255.255.0 S0/0/1 R3(config)#ip route 10.1.1.0 255.255.255.0 S0/0/1 R3(config)#ip route 209.165.201.0 255.255.255.0 S0/0/1 R3(config)#ip route 209.165.200.224 255.255.255.252 S0/0/1 R3 (config)#exit R3#show ip route 4.S3配置命令 Switch>en Switch#conf t Switch(config)#hostname S3 Switch (config)#no ip domain-lookup Switch (config)#line console 0 Switch (config)#no exec-timeout Switch (config)#exit Switch (config)#enable password ccnp Switch (config)#int f0/1 Switch (config-if)#ip add 192.168.10.1 255.255.255.0 Switch (config-if)#no shutdown Switch (config-if)#exit Switch (config)#int f0/2 Switch (config-if)# ip add 192.168.11.1 255.255.255.0 Switch (config-if)#no shutdown Switch (config-if)#exit Switch (config)#int f0/3 Switch (config-if)# ip add 10.1.1.1 255.255.255.0 Switch (config-if)#no shutdown Switch (config-if)#exit Switch (config)#ip routing Switch (config)#ip route 192.168.30.0 255.255.255.0 10.1.1.2 Switch (config)#ip route 10.2.2.0 255.255.255.252 10.1.1.2 Switch (config)#ip route 209.165.201.0 255.255.255.0 10.1.1.2 Switch (config)#ip route 209.165.200.224 255.255.255.252 10.1.1.2 Switch (config)#exit Switch #show ip route 5.S21 MAC地址表 Switch>en Switch#conf t Switch(config)#hostname S21 S21(config)#exit S21#show mac-address-table 6. S22 MAC地址表 Switch>en Switch#conf t Switch(config)#hostname S22 S21(config)#exit S21#show mac-address-table 7.PC1ping通PC2 ping 192.168.11.254 8.PC1 ping 通PC3 ping 192.168.30.254 9.PC1 ping 通Server ping 209.165.201.30 10.PC2 ping Server ping 209.165.201.30 11.R2 ping 通R3的Fa0/0接口 R2>en R2#ping 192.168.30.1 12.R2 ping 通ISP的Fa0/0接口 R2>en R2#ping 209.165.201.17 五、实验结果及分析(计算过程与结果、数据曲线、图表等) 网段连接成功,各设备之间也能相互ping通
六、实验总结与思考 通过本次课程设计,我了解了路由配置的相关知识,并且会自行动手操作配置路由器,特别是给路由器配置接口,辨认DCE接口,基本三层路由器的连通,如何显示二层交换机的地址。经过一步步的操作,遇到问题解决问题,最终配置成功得到想要的实验结果。 在实验中遇到的一些问题: 用R2路由器ping不通R3和ISP路由器的fa0/0接口。 解决方法:1.检查各个路由器上的接口IP地址,子网掩码,网关是否输入正确,是否为“on”打开的情况。2.检查静态路由配置是否正确。我的情况是静态路由缺少了一位,导致路由器连接不通。 |