思科网络工程师认证完全实验手册(宝典)
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 -
CI S CO
CERTI FI ED
NETW ORK
AS S OCI ATE
LAB GUI DE
思科认证网络工程师完全实验手册
作者 红头发 CCI E# 1 5 1 0 1
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 2 -
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 3 -
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 4 -
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 5 -
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 6 -
-
La b Ex e rc is e 1 . 1
目标:
熟练掌握如何进入路由器各种模式并设置主机名.
设备需求:
Cis co 2501 路由器一台.
语法:
1. 从路由器用户模式进入特权模式:
Aik o>e nable
2. 从特权模式进入全局配置模式:
Aik o# configure t e rm inal
3. 为路由器设置主机名:
Aik o( config) # hos t nam e { hostname}
4. 退出到特权模式:
Aik o( config) # e nd
5. 退出到用户模式:
Aik o# dis able
6. 退出控制台线路:
Aik o>quit
解释:
路由器的模式大致可分为:
1. 用户模式: 权限最低, 通常只能使用少量查看性质的命令.
2. 特权模式: 可以使用更多查看性质的命令和一些少量修改路由器参数的命令.
3. 全局配置模式: 不能使用查看性质的命令, 但是确实做全局性修改和设置的模式, 它还可以向下分为一些
子模式, 比如接口配置模式, 线路配置模式, 路由进程配置模式等等.
配置实例一:
Rout e r>e nable
Rout e r# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h
CNTL/ Z.
Rout e r( config) # hos t nam e Aik o
Aik o( config) # e x it
Aik o#
*Mar 1 00: 04: 30. 815: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole
Aik o# dis able
Aik o>
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 7 -
La b Ex e rc is e 1 . 2
目标:
熟练掌握如何为路由器设置时间.
设备需求:
Cis co 2501 路由器一台.
语法:
在特权模式下设置路由器时间:
Aik o# clock s e t { hh: mm: ss day month year}
解释:
路由器本地的时间标识.
配置实例一:
Aik o# clock s e t 16: 16: 16 25 S e pt e m be r 2005
Aik o# s how clock
16: 16: 24. 503 UTC S un S e p 25 2005
Aik o#
La b Ex e rc is e 1 . 3
目标:
熟练掌握如何设置空闲超时时间.
设备需求:
Cis co 2501 路由器一台
语法:
1. 从全局配置模式进入线路配置模式, 进入控制台口线路:
Aik o( config) # line cons ole { number}
2. 启用光标跟随:
Aik o( config- line ) # logging s y nchronous
3. 设置当键盘多少时间内无动作, 自动被路由器弹出到用户模式以外, 即退出.
如果设置为0 分0 秒代
表
关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf
永不
超时:
Aik o( config- line ) # e x e c- t im e out { minute} { second}
解释:
所谓光标跟随, 是指当我们在输入命令的时候, 不会被一些日志信息或 de bug 命
令产生的调试命令所冲断.
模式该特性是没有启用的.
配置实例一:
Aik o( config) # e x it
Aik o#
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 8 -
*Mar 1 00: 20: 11. 231: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole configure
t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h
CNTL/ Z.
Aik o( config) # line cons ole 0
Aik o( config- line ) # logging s y nchronous
Aik o( config- line ) # e nd
Aik o#
*Mar 1 00: 20: 38. 123: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole
Aik o# configure t e rm inal
Aik o( config) #
配置实例二:
Aik o# s how clock
*15: 32: 12. 747 UTC Mon Jul 28 2005
Aik o# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h
CNTL/ Z.
Aik o( config) # line cons ole 0
Aik o( config- line ) # e x e c- t im e out 20 0
Aik o( config) # e nd
Aik o# e x it
*Mar 1 00: 24: 33. 643: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole
Aik o#
Aik o# s how clock
*15: 52: 12. 747 UTC Mon Jul 28 2005
Aik o#
Aik o con0 is now available
Pre s s RETURN t o ge t s t art e d.
Aik o>
La b Ex e rc is e 1 . 4
目标:
熟练掌握如何为路由器设置标语信息和描述信息.
设备需求:
Cis co 2501 路由器一台.
语法:
1. 进入全局配置模式, 设置标语信息:
Aik o( config) # banne r m ot d # { text} #
2. 进入接口配置模式:
Aik o( config- if ) # int e rface { type} { number}
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 9 -
3. 为路由器接口设置描述信息:
Aik o( config- if ) # de s cript ion { text}
解释:
在设置标语信息的时候, 以# 号做为分隔符, 并按下回车键. 描述语句的本地的
一个标识, 它只在本地可见, 并
且Cis co IOS 执行命令的时候会跳过它.
配置实例一:
Aik o( config) # banne r m ot d #
Ent e r TEXT m e s s age . End wit h t he charact e r '# '.
he llo!
#
Aik o( config) # e nd
Aik o# e x it
Aik o con0 is now available
Pre s s RETURN t o ge t s t art e d.
he llo!
Aik o>
配置实例二:
Aik o( config- if ) # de s cript ion LAN S ale s
Aik o( config- if ) # e nd
Aik o#
*Mar 1 02: 05: 48. 919: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole
Aik o# s how running- config int e rface e t he rne t 0
Building configurat ion. . .
Curre nt configurat ion : 75 by t e s
!
int e rface Et he rne t 0
de s cript ion LAN S ale s
no ip addre s s
s hut down
e nd
Aik o#
La b Ex e rc is e 1 . 5
目标:
熟练掌握如何为路由器特权模式设置密码.
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 0 -
设备需求:
Cis co 2501 路由器一台.
语法:
进入全局配置模式, 设置密码:
Aik o( config) # e nable { pas s word| s e cre t } { password}
解释:
两种密码的区别在于, 前者是一些低版本 Cis co IOS 软件的认证方式, 并且密
码是基于明文的; 后者是目前
Cis co IOS 软件最常用的认证方式, 它是基于MD5 加密的. 如果同时设置了这
两种认证方式, 他们的口令必
须不一样. 但是, 我们推荐使用后者进行认证, 并且如果同时设置了两种认证方
式, 只有后者生效. 密码区分大
小写.
配置实例一:
Aik o( config) # e nable pas s word Aik o
Aik o( config) # e nable s e cre t Aik o
The e nable s e cre t y ou hav e chos e n is t he s am e as y
our e nable pas s word.
This is not re com m e nde d. Re - e nt e r t he e nable s e cre t .
Aik o( config) # e nable s e cre t As uqa
Aik o( config) # e x it
Aik o#
*Mar 1 02: 16: 48. 067: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole
Aik o# e x it
Aik o con0 is now available
Pre s s RETURN t o ge t s t art e d.
Aik o>e nable
Pas s word: As uqa
Aik o# s how running- config
Building configurat ion. . .
Curre nt configurat ion : 609 by t e s
!
v e rs ion 12. 2
s e rv ice t im e s t am ps de bug dat e t im e m s e c
s e rv ice t im e s t am ps log dat e t im e m s e c
no s e rv ice pas s word- e ncry pt ion
!
hos t nam e Aik o
!
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 1 -
logging que ue - lim it 100
e nable s e cre t 5 $1$NTU5$EEYi0qfB1pGENz uPx DCy z .
e nable pas s word Aik o
!
- - More - -
La b Ex e rc is e 1 . 6
目标:
熟练掌握如何为路由器各个配置模式设置密码.
设备需求:
Cis co 2501 路由器一台.
语法:
1. 从全局配置模式进入线路配置模式, 进入控制台口线路:
Aik o( config) # line { cons ole | aux | v t y } { start- number} [end- number]
2. 设置密码:
Aik o( config- line ) # pas s word { password}
3. 启用登陆:
Aik o( config- line ) # login
解释:
当设置密码之后, 如果不启用登陆命令, 退出之后, 路由器是不会提示输入密码
的. 控制台线路密码为控制台
线路所用; 辅助接口( AUX) 线路密码为辅助接口线路所用; 虚拟终端线路( VTY) 是为 t e lne t 会话所用, 路由
器根据 Cis co IOS 软件版本不同, 支持多条 VTY 会话数目也不同. 所有密码
是以明文方式保存在
DRAM( running- config) 文件里的.
配置实例一:
Aik o( config) # line cons ole 0
Aik o( config- line ) # pas s word Aik o
Aik o( config- line ) # login
Aik o( config- line ) # line aux 0
Aik o( config- line ) # pas s word Aik o
Aik o( config- line ) # login
Aik o( config- line ) # e x it
Aik o( config) # line v t y 0 4
Aik o( config- line ) # pas s word Aik o
Aik o( config- line ) # login
Aik o( config- line ) # e nd
*Mar 1 03: 04: 43. 491: %S YS - 5- CONFIG_I: Configure d from
cons ole by cons ole
Aik o# e x it
Aik o con0 is now available
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 2 -
Pre s s RETURN t o ge t s t art e d.
Us e r Acce s s Ve rificat ion
Pas s word: Aik o
Aik o>
La b Ex e rc is e 1 . 7
目标:
熟练掌握如何为路由器关闭DNS 查询功能.
设备需求:
Cis co 2501 路由器一台.
语法:
全局配置模式下, 关闭DNS 查询功能:
Aik o( config) # no ip dom ain look up
解释:
默认情况下, 路由器的DNS 查询是启用的, 即当你错误的输入一条Cis co IOS 软件无法识别的命令的时候,
路由器会把这个命令当成主机名, 然后向DNS 服务器进行查询. 一般实验性的环境中, 如果我们没有DNS 服
务器, 因为输入错误的命令而造成无用的查询, 是非常耗时的. 因此我们可以关
闭这一功能.
配置实例一:
Aik o# Aik o
Trans lat ing "Aik o". . . dom ain s e rv e r ( 255. 255. 255. 255)
Trans lat ing "Aik o". . . dom ain s e rv e r ( 255. 255. 255. 255)
Trans lat ing "Aik o". . . dom ain s e rv e r ( 255. 255. 255. 255)
% Unk nown com m and or com put e r nam e , or unable t o find com put e r addre s s
Aik o# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h CNTL/ Z.
Aik o( config) # no ip dom ain look up
Aik o( config) # e nd
Aik o#
*Mar 1 03: 13: 12. 371: %S YS - 5- CONFIG_I: Configure d from cons ole by cons ole
Aik o# Aik o
Trans lat ing "Aik o"
% Unk nown com m and or com put e r nam e , or unable t o find com put e r addre s s
Aik o#
-
W rit t e n b y Aik o f e a t . As u q a Ht t p :/ / w w w . 9 1 la b . c o m
- 1 3 -
La b Ex e rc is e 2 . 1
目标:
熟练掌握如何连通路由器并进行相互间ping 和t e lne t 的测试.
设备需求:
Cis co 2501 路由器两台.
语法:
1. 进入接口配置模式:
Aik o( config) # int e rface { type} { number}
2. 为接口设置IP 地址信息:
Aik o( config- if ) # ip addre s s { ip- address} { mask}
3. 根据需要, 如果接口为串行接口, 要为DCE 端设置时钟频率:
Aik o( config- if ) # clock rat e { speed}
4. 开启接口:
Aik o( config- if ) # no s hut down
解释:
默认所有接口都是处于关闭状态的, 对于一般的以太网接口, 设置了 IP 地址信
息之后, 只需要开启该接口即
可; 对于串行接口, 还要注意在DCE端设置时钟频率, 以便为DTE端提供时钟频率
进行同步. 当然这一般用于
实验室背对背环境中, 真正现实环境中, DCE是由CS U/ DS U来提供, 无须用户设
置. 另外要注意的是, 端到端
( e nd- t o- e nd) 的连接, 直连的接口必须处于同一子网.
配置实例一:
路由器Aik o 配置如下:
Aik o# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h CNTL/ Z.
Aik o( config) # int e rface s e rial 0
Aik o( config- if ) # ip addre s s 10. 0. 0. 1 255. 255. 255. 252
Aik o( config- if ) # no s hut down
*Mar 1 00: 13: 45. 839: %LINK- 3- UPDOWN: Int e rface S e rial0,
change d s t at e t o down
Aik o( config- if ) # e nd
Aik o#
*Mar 1 00: 14: 24. 511: %LINK- 3- UPDOWN: Int e rface S e rial0, change d s t at e t o up
Aik o#
*Mar 1 00: 14: 25. 515: %LINEPROTO- 5- UPDOWN: Line prot ocol on Int e rface S e rial0,
change d s t at e t o up
Aik o#
路由器As uqa 配置如下:
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 4 -
As uqa# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h CNTL/ Z.
As uqa( config) # int e rface s e rial 0
As uqa( config- if ) # ip addre s s 10. 0. 0. 2 255. 255. 255. 252
As uqa( config- if ) # clock rat e 56000
As uqa( config- if ) # no s hut down
As uqa( config- if ) # e nd
As uqa#
S e p 25 16: 24: 25. 347: %S YS - 5- CONFIG_I: Configure d from cons ole by cons ole
As uqa#
S e p 25 16: 24: 25. 787: %LINK- 3- UPDOWN: Int e rface S e rial0, change d s t at e t o up
As uqa#
S e p 25 16: 24: 26. 791: %LINEPROTO- 5- UPDOWN: Line prot ocol on Int e rface S e rial0,
change d s t at e t o up
As uqa#
测试一:
Aik o# ping 10. 0. 0. 2
Ty pe e s cape s e que nce t o abort .
S e nding 5, 100- by t e ICMP Echos t o 10. 0. 0. 2, t im e out is 2 s e conds :
!!!!!
S ucce s s rat e is 100 pe rce nt ( 5/ 5) , round- t rip m in/ av g/ m ax
= 36/ 36/ 40 m s
Aik o#
As uqa# ping 10. 0. 0. 1
Ty pe e s cape s e que nce t o abort .
S e nding 5, 100- by t e ICMP Echos t o 10. 0. 0. 1, t im e out is 2 s e conds :
!!!!!
S ucce s s rat e is 100 pe rce nt ( 5/ 5) , round- t rip m in/ av g/ m ax
= 36/ 36/ 40 m s
As uqa#
测试二:
Aik o# t e lne t 10. 0. 0. 2
Try ing 10. 0. 0. 2 . . . Ope n
Pas s word re quire d, but none s e t
[Conne ct ion t o 10. 0. 0. 2 clos e d by fore ign hos t ]
Aik o#
解释:
在t e lne t 到远端路由器的时候, 如果对方的VTY 线路没有设置密码和启用登陆,
将拒绝本地路由器t e lne t .
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 5 -
解决
方案
气瓶 现场处置方案 .pdf气瓶 现场处置方案 .doc见习基地管理方案.doc关于群访事件的化解方案建筑工地扬尘治理专项方案下载
:
是在远端路由器设置VTY 线路的密码和启用登陆. 路由器As uqa 配置如下:
As uqa# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h
CNTL/ Z.
As uqa( config) # line v t y 0 4
As uqa( config- line ) # pas s word Aik o
As uqa( config- line ) # login
As uqa( config- line ) # e nd
As uqa#
测试三:
Aik o# t e lne t 10. 0. 0. 2
Try ing 10. 0. 0. 2 . . . Ope n
Us e r Acce s s Ve rificat ion
Pas s word: Aik o
As uqa>e x it
[Conne ct ion t o 10. 0. 0. 2 clos e d by fore ign hos t ]
Aik o#
La b Ex e rc is e 2 . 2
目标:
熟练掌握如何创建主机列表, 并使用ping 和t e lne t 测试.
设备需求:
Cis co 2501 路由器两台.
准备工作:
确保两台路由器已经预先的端到端的连通.
语法:
全局配置模式下创建静态的IP 地址到主机名的映射:
Aik o( config) # ip hos t { hostname} { ip- address}
配置实例一:
路由器Aik o 配置如下:
Aik o( config) # ip hos t As uqa 10. 0. 0. 2
Aik o( config) # e nd
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 6 -
Aik o#
测试一:
Aik o# As uqa
Try ing As uqa ( 10. 0. 0. 2) . . . Ope n
Us e r Acce s s Ve rificat ion
Pas s word: Aik o
As uqa>e x it
[Conne ct ion t o As uqa clos e d by fore ign hos t ]
Aik o#
测试二:
Aik o# ping As uqa
Ty pe e s cape s e que nce t o abort .
S e nding 5, 100- by t e ICMP Echos t o 10. 0. 0. 2, t im e out is
2 s e conds :
!!!!!
S ucce s s rat e is 100 pe rce nt ( 5/ 5) , round- t rip m in/ av g/ m ax
= 36/ 40/ 48 m s
Aik o#
-
La b Ex e rc is e 3 . 1
目标:
熟练掌握如何快速和恢复路由器到出厂设置.
设备需求:
Cis co 2501 路由器一台.
准备工作:
确保路由器之间有所配置.
语法:
1. 进入全局配置模式, 快速恢复路由器的接口配置到出厂配置:
Aik o( config) # de fault int e rface { type} { number}
2. 特权模式下删除启动配置文件, 路由器下次启动将全局恢复到出厂设置:
Aik o# e ras e s t art up- config
配置实例一:
Aik o# s how running- config int e rface s e rial 0
W rit t e n b y Aik o f e a t . As u q a
Ht t p :/ / w w w . 9 1 la b . c o m
- 1 7 -
Building configurat ion. . .
Curre nt configurat ion : 62 by t e s
!
int e rface S e rial0
ip addre s s 10. 0. 0. 1 255. 255. 255. 252
e nd
Aik o# configure t e rm inal
Ent e r configurat ion com m ands , one pe r line . End wit h
CNTL/ Z.
Aik o( config) # de fault int e rface s e rial 0
Building configurat ion. . .
Int e rface S e rial0 s e t t o de fault configurat ion