课程设计-1-文档(我的作业):(由于我的作业里面有大量的图片,上传起来比较大,想看的话,下载下来,有一个<b>试验相关程序截图:</b>栏目可以参考我做实验时的截图)。
<b>网络需求分析</b><b>:</b><b></b>
<b></b>
1:对照下图,按照下面要求1-3,组建和完成一个简单的网络,完成以下需求:
<a target="_blank" href="http://blog.51cto.com/attachment/201212/174643459.png"></a>
(1)路由器的基本配置,对路由器Router0,Router1和Router2设置使能密码,加密使能密码,虚拟终端线密码,并且能够telnet登录;
(2)使用标准访问控制列表ACL,进行控制,让左边的主机可以访问外网,右边的不能访问。
(3)使用静态路由,为路由器增加静态路由命令,让路由器之间可以互相访问。
(4)使用的ping 命令和诊断命令show 和debug验证配置效果。
<b>网络拓扑结构设计:</b><b></b>
<a target="_blank" href="http://blog.51cto.com/attachment/201212/174603554.png"></a>
<b>实验步骤和调试过程:</b><b></b>
1:按照试验要求构建网络拓扑图;
2:对试验拓扑图进行调试;
3:对路由器router0,router1,router2设置使能密码,加密使能密码;
4:进入线命令配置模式,给虚拟中短线配置密码;
5:测试是否能够telnet登陆;
6:分别为三个路由器增加访问控制列表,使PC0,PC2,PC4能够通过路由器,PC1,PC3,PC5不能通过路由器,即不能访问外网。
7:为路由器增加静态路由表,让路由器router0和router2可以相互通信。
8:用ping 和 debug ip packet 命令,对经过路由器的数据报进行观测。
<b>网络详细配置:</b><b></b>
<b>实验要求(1):</b><b></b>
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#line v 0 4
Router(config-line)#login
% Login disabled on line 66, until 'password' is set
% Login disabled on line 67, until 'password' is set
% Login disabled on line 68, until 'password' is set
% Login disabled on line 69, until 'password' is set
% Login disabled on line 70, until 'password' is set
Router(config-line)#pass 222
Router(config-line)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console
Router#conf t
Router(config)#enable pass 123
Router(config)#enable se 321
Router(config)#end
<b>试验要求2</b><b>:</b><b></b>
Router(config)#access-list 1 permit host 10.1.1.2
Router(config)#access-list 1 deny any
Router(config)#inter f0/0
Router(config-if)#ip access-group 1 in
Router(config-if)#end
<b>试验要求3</b><b>:</b><b></b>
router0的配置(增加静态路由表):
Router(config)#ip rou 192.168.0.0 255.255.255.0 s0/1/0
Router(config)#ip rou 10.1.1.0 255.255.255.0 s0/1/0
Router(config)#ip rou 10.2.1.0 255.255.255.0 s0/1/0
<b>试验要求4</b><b>【网络测试的步骤和内容】:</b><b></b>
Router#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 5/8/10 ms
Router#show ip rou
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet0/0
C 192.168.0.0/24 is directly connected, Serial0/1/0
S 192.168.1.0/24 [1/0] via 192.168.0.2
Router#debug ip pac
Router#debug ip packet
Packet debugging is on
IP: tableid=0, s=192.168.0.1 (local), d=192.168.1.2 (Serial0/1/0), routed via RIB
IP: s=192.168.0.1 (local), d=192.168.1.2 (Serial0/1/0), len 28, sending
IP: tableid=0, s=192.168.1.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), routed via RIB
IP: s=192.168.1.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), len 28, rcvd 3
IP: tableid=0, s=192.168.1.2 (Serial0/1/0), d=10.1.1.1 (FastEthernet0/0), routed via RIB
IP: s=192.168.1.2 (Serial0/1/0), d=10.1.1.1 (FastEthernet0/0), len 28, rcvd 3
IP: tableid=0, s=10.1.1.1 (local), d=192.168.1.2 (Serial0/1/0), routed via RIB
IP: s=10.1.1.1 (local), d=192.168.1.2 (Serial0/1/0), len 28, sending
IP: tableid=0, s=192.168.0.1 (local), d=192.168.0.2 (Serial0/1/0), routed via RIB
IP: s=192.168.0.1 (local), d=192.168.0.2 (Serial0/1/0), len 28, sending
IP: tableid=0, s=192.168.0.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), routed via RIB
IP: s=192.168.0.2 (Serial0/1/0), d=192.168.0.1 (Serial0/1/0), len 28, rcvd 3
<b>试验结果:</b><b></b>
1:成功为路由器router0,router1,router2设置使能密码,加密使能密码,虚拟终端线密码,并且能够telnet登陆;
2:成功增加访问控制列表,使左边的主机能够访问外网,右边的PC不能够访问外网;
3:成功增加静态路由表,使路由器之间能够相互通信。
<b>参考书籍:</b><b></b>
《网络互连技术-路由、交换与远程访问》、
《CCNA学习指南》
课堂练习题
本文转自 murongqingqqq 51CTO博客,原文链接:http://blog.51cto.com/murongqingqqq/1085948