CCNA)实验题

  • 格式:doc
  • 大小:965.00 KB
  • 文档页数:60

CCNA实验指导书技术成就梦想,态度决定一切!Cisco 640-802Cisco Certified Network Associate2010年3月1日序言本实验指导书为计算机网络技术专业学生使用。

由于CDP协议,EIGRP等都是思科特有的,通用性不强,所以在做教程的时候这些都简化。

实验中不写出ping,show等结果,主要考虑到有些学生看到一个实验好几页,就害怕,其实真正要打的命令也没多少,本书立足点是用最少的纸张讲究最详细的实验。

本实验教程配套的PT实验文件里大部分都是已经配置过的了,请大家在做实验的时候利用命令:erase stratup-config 再reload重启来清除配置后再做实验。

技术学习推荐论坛:CHINAITLAB NET130 56CTO 51CTO 菊花ciscohuawei 91lab 誉天实验一路由器基本配置一、实验设备一台路由器,一台PC,配置线一条。

二、实验要求1.更改路由器名称为RA2.设置password为cisco1,secret为cisco2,vty为cisco3,并要求所有密码都加密。

3.关闭域名查找,命令输入同步。

4.配置以太网口的IP为202.119.249.2195.设置登陆提示信息6.对串行口进行描述(描述信息为:welcome to lixin lab)7.将上述信息保存到tftp server8.将实验过程配置写在记事本中进行粘贴。

9.配置VTY访问权限。

10.禁止路由器进行域名解析。

三、实验步骤Router>enableRouter#configure terminalRouter(config)#hostname RA 设置路由器名RA(config)#enable password cisco1 设置密码RA(config)#enable secret cisco2 设置加密密码RA (config)#no ip domain-lookup关闭域名查找(当我们打错命令时,不会去查找DNS,造成延时)RA (config)#line console 0RA (config-line)#logging synchronous命令输入达到同步(信息提示不会打断你的输入)RA (config-line)#exec-timeout 0 0 设置永久不超时RA (config-line)#exitRA(config)#line vty 0 4RA(config-line)#(enable)password cisco3 设置vty密码RA(config-line)#exitRA(config)#service password-encryption 对密码加密RA(config)#int fastEthernet 0/0RA(config-if)#ip address 202.119.249.1 255.255.255.0 对以太网口fa0/0配置IP RA(config-if)#no shutdown 开启端口RA(config-if)#exitRA(config)#banner motd & welcome welcome to ccna lab!!! & 设置登陆提示信息RA(config)#int fa0/1RA(config-if)#description this is a fast port 描述端口信息RA(config-if)#exit//RA(config)#copy running-config tftp 把信息保存到tftpRA#copy running-config tftp 把信息保存到tftp实验二静态路由一、实验设备两台28系列型号路由器通过串口相连。

二、实验要求在R1和R2上启用动态路由,使两端网络能够互通。

R1为DCE端,R2为DTE端。

三、实验步骤1.基本配置(以后的实验基本配置全部省略)Router>enableRouter#configure terminalRouter(config)#hostname R1R1(config)#no ip domain-lookupR1(config)#line console 0R1(config-line)#logging synchronousR1(config-line)#exec-timeout 0 0R1(config-line)#exit2.在R1上配置接口I P地址和时钟频率R1(config)#int s1/0R1(config-if)#ip address 20.0.0.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shutdownR1(config-if)#exitR1(config)#int fa0/1R1(config-if)#ip address 10.0.0.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exit3.在R2上配置接口I P地址R2(config)#R2(config)#int s1/0R2(config-if)#ip address 20.0.0.2 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#int fa0/1R2(config-if)#ip address 30.0.0.1 255.255.255.0R2(config-if)#no shutdown4.在R1和R2上配置静态路由R1(config)#ip route 30.0.0.1 255.255.255.0 20.0.0.2R2(config)#ip route 10.0.0.1 255.255.255.0 20.0.0.1【注意事项】1.R(c o n f i g)#i p r o u t e目标网络子网掩码下一跳接口2.在D C E端设置时钟频率。

3.电脑网关不要忘记设置4.V.35连接2台路由器,路由器的串口灯应亮的,如果不亮请插紧线缆或更换线缆。

5.学会用s h o w排错R o u t e r1#s h o w i n t e r f a c e s e r i a l1/2查看接口的状态。

R o u t e r1#s h o w i p i n t e r f a c e b r i e fR o u t e r1#s h o w i p r o u t e6.如果连线的接头没有标识是D T E接头还是D C E接头,用下面的命令查看两个s e r i a l口的情况,方法为:R o u t e r#s h o w c o n t r o l l e r s e r i a l p o r t_n u m b e r7.或者把线缆拧开,针的一头是D T E,洞的一头是D C E。

实验三缺省路由一、实验设备3台28系列型号路由器通过串口相连。

二、实验要求三台2811通过缺省路由使全网互通。

三、实验步骤R1的基本配置:R1#conf tR1#(config)# int fa0/0R1#(config-if)# ip add 192.168.0.1 255.255.255.0R1#(config-if)# exitR1#(config)# int fa0/1R1#(config-if)# ip add 192.168.3.1 255.255.255.0R1#(config-if)# exitR1#(config)# int s0/0/0R1#(config-if)# ip add 192.168.1.1 255.255.255.0R1#(config-if)# no shutR1#(config-if)# clock rate 64000R2的基本配置:R2#conf tR2(config)# int fa0/0R2(config-if)# ip add 192.168.4.1 255.255.255.0R2(config-if)# exitR2(config)# int s0/0/0R2(config-if)# ip add 192.168.1.2 255.255.255.0R2(config-if)# no shutR2(config-if)# exitR2(config)# int s0/0/0R2(config-if)# ip add 192.168.1.2 255.255.255.0R2(config-if)# no shutR2(config-if)# exitR2(config)# int s0/0/1R2(config-if)# ip add 192.168.2.1 255.255.255.0R2(config-if)# no shutR2(config-if)# clock rate 64000R3的基本配置:R3#conf tR3#(config)# int fa0/0R3#(config-if)# ip add 192.168.6.1 255.255.255.0R3#(config-if)# exitR3#(config)# int fa0/1R3#(config-if)# ip add 192.168.5.1 255.255.255.0R3#(config-if)# exitR3#(config)# int s0/0/1R3#(config-if)# ip add 192.168.2.2 255.255.255.0R3#(config-if)# no shut缺省路由配置:R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.2 //网络0.0.0.0代表所有网络R2(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1 //全0掩码代表指定网络中所有主机R2(config)# ip route 0.0.0.0 0.0.0.0 192.168.2.2R3(config)# ip route 0.0.0.0 0.0.0.0 192.168.2.1实验四静态路由+缺省路由+CDP协议一、实验设备三台28系列型号路由器通过串口相连。

二、实验要求三台路由连接5个网段,配置静态路由和缺省路由。

R2为DCE端。

三、实验步骤Router>enRouter#conf tRouter(config)# hostname R1R1(config)#int fa0/1 进入fa0/1端口R1(config-if)#ip address 192.168.0.1 255.255.255.0 添加fa0/1口的IP R1(config-if)#no shutdown 打开fa0/1端口R1(config-if)#exitR1(config)#int s1/0R1(config-if)# ip address 192.168.1.1 255.255.255.0R1(config-if)# no shutdownR1(config-if)#exitR1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2 添加缺省路由Router>enRouter#conf tRouter(config)# hostname R2R2 (config)#int fa0/1R2 (config-if)#ip address 192.168.4.1 255.255.255.0R2 (config-if)#no shutdownR2 (config-if)#exitR2 (config)#int s1/0R2 (config-if)#ip address 192.168.1.2 255.255.255.0R2 (config-if)#clock rate 56000 设置时钟R2 (config-if)#no shutdownR2 (config-if)#exitR2 (config)#int s1/1R2 (config-if)#ip address 192.168.2.1 255.255.255.0R2 (config-if)#clock rate 56000R2 (config-if)#no shutR2 (config-if)#exitR2 (config)#ip route 192.168.0.0 255.255.255.0 192.168.1.1 添加静态路由R2 (config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2 添加静态路由Router>enRouter#conf tRouter(config)# hostname R3R3(config)#int fa0/1R3 (config-if)#ip address 192.168.3.1 255.255.255.0R3 (config-if)#no shutdownR3 (config-if)#exitR3 (config)#int s1/0R3 (config-if)#ip address 192.168.2.2 255.255.255.0R3 (config-if)#no shutR3 (config-if)#exitR3 (config)#ip route 0.0.0.0 0.0.0.0 192.168.3.1 添加缺省路由在R2上操作:R2 #show cdp neighbors 查看邻居汇总信息R2 #show cdp neighbors detail 查看所有邻居的详细信息R2 #show cdp 显示CDP信息R2 #show cdp traffic 显示CDP所用的数据包的信息R2 #show cdp entry * 显示所有相邻路由器的所有信息R2 #un all 关闭所有DEBUG信息R2 #(config)#cdp run 启动CDP协议R2 #show cdp interface (端口) 显示该端口的CDP信息R2 #clear cdp counter 清除CDP计数器R2 #debug cdp packet 启动CDP数据包调试模式【注意事项】1.D C E应该在路由器2的的两个接口上都配置时钟频率。