三、设置对话过程 1 G& t# [8 q7 @% `% `1 ~
2 o0 q0 l& R/ I6 w0 }: K显示提示信息
6 l# j4 a/ Y' P3 ^ k全局参数的设置
$ h" G& U6 W* g1 a' G4 F接口参数的设置 % F: i4 v# j% O; | b% j6 O! [
显示结果
6 \* A0 |9 ?& h+ M, U5 x) P+ _利用设置对话过程可以避免手工输入命令的烦琐,但它还不能完全代替手工设置,一些特殊的设置还必须通过手工输入的方式完成。 ! x- _) i+ Q' E" O% f
进入设置对话过程后,路由器首先会显示一些提示信息: - E/ F5 r: F' h
--- System Configuration Dialog ---
) `- a) [7 M! ?# b9 k. QAt any point you may enter a question mark ’?’ for help. * \/ {, V) v+ _4 S, Q5 n
Use ctrl-c to abort configuration dialog at any prompt. @: p" h( _! e" ~6 @
Default settings are in square brackets ’[]’. ! V& J5 Y) N$ l! B- j
这是告诉你在设置对话过程中的任何地方都可以键入“?”得到系统的帮助,按ctrl-c可以退出设置过程,缺省设置将显示在‘[]’中。然后路由器会问是否进入设置对话: $ A2 c" k7 E7 w4 w% D1 A
Would you like to enter the initial configuration dialog? [yes]: 7 K- d! c3 t$ c3 d! s S
如果按y或回车,路由器就会进入设置对话过程。首先你可以看到各端口当前的状况: % l \ e4 n) s. d& r3 g
First, would you like to see the current interface summary? [yes]: ; v5 G: F" ~3 F: i" | ~* q3 A
Any interface listed with OK? value "NO" does not have a valid configuration
' l5 |" j( d4 s. T+ p7 `Interface IP-Address OK? Method Status Protocol 5 x% R, n2 _; ~( N! E; E$ P
Ethernet0 unassigned NO unset up up ' w/ g# ?4 ^3 W* X% R
Serial0 unassigned NO unset up up
( o# {+ Q! I" z2 X* O8 I& a……… ……… … …… … … ! l) c2 ]9 M+ u" D" ] u
然后,路由器就开始全局参数的设置: 5 g+ l8 {% \( k4 ^
Configuring global parameters:
3 q$ B' w3 A+ \% V, i1.设置路由器名:
/ j, E& F7 Y$ `; E( EEnter host name [Router]: * M' ]9 p( B% H: d! M2 a/ ]+ Q3 B# t
2.设置进入特权状态的密文(secret),此密文在设置以后不会以明文方式显示:
8 h l' o& U. @/ b: eThe enable secret is a one-way cryptographic secret used
, `7 b8 `2 R* P% iinstead of the enable password when it exists. 6 i+ s" X4 P' \2 ~' h0 K7 ]
Enter enable secret: cisco
; D! M Y& h, M P1 F- f4 J* w3.设置进入特权状态的密码(password),此密码只在没有密文时起作用,并且在设置以后会以明文方式显示:
; G4 D1 h; R4 U; OThe enable password is used when there is no enable secret
& f! c* ?( ^( @/ Q& t" U) l1 i6 Jand when using older software and some boot images. & u% Q; w! P. p) L; c
Enter enable password: pass 7 Q8 q) M' ^: T: }, J: _
4.设置虚拟终端访问时的密码:
, D3 V2 V, @; S* ^/ r+ UEnter virtual terminal password: cisco
( l) }4 K* C# Q8 D8 S. Z# A5.询问是否要设置路由器支持的各种网络协议:
^' t7 Q7 v) v- A6 w0 O, UConfigure SNMP Network Management? [yes]: # `8 B4 o2 x% T3 {' Y
Configure DECnet? [no]:
% i" j4 k0 {* Z/ M: K2 DConfigure AppleTalk? [no]: 5 B- G, P4 f! S7 v! D3 |; u
Configure IPX? [no]:
1 t5 i! i9 t& H. S) E6 K+ dConfigure IP? [yes]:
0 G2 ?6 d9 V, \* L& m( K# @Configure IGRP routing? [yes]:
7 u/ e C" E! A; `Configure RIP routing? [no]: ) e! w1 V7 l7 {- k. S1 _, Q
……… / D( X7 {/ c' x1 V1 k( f$ _6 C
6.如果配置的是拨号访问服务器,系统还会设置异步口的参数:
/ z4 \) D" C( Y; w( a5 QConfigure Async lines? [yes]: 6 k) v' {$ u6 P1 a4 M3 M7 }
1) 设置线路的最高速度: 1 H4 c! D! v4 d! `1 C
Async line speed [9600]:
3 i5 ?" o# c. D# R" E3 P# y' R2) 是否使用硬件流控: " @9 |! x8 s# D' ^
Configure for HW flow control? [yes]: + ~3 K6 `$ c5 c1 z' j! K
3) 是否设置modem:
! `+ D& F: d- y9 q9 J4 H2 ?Configure for modems? [yes/no]: yes & z% u7 P6 w& L# l. h
4) 是否使用默认的modem命令: " e/ x, u- I4 m& [% V% ?8 s
Configure for default chat s cript? [yes]:
, ~$ Y4 m3 m. w* ?; B8 ]2 X4 G5) 是否设置异步口的PPP参数: 1 u! F5 } x+ m3 [6 S* F; v$ G* Y0 }
Configure for Dial-in IP SLIP/PPP access? [no]: yes ! k1 ~- Y6 C% s1 }
6) 是否使用动态IP地址:
4 D: g' Y S; x3 r" R9 c- ~7 WConfigure for Dynamic IP addresses? [yes]: , N/ T# P1 V% O& {3 x
7) 是否使用缺省IP地址:
0 |* X* J; q6 b$ LConfigure Default IP addresses? [no]: yes ; t5 `2 B/ p8 D. n* u
8) 是否使用TCP头压缩:
# v. D; f" |0 ~% q7 _Configure for TCP Header Compression? [yes]: * u. w; x& e: P' O5 C v+ W
9) 是否在异步口上使用路由表更新: $ B" I. H0 n# B3 r% M
Configure for routing updates on async links? [no]: y
2 ?1 f. C) V& ~# \10) 是否设置异步口上的其它协议。 6 s' n7 a% M4 _9 W
接下来,系统会对每个接口进行参数的设置。
! K- j- ~+ r3 ^1.Configuring interface Ethernet0:
8 h- [- ?/ |2 s' J5 f- P+ \* Z1) 是否使用此接口:
6 X* E [$ C% yIs this interface in use? [yes]:
% S' `" M2 y2 }2) 是否设置此接口的IP参数:
* i. v3 F1 d2 i' K* O; K2 rConfigure IP on this interface? [yes]: |