工大瑞普的CCNA实验手册 下载本文

内容发布更新时间 : 2024/9/21 13:19:14星期一 下面是文章的全部内容请认真阅读。

CCNA实验汇总 Jason_Zou整理

以下实验均使用Dynamips模拟器设计,Packet.Tracer模拟器有些实验无法完全模拟。

《一》 路由器的基本操作

1. 实验要求:

实验拓扑:用到R1、R2和R3 (1) 最基本配置:

? 重命名路由器分别为:R1、R2和R3 10.1.1.0/24 ? 关闭域名查找(解释)

10.2.2.0/24 ? 设置输入同步

? 设置执行会话时间为20分钟 (2) 设置路由器的时区、日期和时钟 (3) 设置路由器接口的IP地址 (4) 设置路由器的描述信息

? 设置登陆描述信息 ? 设置接口描述信息 (5) 设置密码

? 设置访问路由器的端口(AUX、Console和VTY密码) ? 使用明文方式对特权模式进行加密设置

? 使用service password-encryption命令把明文密码隐藏起来 ? 使用MD5算法对特权模式进行加密设置 ? 实现对直连的路由器进行telnet访问设置

(6) 创建静态hostname表,然后使用该表对直连的路由器进行telnet访问设置

2. 实验步骤:

(1) 使用show version查看路由器IOS版本、IOS映像文件、存储器大小、接口类型及配置登记值等相关

信息,可以使我们对设备有初步的了解 Router>show version R1:

Router>enable //进入特权模式

Router#configure terminal //进入全局配置模式 Router(config)#hostname r1 //重命名为r1 r1(config)#no ip domain-lookback //关闭域名查找 r1(config)#line console 0 //进入线路配置模式

r1(config-line)#exec-timeout 20 00 //设置会话时间为20分钟 r1(config-line)#logging synchronous //设置输入同步 r1(config-line)#end

R2:

Router>en Router#conf t

Router(config)#ho r2

r2(config)#no ip domain-loo //新版本ISO命令为no ip domain lookup

r2(config)#line con 0 r2(config-line)#logg s

r2(config-line)#exec-timeout 20 00 r2(config-line)#end

R3:

-1-

CCNA实验汇总 Jason_Zou整理

Router>en Router#conf t

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ho r3

r3(config)#no ip domain-loo r3(config)#line con 0 r3(config-line)#logg s

r3(config-line)#exec-timeout 20 00 r3(config-line)#end

(2) 设置路由器的时区、日期和时钟

R1:

r1#show clock //查看时区、日期和时钟 *17:28:05.643 UTC Tue Oct 21 2008 r1#conf t

r1(config)#clock timezone Beijing +8 //设置时区 r1(config)#end

r1#clock set 17:28:48 Oct 21 2008 //设置时钟和日期 r1#show clock

17:28:52.403 Beijing Tue Oct 21 2008

R2和R3同上

(3) 设置路由器接口的IP地址

R1: r1#conf t

r1(config)#int fa0/0 //进入接口 r1(config-if)#ip address 10.1.1.1 255.255.255.0 //配置IP地址 r1(config-if)#no shutdown //激活该接口 r1(config-if)#end

r1#show running-config interface fastethernet 0/0 //查看该接口当前运行的所有信息 r1#show interfaces fastethernet 0/0 //查看该接口的完整信息 r1#show ip interface brief //查看接口状态的摘要信息

R2: r2#conf t

r2(config)#int fa 0/0

r2(config-if)#ip add 10.1.1.2 255.255.255.0 r2(config-if)#no sh r2(config-if)#exit r2(config)#int r2(config)#int s1/1

r2(config-if)#ip add 10.2.2.2 255.255.255.0

r2(config-if)#clock rate 64000 //设置DCE时钟频率 r2(config-if)#no sh r2(config-if)#end

r2#show running-conf int fa0/0 r2#show int fa0/0

-2-

CCNA实验汇总 Jason_Zou整理

r2#show int s1/1 r2#show ip int b

r2#ping 10.1.1.1 //测试连通性 R3: r3#conf t

r3(config)#int s1/0

r3(config-if)#ip add 10.2.2.3 255.255.255.0 r3(config-if)#no sh r3(config-if)#end

r3#show running-conf int s1/0 r3#show int s1/0 r3#how ip int b r3#ping 10.2.2.2 R2:(测试连通性) r2#ping 10.1.1.1 r2#ping 10.2.2.3

(4) 设置路由器的描述信息

R1: r1#conf t

r1(config)#banner motd# Welcome to Guangzh CCNA club # r1(config)#int fa0/0

r1(config-if)#description link to Beijing CCNA club r1(config-if)#no sh r1(config-if)#end r1#exit

R2: r2#conf t

r2(config)#banner motd #

Welcome to Beijing CCNA club # r2(config)#int fa0/0

r2(config-if)#desc link to Guangzhou CCNA club r2(config-if)#no sh r2(config-if)#exit r2(config)#int s1/1

r2(config-if)#desc link to Shanghai CCNA club r2(config-if)#no sh r2(config)#end

R3: r3#conf t

r3(config)#banner motd#

Welcome to Shanghai CCNA club# r3(config)#int s1/0

r3(config-if)#desc link to Beijing CCNA club

-3-

//设置登陆描述信息

//输入描述内容后以#结束 //description后面内容为接口描述信息