|
||||
三、設置對話過程
利用設置對話過程可以避免手工輸入命令的煩瑣,但它還不能完全代替手工設置,一些特殊的設置還必須通過手工輸入的方式完成。
進入設置對話過程後,路由器首先會顯示一些提示信息:
---SystemConfigurationDialog---Atanypointyoumayenteraquestionmark'?'forhelp.
Usectrlctoabortconfigurationdialogatanyprompt.
Defaultsettingsareinsquarebrackets'[]'.
這是告訴你在設置對話過程中的任何地方都可以鍵入『?』得到系統的幫助,按ctrl-c可以退出設置過程,缺省設置將顯示在'[]'中。然後路由器會問是否進入設置對話:
Wouldyouliketoentertheinitialconfigurationdialog?[yes]:
如果按y或回車,路由器就會進入設置對話過程。首先你可以看到各端口當前的狀況:First,wouldyouliketoseethecurrentinterfacesummary?[yes]
:AnyinterfacelistedwithOK?Value"NO"doesnothaveavalidconfigurationInterface IP-Address OK? Nethod Status Protocol
Ethernet0 unassigned NO unset up up
Serial0 unassigned NO unset up up
…… …… … …… … …
然後,路由器就開始全局參數的設置:
Configuringglobalparameters:
1.設置路由器名:
Enterhostname[Router]:
2.設置進入特權狀態的密文(secret),此密文在設置以後不會以明文方式顯示:Theenablesecretisaone- waycryptographicsecretusedinsteadoftheenablepasswordwhenitexists.--Enterenablesecret:cisco
3.設置進入特權狀態的密碼(password),此密碼只在沒有密文時起作用,並且在設置以後會以明文方式顯示:Theenablepasswordisusedwhenthereisnoenablesecretandwhenusingoldersoftwareandsomebootimages.--Enterenablepassword:pass
4.設置虛擬終端訪問葉的密碼:--Entervirtualterminalpassword:cisco
5.詢問是否要設置路由器支持的各種網絡協議:
--ConfigureSNMPNetworkManagement?[yes]:
--ConfigureDECnet?[no]:--ConfigureAppleTalk?[no]:
--ConfigureIPX?[no]:--ConfigureIP?[yes]:
--ConfigureIGRProuting?[yes]:
--ConfigureRIProuting?[no]:
6.如果配置的是撥號訪問服務器,系統還會設置異步口的參數:
--ConfigureAsynclines?[yes]:
1)設置線路的最高速度:
--Asynclinespeed[9600]:
2)是否使用硬件流控:
--ConfigureforHWflowcontrol?[yes]:
3)是否設置modem:--Configureformodems?[yes/no]:yes
4)是否使用默認的modem命令:
--Configurefordefaultchatscript?[yes]:
5)是否設置異步口的PPP參數:
--configureforDial-inIPSLIP/PPPaccess?[no]
6)是否使用動態IP地址:-
-ConfigureforDynamicIPaddresses?[yes]:
7)是否使用缺省IP地址:
--ConfigureDefaultIPaddresses?[no]:yes
8)是否使用TCP頭壓縮:
--ConfigureforTCPHeaderCompression?[yes]:
9)是否在異步口上使用路由表更新:
Configureforroutingupdatesonasynclinks?[no]:y
10)是否設置異步口上的其它協議。
接下來,系統會一個接口連行參數的設置。
7.ConfiguringinterfaceEthernet0:
1)是否使用此接口:
--Isthisinterfaceinuse?[yes]:
2)是否設置此接口的IP參數:
--ConfigureIPonthisinterface?[yes]:
3)設置接口的IP地址:
--IPaddressforthisinterface:192.168.162.2
4)設置接口的IP子網掩碼:
--Numberofbitsinsubnetfield[0]:
--ClassCnetworkis192.168.162.0,0subnetbits;maksis/24
在設置完所有接口的參數後,系統會把整個設置對話過程的結果顯示出來:Thefollowingconfigurationcommandscriptwascreated:
hostnameRouter
enablesecret5$1$W5Oh$6J7tIgRMBOIKVXVG53Uh1
enablepasswordpass
…………
請注意在enablesecret後面顯示的是亂碼,而enablepassword後面顯示的是設置的內容。
顯示結束後,系統會問是否使用這個設置;
Usethisconfiguration?[yes/no]:yes
如果回答yes,系統就會把設置的結果存入路由器的NVRAM中,然後結束設置對話過程,使路由器開始正常的工作。