a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 234|回复: 5

[综合] 思科认证:关于CiscoIOS的设备管理配置

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
思科认证:关于Cisco IOS的设备管理配置5 e! B3 ?5 ^) |7 [, o3 z% ]
st1\:*{behavior:url(#ieooui) }
! v: V5 f3 V; q3 I1 q9 y0 ^* s4 u《!--[if !supportLists]--》 《!--[endif]--》Cisco IOS设备
" f3 `" o8 A% R9 g  _6 Y《!--[if !supportLists]--》 《!--[endif]--》Cisco设备的软件和硬件
7 B& d+ V% i6 f: T" N7 d《!--[if !supportLists]--》 《!--[endif]--》Cisco IOS软件
! N$ p: J# Z( a- aIOS(Internetworking Operating System,互联网操作系统)2 U1 p: {9 w) t" l- E
《!--[if !supportLists]--》 《!--[endif]--》路由器的内部组件* h8 G' Y+ P: N) D; M7 R! F
《!--[if !supportLists]--》1) 《!--[endif]--》RAM/DRAM(动态随机访问内存):用于存储路由表信息、快速交换缓存、当前配置文件、数据包队列。断电丢失数据。$ A- N9 q2 a8 E& R2 W  S* c  X  B
《!--[if !supportLists]--》2) 《!--[endif]--》NVRAM(非易失性内存):用于存储一个备份/启动配置文件。断电不丢失数据。% S( N$ F1 B: p; R
《!--[if !supportLists]--》3) 《!--[endif]--》FLASH(闪存):用于存储Cisco IOS软件镜像。
5 Z, a; ~! B$ T# P! C《!--[if !supportLists]--》4) 《!--[endif]--》ROM(只读内存):永久性保存启动代码。! Z/ U1 O) O  T+ L; u$ O. X
《!--[if !supportLists]--》5) 《!--[endif]--》Console端口:在初始配置路由器时提供一个物理访问。
3 P' z# U6 `. K$ Q" M: Z《!--[if !supportLists]--》6) 《!--[endif]--》Interface(接口):用于提供局域网或广域网连接。
( V* \2 r/ w6 A- H0 |《!--[if !supportLists]--》 《!--[endif]--》接口(Interface)/ ]! S/ S" A) d( E% w2 a: y

; o; a4 R6 a! Y: o9 N1)模块化路由器:Cisco 2600系列(Cisco 2611,Cisco 2621)、Cisco 3600系列(Cisco3620、Cisco 3640、Cisco 3660)、Cisco 7200系列、Cisco 12000系列。
9 p9 F. r$ ^, G; m4 |接口的表示=接口类型+插槽号+/接口的编号
% p0 ^! z! u8 y% S) V2)ISR(集成多业务路由器):Cisco 1800系列、2800系列、3800系列。& o8 u; l- i& {. t
接口的表示=接口类型+插槽号+/子插槽号+/接口的编号
- Z% l3 `! t8 Y7 G, M! s3)固定接口路由器:Cisco 2500系列、Cisco 4000、Cisco 4500系列。' K# q5 [5 q7 t- Q' {9 ?) D% R1 R! q
接口的表示=接口类型+接口编号
$ Q! \' X: J2 F. N% A/ d4)接口类型:
2 m$ B% R% X6 ?0 E* g局域网接口:
! w  [6 P2 Y" FAUI接口:10Mbps(Ethernet)8 S$ b$ ^6 _3 c4 D" l" r* ^
RJ接口:10Mbps(Ethernet),10/100Mbps(FastEthernet),10/100/1000Mbps(Gigabit Ethernet)  S8 L! h& }, V
SC/ST接口:10Mbps(Ethernet),100Mbps(FastEthernet),1000Mbps(Gigabit Ethernet)! S& R. D5 v) ^. M
广域网接口:1 t. k- T  [+ W/ z) t& @
同步串行接口:Serial
) f6 E  D+ T( H" V- H6 y; S1 ?9 E5)插槽号(Slot)
/ Q" ]! u! j$ y. E* f, Q/ j7 B从下到上,从右到左,从0开始编号
回复

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:31 | 显示全部楼层

思科认证:关于CiscoIOS的设备管理配置

6)接口编号</p>从下到上,从右到左,从0开始编号
1 ~( R4 H; w9 O《!--[if !supportLists]--》 《!--[endif]--》 连接Cisco设备5 `. U6 t- f. d; W' b
超级终端——选择端口(Com1或Com2)——配置端口的属性(还原默认值)6 D. x! u2 z5 G' ?

' _* O3 @) s/ ^$ a) t4 X1 B, B) H
# \5 X" \/ T8 `3 ], v- U  e" p/ T9 U0 u
《!--[if !supportLists]--》 《!--[endif]--》启动路由器
/ ]3 a0 T$ L! b/ m2 x9 q8 z《!--[if !supportLists]--》1 《!--[endif]--》Cisco路由器的启动准备工作
/ x' \& B  U6 S* P《!--[if !supportLists]--》2 《!--[endif]--》Cisco设备的启动概述: n; \( W) l" W7 T8 B. A4 q4 N
《!--[if !supportLists]--》3 《!--[endif]--》路由器启动之后的输出
' k! w7 P6 @$ S$ E: r7 l一台初始配置的路由器启动成功之后将进入Setup模式。
3 Y6 [) @3 J$ I+ P* `, x《!--[if !supportLists]--》 《!--[endif]--》登录路由器
( m0 Q. @/ w2 v7 O7 A用户模式:Router》enable
; |3 V2 N  u2 ~; _特权模式:Router#disable
$ a! ]  t8 L% E* n- r: c5 j《!--[if !supportLists]--》 《!--[endif]--》命令行接口(Command-Line Interface,CLI$ R5 S8 R* C1 R
《!--[if !supportLists]--》1 《!--[endif]--》Cisco IOS命令行的功能
; }' m, n0 l, u" l; {0 N! U《!--[if !supportLists]--》2 《!--[endif]--》用户模式(User Mode):
2 U% i: D, W& Q. v基本的查看和测试操作
- f6 h# h+ R6 m0 ]. ?$ [命令支持缩写) J6 m; U2 D. j( M. C8 _
《!--[if !supportLists]--》3 《!--[endif]--》特权模式(Privileged):
( t  q! U( E; j5 w7 |配置和调试操作;还可以进入IOS设备的其他模式。8 D; s0 O! U9 ]1 B
支持TAB键补齐命令) |4 A3 x5 I; p/ _
《!--[if !supportLists]--》4 《!--[endif]--》路由器CLI下的帮助功能- g! P4 c. P' A5 `
上下文敏感、控制台错误信息、命令的历史缓冲
& A3 Z) R9 b4 o+ g# D7 D《!--[if !supportLists]--》5 《!--[endif]--》编辑命令
, Q4 b& p  a  R: `CTRL+A:将光标移动到首字符
. D+ Q# w# H/ B, t. \% `  x$ QCTRL+E:将光标移动到尾字符
% I4 G: W/ L5 }2 O3 LCTRL+B:将光标向后移动一个字符& \% y" a3 }9 h
CTRL+F:将光标向前移动一个字符5 g2 P4 K4 K/ {) F
CTRL+P:将命令向前返回8 R. N4 R  V  T7 l% I
CTRL+N:将命令向后返回
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:32 | 显示全部楼层

思科认证:关于CiscoIOS的设备管理配置

《!--[if !supportLists]--》6 《!--[endif]--》查看路由器的基本信息:</p>Router》show version* j/ o. `! V$ m
Router#show version
5 w! v1 `. h! d7 }% Q7 g5 i  K《!--[if !supportLists]--》7 《!--[endif]--》显示配置
& m" ]" J  a" gRouter#show run (查看在RAM的当前配置)1 A2 ?7 @, k+ U+ k# G, W
Router#show start (查看在NVRAM中已保存的配置)' r" t( G) i! l# U7 v" l
《!--[if !supportLists]--》8 《!--[endif]--》保存配置
# P! g+ r, f) Z3 k  M' C. GRouter#copy run start
( C8 V: {$ ^+ ^' q1 Z3 q《!--[if !supportLists]--》 《!--[endif]--》配置路由器7 i0 ^8 \( _; X' `
《!--[if !supportLists]--》1 《!--[endif]--》路由器模式的概述8 w7 H0 ~- V/ i+ S9 s" ]/ Y
Router》enable: n' M+ `! M/ o7 a* e7 I+ d( ]
Router#config t" a. e+ k' h2 G  F
Router(config)# (全局配置模式)
3 _6 ?: f. J# \, x2 U" N2 eRouter(config)#interface [接口]8 P1 Z+ L$ V  t; u& U4 P
Router(config-if)# (接口配置模式)# N9 P+ S* Q* O: L6 j
Router(config-if)#exit
9 h  S8 i2 }" p3 _Router(config)#exit
# r. D0 Q3 x$ qRouter#
* G& S. [7 m' S  h+ s0 kRouter(config)#line console 06 G( l8 W; V' `% f" J+ G8 M7 O
# V/ j: C! }, ~4 e4 O

6 Y  y# ^/ Q% Z% J- hRouter(config-line)# (线路配置模式)6 W: @; f- U+ d
配置路由器的标识1 S3 F2 A. n- X! i" t8 q6 G
路由器主机名的配置:缺省的主机名为Router1 s# ]2 v. A/ R
Router(config)#hostname [主机名]6 F. w% M4 F; F( ?. |4 Z
路由器的日期标志的配置:1 m& |7 G6 q" Q, I4 `" ^5 S
Router(config)#banner motd #. z- x9 B# D8 O* ]) F& C' Z$ n( R
配置路由器的接口4 H% l" |# c+ b5 C8 r4 b
1) 配置接口的IP地址:0 H6 i) ?5 T& w. K, w/ ]
Router(config)#interface [接口]' c6 ?3 w0 H1 j- l+ L
Router(config-if)#ip address [IP地址] [子网掩码]* K. f6 g& l2 A3 t/ B
2)删除一个接口的IP地址:; p) w+ N# f: s' r6 g0 J2 N* S
Router(config)#interface [接口]. _1 B' E/ v6 }5 H
Router(config-if)#no ip address
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:33 | 显示全部楼层

思科认证:关于CiscoIOS的设备管理配置

3)激活一个接口:</p>Cisco路由器的所有接口缺省时都是禁用状态,必须使用no shutdown来激活一个接口
8 R" U# O- Q! K7 r" C5 xRouter(config-if)#no shutdown+ N% f, W0 [3 z# N' ?! a
Router(config-if)#shutdown (禁用接口)
+ K, K; C( a/ L. j; M5 k4)配置同步串行接口:0 v1 B) I9 H9 u3 V8 H  U
将DCE接口配置时钟速率:
+ X' @9 e' I3 rRouter(config-if)#clock rate 64000% ~+ ~9 ^: `& G+ @2 |  |0 w5 W
Router#show controllers [接口] (查看接口类型)* O( \- L8 Q% y( W+ K
配置同步串行接口的带宽:7 Q8 r( `3 T! B7 R# {% I
Router(config-if)#bandwidth [带宽,单位是kbps]
7 p# P! @# O* _2 x! B: J《!--[if !supportLists]--》
$ }" k) T; a- j& L《!--[endif]--》查看接口状态
+ p9 d7 D+ ^3 w7 ^Router#show interface (查看路由器上所有接口的详细信息)1 O7 |# t6 `  b; ]
Router#show interface [接口] (查看路由器上特定接口的详细信息)
# m2 y9 }5 X: \9 Z! pRouter#show ip interface brief (查看路由器上所有接口的摘要信息)
. N; c& w+ Q  h) `% R- r《!--[if !supportLists]--》 《!--[endif]--》解释路由器接口的状态
; Y7 h2 _* Q, ^& F: A9 D+ E& p6 o《!--[if !supportLists]--》1) 《!--[endif]--》Interface is up , Line protocol is up (正常)$ z$ K- }& D' j9 f8 j: W- ^& M
《!--[if !supportLists]--》2) 《!--[endif]--》Interface is Administratively down , Line protocol is down (接口没有使用no shutdown命令来激活)4 E/ _1 e# ?" U" B( N
《!--[if !supportLists]--》3) 《!--[endif]--》Interface is Down , Line Protocol is down (出现在同步串行接口,线缆不匹配或未连接好,或者是接口被损坏)
: T6 T7 c. m/ p+ U《!--[if !supportLists]--》4) 《!--[endif]--》Interface is Up ,Line Protocol is down& {/ N' |: J' s2 v
LAN接口:线缆不匹配或未连接好,或者是接口被损坏
' U* t9 t4 @; c, kWAN接口:时钟速率未设置、未收时钟保持信息、第二层的封装不匹配。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:34 | 显示全部楼层

思科认证:关于CiscoIOS的设备管理配置

《!--[if !supportLists]--》 《!--[endif]--》查看串行线缆的类型</p>Router#show controller [接口]
' p1 ~4 C( g* ]+ }6 S/ P2 G《!--[if !supportLists]--》 《!--[endif]--》配置路由器的口令
' L+ K2 B# i- O, h6 j《!--[if !supportLists]--》1) 《!--[endif]--》Console端口口令的配置:6 ]/ o& R4 L/ q
Router(config)#line con 06 z) `2 s6 @4 l! d$ G9 N* F
Router(config-line)#password [口令]
$ V. J$ N' n$ p) A. @Router(config-line)#login   no login   login local( O) m5 m; L" V
Login:登录时必须输入口令
3 d! G- C; t) S, z/ b8 gNo Login:登录时不需要口令。
5 _3 x& X8 `4 b/ s% NLogin local:使用路由器本地配置的用户名和口令来登录。7 [% N1 Q. g) i$ ~9 D, `
《!--[if !supportLists]--》2) 《!--[endif]--》Telnet登录口令的配置:8 z& ^" [/ ^+ x2 ]
Router(config)#line vty ?
$ `8 ~# t6 F. H. B8 }# pRouter(config-line)#password [口令]
" L$ e! B$ e4 d# Y  zRouter(config-line)#login   no login   login local2 h1 T: `! B# [8 j( y% [
《!--[if !supportLists]--》3) 《!--[endif]--》从用户模式到特权模式口令的配置:
+ u% d  i/ ]  [# f1 MRouter(config)#enable password [口令]- z9 R, B0 o" W
Router(config)#enable secret [口令], _5 {2 g1 M- T& R& ]  N
两种方法同时配置时,口令不能相同,enable secret配置的口令生效。
2 k; U3 f7 l# X: b# n《!--[if !supportLists]--》4) 《!--[endif]--》加密明文的口令:5 Q1 N/ }- ^( t; a7 |0 E
Router(config)#service password-encryption1 D5 B* C' @5 c
《!--[if !supportLists]--》 《!--[endif]--》其他线路配置模式的命令:+ v# @* J3 S4 E
Router(config-line)#exec-timeout [分] [秒]+ ^, I: \/ [  x6 g
Router(config-line)#exec-timeout 0 0 永不超时0 B, X* s$ B- Y6 Z' N- c
《!--[if !supportLists]--》 《!--[endif]--》启动交换机9 U& S& Y: l9 z  u4 \
《!--[if !supportLists]--》1 《!--[endif]--》Catalyst交换机的启动准备
- W+ F6 O5 _, {7 n+ n6 U/ x《!--[if !supportLists]--》2 《!--[endif]--》Catalyst交换机的面板指示灯( x* @0 w3 E$ ?+ M! L
SYST:系统状态指示灯;呈绿色状态:交换机自检(POST)成功;呈琥珀色(Amber) :交换机自检不成功。- b* q( S( d# g- v& w" I1 @
& P) d# j* V9 y+ o

: C% E' \8 ^# M$ A/ p, nRPS:
9 S9 ?1 z# y" c: a; Q* ]6 }- PPort Mode LED:端口模式指示灯,用于管理端口状态的指示灯。
# @* {( f7 z; r5 H' r$ w# ]2 xSTAT:状态
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-8-3 20:03:35 | 显示全部楼层

思科认证:关于CiscoIOS的设备管理配置

UTL:背板带宽利用率指示灯。</p>DUPLEX:双工指示灯。
( [7 r+ f* t: }/ v* GSPEED:速率指示灯。
7 Y& `( D1 y; S4 \. R《!--[if !supportLists]--》3 《!--[endif]--》Catalyst交换机的初始启动输出2 x0 v  K+ L$ ~4 f& N+ q
《!--[if !supportLists]--》4 《!--[endif]--》Setup模式/ ?/ y  b2 i0 S
《!--[if !supportLists]--》5 《!--[endif]--》登录交换机
) x0 j4 W* `" f7 d, I  z5 L《!--[if !supportLists]--》6 《!--[endif]--》交换机命令行的帮助功能
' J5 g9 p2 q0 K4 q《!--[if !supportLists]--》7 《!--[endif]--》配置交换机: {" Y  F9 y. T7 n4 {  H/ G
《!--[if !supportLists]--》(1) 《!--[endif]--》配置交换机的主机名:Switch(config)#hostname [主机名]
5 h7 N6 V3 x) s, ?" [8 G+ D1 z# S, ~《!--[if !supportLists]--》(2) 《!--[endif]--》配置交换机的管理IP地址:2 X$ m+ \9 [9 R6 [; q
Switch(config)#interface vlan 1
+ J" u( w5 n) w' F- _4 ]% `/ }2 zSwitch(config-if)#ip address [IP地址] [子网掩码]
- N' K) \2 v: P. [8 o6 ZSwitch(config-if)#no shutdown6 \( H$ f- C+ i0 J- u2 F9 C
《!--[if !supportLists]--》(3) 《!--[endif]--》配置交换机的默认网关:
+ r: L' O' J: T3 w9 jSwitch(config)#ip default-gateway [网关地址]' Q6 A% ], X- s& c  A
《!--[if !supportLists]--》(4) 《!--[endif]--》查看交换机的信息$ c" D) f- i' f" O0 @
#show version7 ~! |5 q2 u: s  m( U+ ~, H
#show run7 H( L7 y$ ^. t/ [. J
#show run# B' t$ k0 u0 l  k5 \+ ~
#show int
; B$ ?. D* x5 R6 I2 D+ b《!--[if !supportLists]--》《!--[endif]--》配置DHCP Server; y/ x, [& e4 J) A) ^/ B6 i
《!--[if !supportLists]--》 《!--[endif]--》IP未编号(IP Unnumber)
" A1 M4 y5 Y0 q5 KRouter(config-if)#ip unnumbered LAN接口或LOOPBACK接口4 y" V+ T( v# \/ K% G- j1 i0 |3 `
《!--[if !supportLists]--》 《!--[endif]--》Cisco Easy IP5 I8 e% q0 D1 Q7 x! ^9 G0 E  f) L
《!--[if !supportLists]--》1 《!--[endif]--》DHCP(Dynamic Hosts Configuration Protocol,动态主机分配/配置协议)
1 T4 D7 M/ G% p3 A主要是用于实现Cisco Easy IP。即动态分配IP信息(包括IP地址、子网掩码、默认网关、DNS服务器地址)即租用的时间等。4 F+ `* k$ Y& W
《!--[if !supportLists]--》2 《!--[endif]--》DHCP服务器的操作
" W$ n" u+ Y: I+ E《!--[if !supportLists]--》(1) 《!--[endif]--》DHCP客户端通过第三层广播(255.255.255.255)向DHCP服务器发送DHCPDISCOVER信息;
& ?7 G- Z4 G( S《!--[if !supportLists]--》(2) 《!--[endif]--》DHCP服务器向DHCP客户端广播(255.255.255.255)回复一个DHCPOFFER信息;
  A8 w$ i  @' k8 m1 [  I2 G《!--[if !supportLists]--》(3) 《!--[endif]--》DHCP客户端向DHCP服务器广播发送DHCPREQUEST信息;
+ Y1 I, S# X2 P+ f6 o  M《!--[if !supportLists]--》(4) 《!--[endif]--》DHCP服务器向DHCP客户端广播发送一个DHCPACK信息。- h+ C9 N$ k" o2 O% \* t6 c2 e
《!--[if !supportLists]--》3 《!--[endif]--》DHCP服务器的配置
# [- o- o# Q- C) H' a3 f& W《!--[if !supportLists]--》4 《!--[endif]--》DHCP客户端的配置
$ t8 Z* P# X  f-if)#ip address dhcp
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-31 06:00 , Processed in 0.451116 second(s), 32 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表