詳述Cisco路由器手冊中“對話過程”的設(shè)置問題
在Cisco路由器手冊的第三章里有關(guān)于“設(shè)置對話過程”的講解,本文摘自手冊上面的內(nèi)容。方便大家對設(shè)置對話這一問題做一個更專注的了解。全局參數(shù)的設(shè)置,接口參數(shù)的設(shè)置,顯示結(jié)果,利用設(shè)置對話過程可以避免手工輸入命令的煩瑣,但它還不能完全代替手工設(shè)置,一些特殊的設(shè)置還必須通過手工輸入的方式完成。根據(jù)Cisco路由器手冊進(jìn)入設(shè)置對話過程后,路由器首先會顯示一些提示信息:
---SystemConfigurationDialog---
Atanypointyoumayenteraquestionmark'?'forhelp.
Usectrl-ctoabortconfigurationdialogatanyprompt.
Defaultsettingsareinsquarebrackets'[]'.
這是告訴你在設(shè)置對話過程中的任何地方都可以鍵入“?”得到系統(tǒng)的幫助,按ctrl-c可以退出設(shè)置過程,缺省設(shè)置將顯示在‘[]’中。然后路由器會問是否進(jìn)入設(shè)置對話:Wouldyouliketoentertheinitialconfigurationdialog?[yes]:如果按y或回車,參照Cisco路由器手冊路由器就會進(jìn)入設(shè)置對話過程。首先你可以看到各端口當(dāng)前的狀況:First,wouldyouliketoseethecurrentinterfacesummary?[yes]:AnyinterfacelistedwithOK?value"NO"doesnothaveavalidconfigurationInterface,IP-Address,OK?Method,Status,Protocol,Ethernet0,unassigned,NO,unset,up,up,Serial,0unassigned,NO,unset,up,up。然后,路由器就開始全局參數(shù)的設(shè)置:Configuringglobalparameters:
1.設(shè)置路由器名:Enterhostname[Router]:
2.設(shè)置進(jìn)入特權(quán)狀態(tài)的密文(secret),此密文在設(shè)置以后不會以明文方式顯示:Theenablesecretisaone-waycryptographicsecretused,instead of the enable password when it exists.,Enterenablesecret:cisco
3.設(shè)置進(jìn)入特權(quán)狀態(tài)的密碼(password),此密碼只在沒有密文時起作用,并且在設(shè)置以后會以明文方式顯示:Theenable password isu sed when there is no enable secret,and when using older software and some boot images.Enterenablepassword:pass
4.設(shè)置虛擬終端訪問時的密碼:Entervirtualterminalpassword:cisco
5.詢問是否要按照Cisco路由器手冊設(shè)置路由器支持的各種網(wǎng)絡(luò)協(xié)議:ConfigureSNMPNetworkManagement?[yes]:ConfigureDECnet?[no]:ConfigureAppleTalk?[no]:ConfigureIPX?[no]:ConfigureIP?[yes]:ConfigureIGRProuting?[yes]:ConfigureRIProuting?[no]:
6.如果配置的是撥號訪問服務(wù)器,系統(tǒng)還會設(shè)置異步口的參數(shù):ConfigureAsynclines?[yes]:
1)設(shè)置線路的***速度:Asynclinespeed[9600]:
2)是否使用硬件流控:ConfigureforHWflowcontrol?[yes]:
3)是否設(shè)置modem:Configureformodems?[yes/no]:yes
4)是否使用默認(rèn)的modem命令:Configurefordefaultchatscript?[yes]:
5)是否設(shè)置異步口的PPP參數(shù):ConfigureforDial-inIPSLIP/PPPaccess?[no]:yes
6)是否使用動態(tài)IP地址:ConfigureforDynamicIPaddresses?[yes]:
7)是否使用缺省IP地址:ConfigureDefaultIPaddresses?[no]:yes
8)是否使用TCP頭壓縮:ConfigureforTCPHeaderCompression?[yes]:
9)是否在異步口上使用路由表更新:Configureforroutingupdatesonasynclinks?[no]:y
10)是否設(shè)置異步口上的其它協(xié)議。接下來,系統(tǒng)會按照Cisco路由器手冊對每個接口進(jìn)行參數(shù)的設(shè)置。
1)是否使用此接口:Isthisinterfaceinuse?[yes]:
2)是否設(shè)置此接口的IP參數(shù):ConfigureIPonthisinterface?[yes]:
3)設(shè)置接口的IP地址:IPaddressforthisinterface:192.168.162.2
4)設(shè)置接口的IP子網(wǎng)掩碼:Numberofbitsinsubnetfield[0]:ClassCnetworkis192.168.162.0,0subnetbits;maskis/24
在設(shè)置完所有接口的參數(shù)后,系統(tǒng)會把整個設(shè)置對話過程的結(jié)果顯示出來:Thefollowingconfigurationcommandscriptwascreated:hostnameRouter,enablesecret5$1$W5Oh$p6J7tIgRMBOIKVXVG53Uh1,enablepasswordpass。請注意在enablesecret后面顯示的是亂碼,而enablepassword后面顯示的是設(shè)置的內(nèi)容。顯示結(jié)束后,系統(tǒng)會問是否使用這個設(shè)置:Usethisconfiguration?[yes/no]:yes如果回答yes,系統(tǒng)就會把設(shè)置的結(jié)果存入路由器的NVRAM中,然后結(jié)束設(shè)置對話過程,根據(jù)Cisco路由器手冊,使路由器開始正常的工作。