a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 173|回复: 2

[CCNA] CCNA指导:CCNA配置实例解析

[复制链接]
发表于 2012-8-3 20:28:11 | 显示全部楼层 |阅读模式
Logging In1.Press ENTER to connect to your router. This will bring you in User mode.
8 B8 n8 Y5 V; t9 Q3 Y1 D  2.At the router> prompt, type in a question mark (?) This will list all the User mode3 f" S! b1 h5 y9 {, u5 M0 ^$ d
  commands. Feel free to play with all the available commands. You are in a safe zone.2 x; K9 y/ K* S  S! D
  Nothing will be damaged.& m& p, ?' ?' H0 T
  3.Press the Enter key to the view the commands line by line.
% J2 M$ O% i  O1 r" p% l( p4 z  4.Press the SPACEBAR to view the commands a full screen at a time.! k  y* q& [. l
  5.Type enable or en, the press ENTER. This will put you in Privileged mode, where you
& k. P, ]$ B/ R2 o; B! z! n5 s. G  can change and view the router configuration.
$ m, _. w3 H4 Z9 F, K# F' c$ T  6.At the router# prompt, type a question mark (?) This will list all available commands in( d1 d1 U3 S9 i; k# U
  the Router Global configuration mode. Use these commands with cautions.
2 X& |8 Y- j# |; Z) U4 D" V$ ~7 ]$ ?  7.Type config and ENTER.6 m8 ~- b, X4 Z
  8.Press ENTER to configure your router using your terminal.
  D+ Q) q2 \  u3 m4 {$ q4 i  9.At the router(config)# prompt, type another question mark (?) This will list all- l9 J8 g5 L; F7 g
  commands available in router configuration mode. Use these commands with cautions.
! e) `4 b: q3 e/ l  10. Press the CONTROL key and the letter Z at the same time. Notice how the take you out
$ I# B* V6 c* y% y- y  f  of Configuration mode and brings you back in Privileged mode.% M2 K3 G! i8 u+ J) I
  11. Type disable. This will put you into where you begin - the User mode.# @, \) B& w8 c+ H7 e! q
  12. Type exit, which will log you out of the router. Viewing and Saving Configuration1.Log in the router and go to Privileged mode by typing en or enable, then pre ENTER.
2 N. h2 T1 u( I1 _5 }. T) w  2.View the configuration running in DRAM, known as running-config, by typing sh run,
4 E/ h: L0 u" N7 G1 Y" S! y  show running, or show running-config. Press any key to continue.
+ F: ?6 {# p' l% J- O5 U$ t# h  3.To see the configuration stored in NVRAM, which is known as startup-config, type sh
1 _6 r8 S7 P3 d0 M* n  X2 f  start or show startup-config. If no configuration has been save, you will get an error
9 [; f" Q& }; A! N7 k, n" V+ {  message. Please press any key to continue.
1 D  r8 }# _- i  4.To save a configuration from DRAM to NURAM, copy the running-config to startup-config:
: F) p  K9 ^9 l5 E  copy run start and press ENTER; or copy running and press Tab; Type start, Press the) S" K1 }/ ^* [
  Tab key, and the ENTER; or copy running-config startup-config and press ENTER. or,
- S7 R1 t1 t- S6 K; a# h3 F) K  you may use the wr mem command (write memory).
3 Z% x* b5 ~" O4 d  I, R  5.Type sh start, the press the Tab key, the ENTER. Press any key to continue.$ I. j7 W! w4 _5 V( v3 Q! `! Q0 S
  6.Type sh run, the press the Tab key, the ENTER. Press and key to continue.$ C' ^. A0 Z/ I: Q
  7.Type erase start, the press the Tab key, the ENTER. This command will erase all: U3 [/ ?7 ^% \+ Y# I
  startup-config settings., E4 Z3 s7 L7 U+ r4 D1 B2 c5 N' ~
  8.Type sh start, the press the Tab key, the ENTER. You should get this error message:: a. B. `- H, `0 r( {6 a
  "%% Non-volatile configuration memory has not been setup or has bad checksum"
8 W8 F7 s" ]' U% Z1 m- ]  9.Type reload, then press ENTER. Acknowledge the reload by pressing ENTER. Wait for the- k5 |1 L! w" H# o. ~1 h. I
  router to reload to complete and the Press Enter to continue. You have just cleared all
9 h1 n; j7 \5 s  previous Router settings. You should now have a clean router to start with.Static IP Routing Running-configRouterA#sh run2 D( X; l5 I" n# e! T# ~
  Building configuration...Current configuration:. f) d2 U' M0 s2 }/ \( U
  !
4 `+ p9 ]% k# G6 @. J: M2 S7 L  version 11.2
% g! E/ @) [' {+ X# O  no service password-encryption
4 i8 A3 W% K+ y7 u& B  no service udp-small-servers! @& l; D, V0 n( ~( O1 w
  no service tcp-small-servers
5 P3 r+ {( X1 i( |& H4 g  !% F1 h0 C9 A5 R7 ~) h* O1 f
  hostname RouterA; L( p( P6 g" V" C+ C" D" m. c
  !0 x2 A& m1 k+ k, \. ?+ R
  !" G  y' w4 F( O7 h
  !/ d5 d) w2 p! B
  interface Ethernet0
2 N6 g5 `9 U) r) \9 |/ c  ip address 172.16.10.1 255.255.255.0+ s( z# R5 c, c0 T" g( i9 _
  !: H. S0 N. k5 m3 C' m- b/ q$ j
  interface Serial07 w& B+ n' w9 H2 j
  ip address 172.16.20.1 255.255.255.0% E  F. |* Z, V. ~9 K
  no fair-queue
( s+ ?4 T- A- y7 N! X6 U  !
$ V2 Y# S4 m1 D  interface Serial1. ~7 H/ A9 f; `
  no ip address6 U* G4 K' ]2 H2 i! r
  shutdown: J2 {7 }* L' M& N9 x$ p
  !
3 d# v% C; \" e/ R. w. G0 S" J+ \  !
; \* x/ |0 O7 O1 Y: d  no ip classless
" D3 B: @& x0 C) L' t. }  ip route 172.16.30.0 255.255.255.0 172.16.20.20 x. H- u, E0 C( ~/ F
  ip route 172.16.40.0 255.255.255.0 172.16.20.2) H& B2 r9 X( }- S7 q  H
  ip route 172.16.50.0 255.255.255.0 172.16.20.2
& Y* ?( G: }! w  !. j4 u! c: Q& q2 w) v
  !
回复

使用道具 举报

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

CCNA指导:CCNA配置实例解析

  line con 0
9 m2 o6 C; q) e' p1 t' O  line aux 0
4 ~. \4 m! [4 F3 j  line vty 0 4; O+ v- x3 b) C4 J2 c
  login
% W. M  |/ ~! Z( \4 ]# H: h, Z; _  !+ n7 [+ n3 L; b: \0 ~. w' v6 y
  endRouterB#sh run6 Z4 y7 b+ b, Q5 V9 j: U5 H! H/ V3 V
  Building configuration...Current configuration:
' _8 t( a& K9 E3 b* [* l) f  !9 J8 S- j, Z+ C+ C
  version 11.2
3 o" e. ?( H0 m$ B  no service password-encryption
7 K+ ^  \+ W2 U" |  no service udp-small-servers
" z* j) I$ C* m  no service tcp-small-servers
$ t2 i( m& s3 l' r; c' }+ a7 c  !
1 U$ e7 @0 M5 D: u& b( t  hostname RouterB
: P) b( e$ b, I- K9 k  !
! `2 w9 B. F% H6 H, n' t. \  !
' R% p/ D% b& O1 w, y0 |  !- E9 h# M% H7 L3 _7 A6 V2 @: `3 i
  interface Ethernet0
5 l# h3 W  _9 P  ip address 172.16.30.1 255.255.255.0
1 C3 H) S' y- N9 r3 q$ Y  !& k- [8 ?; s1 `- y6 Y" s
  interface Serial01 k# L. \2 B- I
  ip address 172.16.20.2 255.255.255.0
! ?8 ]+ f: [% e6 h  c$ v" m3 C  clockrate 560005 D9 b- P  V$ |" o
  !- ?( J7 `! F* V) {+ q5 |1 ?
  interface Serial1% O/ ~3 g3 M$ p' i
  ip address 172.16.40.1 255.255.255.0$ c% g: ]# X% [# S6 u
  clockrate 56000) P! K% p. e- h( @$ ~; l
  !
$ I7 X; H/ N' w; S  no ip classless
7 p& e6 O7 R& X( v; o' m9 K  ip route 172.16.10.0 255.255.255.0 172.16.20.1
% ~6 Q/ _$ F. c& a5 p  ip route 172.16.50.0 255.255.255.0 172.16.40.24 l% C& y6 O, k: ^6 F
  !2 d8 Q" J$ V  G, z% l8 v: s+ S- X
  !
3 A, R; ?# P8 M6 F1 ~0 @; a8 V  line con 0
% o$ N. g) c/ k3 D$ W  line aux 0/ J6 @' V0 s* M, _; j
  line vty 0 4( g( R1 j3 s' C& ^
  login
" n# q/ N0 p8 `4 g  !
9 c& \6 Z% v7 V7 E1 o7 Q  end' r/ V% r  ?( p5 L
  RouterC#sh run; E0 H1 J5 ^" b# _& ~. T! U# i4 m$ m
  Building configuration...Current configuration:
/ \6 t, \( W6 ~  !5 \/ }6 ]& R9 b. w0 u& y2 i
  version 11.2
" Y% F% P' l4 I" ]' g2 [  no service password-encryption* T/ z0 J8 A9 F- B" ]1 m
  no service udp-small-servers; i! O3 H4 J' R# x1 ?
  no service tcp-small-servers
# b4 a5 N6 C8 X2 |9 Z  !
* b, O5 s' h) k5 l  g2 K' C: `+ E  hostname RouterC
+ F. d$ }6 V* P; K* E  !5 D2 M% ~+ s# p: `. M# W
  !
% G. x  B$ @' }  P% F8 o6 T  !* F; w9 b1 S* c9 h
  interface Ethernet09 A9 C* Y4 K! C$ T! S
  ip address 172.16.50.1 255.255.255.0
7 U9 u0 ]' D  M) [# K; v  !  P- H) z. E9 N& R4 @) f
  interface Serial0
& N3 Z% Y$ P; S6 _, D" \# q  ip address 172.16.40.2 255.255.255.07 e! {1 o! c* ~% M( k
  no fair-queue: v; K9 d6 l! U* K' w6 S7 g
  !
/ r6 r4 y, J: b( l  interface Serial1
1 G4 ^7 e. |4 M  no ip address3 C3 O, K9 {! w# i
  shutdown# x+ {& z7 D4 q9 \6 R! e
  !
, w0 I) v* q6 U# j  y  !/ E: q9 K$ w& W
  no ip classless
  c" a$ D- u$ q: N  ip route 172.16.10.0 255.255.255.0 172.16.40.1& R; ^8 M7 y) y/ D" b
  ip route 172.16.20.0 255.255.255.0 172.16.40.1
8 X' a" ]* I9 e# J  ip route 172.16.30.0 255.255.255.0 172.16.40.15 H5 w8 Z! k, m4 Y; S  ]7 F1 [
  !6 U* m( m6 Z: Y7 W
  !
; S2 q7 j* D$ d5 g. {  line con 0
, _+ O, A6 B# Z$ j! v2 E  line aux 0
6 t( T5 ~- j+ _8 F$ b- q  line vty 0 49 Y+ _, n( D: G
  login/ w# K& \) F% Q1 n
  !2 H# x6 B$ c6 ?- Z
  endDefault IP Routing Running-configRouterA#sh run4 ]  w. I6 d4 J7 |% P7 `8 B! f
  Building configuration...Current configuration:
" N2 \$ j/ W- f+ K  !
* R  \& q8 N# x5 r; ^9 F1 Y  version 11.2
7 v0 u& y: Z: v& F/ [5 \/ v- x  no service password-encryption
1 r7 C' G% V8 F! Y  s  no service udp-small-servers' Y" V% H0 ~' {% v
  no service tcp-small-servers / D# d! f" a, O- e8 v0 X
 !
回复 支持 反对

使用道具 举报

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

CCNA指导:CCNA配置实例解析

  hostname RouterA
! ]: _6 V% X( p6 t  !
- ]6 \" h, t% {( e7 i$ k  !2 Y# ?9 v2 Y! N) V% Y! z. O! T! N
  !. \, m% z. D' Z" N. y
  interface Ethernet0
3 h3 k0 G& y. k, u, H4 j, o& T4 V  ip address 172.16.10.1 255.255.255.06 g0 w+ l/ `1 \6 O3 }- l9 ]* l
  !6 D& {% \% r' ~3 S. j
  interface Serial0
$ r# n) ~/ o, m- S% r9 Q- B  ip address 172.16.20.1 255.255.255.0
- t5 `* r& J, G  R. T4 V3 g  no fair-queue) |  g. B2 ^7 L, {+ ?" I
  !# H# G% ?7 ^: q
  interface Serial1. }" g; m8 X: p" s3 c- I$ `9 W
  no ip address
- {/ u  p* {- a5 ?( T6 X, i  shutdown
" n0 ]  {1 M: D( J# y7 T  !!3 Z- B8 S& t: z/ X& t
  ip classless
% W4 k* s8 K) N8 B8 \: k  ip route 0.0.0.0 0.0.0.0 172.16.20.26 z  M- s! [  F" p0 l3 ~; ~  u' Y
  !
. x6 e, u3 \8 l  k: d' a" t2 P  !
: _3 y% O* I. `2 L+ [, y5 a( Y  line con 0
$ R! d4 o, j8 y4 f4 O) m* m+ g  line aux 0
( t" j' ~% a- q  t3 |5 h  line vty 0 4
0 }! P5 v$ @( y3 N; s" i: M  login
& l! F0 \* X) Q7 G) i2 g  !
$ e, }' E/ m% n( D  c3 J7 R- C1 K  endRouterB#sh run
+ T5 r% M3 b( p) ?* i8 n# x9 E  Building configuration...Current configuration:
% T; b. x) a, b* R  !
- U- y3 q4 ^9 ^3 v4 m+ l  version 11.25 R1 u& r2 O+ F* l1 ^* w4 C
  no service password-encryption- l; `- D; N, I
  no service udp-small-servers
7 k4 K6 [5 \0 X$ o3 n, x  no service tcp-small-servers( ?+ u$ d9 k0 @; c6 K! V: ]
  !
7 A% R+ f: h) g; ~% w6 s  hostname RouterB7 }# [$ C" u+ j" m8 x. D7 `
  !0 U! ?/ f0 S3 O$ j7 V+ I
  !- i& h8 m/ r& ~: D5 S
  !
! N0 R4 H# }6 v5 ~- U: q  interface Ethernet07 `9 N4 R$ u1 V/ D0 X' D
  ip address 172.16.30.1 255.255.255.0
% I9 a$ {+ k; c: G. ]4 y. h  !1 C' G) E+ |: \) _" o
  interface Serial0# q: Z' p' v. T* L
  ip address 172.16.20.2 255.255.255.0
! k" o: j0 N/ J2 u  clockrate 56000
& w2 r1 x8 v4 s9 q, Z8 l/ s  !) h2 T0 R1 Y% H/ a) x7 T
  interface Serial13 p4 J- q2 E( q8 I( K
  ip address 172.16.40.1 255.255.255.0
* P+ d/ k  J) Y7 p4 a  clockrate 56000
1 X% Q( ]; b6 {7 T* c  !1 z! _5 i) |/ P  b$ h, G
  no ip classless
; o- Z( z, Z, ~/ [- S8 @, K7 l  ip route 172.16.10.0 255.255.255.0 172.16.20.1
$ S" A7 |$ F4 P; d! Y  ip route 172.16.50.0 255.255.255.0 172.16.40.2& G& |1 Y5 t- G
  !5 a$ [& v  F. |6 U- D2 ^  D# f7 n
  !, q% u- M+ f, o/ V( N$ U
  line con 0
3 F" O& K& v) `- {( B  line aux 0! i* i. g( I/ ]$ s3 Q
  line vty 0 4
' R+ W, X9 c$ A/ b) k2 L, w" \  login
" S1 Y) g/ ^, b5 V5 j  !
& }9 a  m- O. D6 ]: ^  endRouterC#sh run
5 E7 o' Q  j: H  D6 U  Building configuration...Current configuration:1 h- t8 @& k6 `0 \4 X- Q
  !. O3 z/ p+ F$ ^, b' r  j
  version 11.2
& [$ X* p7 x' f' E9 X( o  no service password-encryption& E. @9 x/ ~% `+ W( m7 Z- ?
  no service udp-small-servers9 P' P+ l3 g4 j6 b! {
  no service tcp-small-servers) |+ [7 p. ~- {9 N) c# S
  !
0 `! _* t6 n$ [, k5 V. `  hostname RouterC
# q3 k7 i+ d% B" w$ a4 u3 D' h+ }! \2 ]  !
2 E" A9 w9 s, _/ z2 x/ H  !
5 ]% [6 M7 i. j  !
# M/ ]; \# ?) B' s6 s. B1 W  interface Ethernet0
& P" \6 L- l% m8 H6 H# B  ip address 172.16.50.1 255.255.255.02 U1 d9 \; {" L  ?& C! |
  !
& |$ U" D! H' T; k2 z  interface Serial0, c/ X- O/ t: B$ L; t  l. g
  ip address 172.16.40.2 255.255.255.0/ B9 _3 ]) }" ~3 X- @6 c
  no fair-queue& w3 [, m" w5 ~- q
  !! b1 m) B" P# A0 S
  interface Serial1& G0 u, L  F) s: G; L
  no ip address( M5 x7 B3 X* @
  shutdown( |) H, e1 n% }( ~, F
  !
! r" y6 y9 A. K# P! a  !( i- R7 v6 E& H, |% o; a
  ip classless
# K+ x& S" h8 O# d$ i; z4 o& w  ip route 0.0.0.0 0.0.0.0 172.16.40.1! @3 X0 r& e( z
  !; m/ q3 X, i7 @, w3 h# B- K
  !
) C2 t% `2 d% F  line c </p>
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-29 16:45 , Processed in 0.312077 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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