Router> Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#enable password cisco1 Router(config)#enabSe secret cisco2 Router(config)#line con 0 Router(config-line)#login Router(config-line)#passw cisco3 Router(config-line)#exit Router(config)#line aux 0 Router(config-line)#loglis Router(config"line)#passw cisco4 Router(config-line)#exit Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#passw ciscoS Router(config-line)#end Router#sh run Building configuration... Current configuration : 566 bytes version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! enable secret 5 $l$cQDs$6M3C79y9sWQgk.mYywxTt0 enable password ciscol ... (此处省略多行) line con 0 password cisco3 login transport input none line aux 0 password cisco4 login line vty 0 4 password cisco5 login ! end
(3)路由器支持对所有口令进行加密显示,实现这个功能的命令是service命令的一个子命令,即sewice password-encryption,此命令应在全局配置模式下发出。配置此命令后的showrunning-config结果中会出现类似以下内容的显示: line con 0 password 7 02050D04808095C login
第1段: ROM Monitor System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems 2500 PRocessor with 16384 Kbytes of main memory (按下Break键, 进入ROM Monitor模式) Abort at Ox1OEA81C (PC) >? $ Toggle cache state B [filename] [TFTP Server ip address I TFTP Server Name] Load and execute system image from ROM or from TFTP server C [address] Continue execution [optional address] D/S M LV Deposit value V of size S into location L with modifier M E/S M L Examine location L with size S with modifier M G [address] Begin execution H Help for commands I Initialize K Stack trace L [filename] [TFTP Server IP address ! TFTP Server Name] Load system image from ROM or from TFTP server, but do not begin execution O Show configuration register option settings P Set the break point S Single step next instrUCtion T function Test device (? for help) Deposit and Examine sizes may be B (byte), L (long) or S (short). Modifiers may be R (register) or S (byte swap). Register names are: DO-D7, AO-A6, SS, US, SR, and PC >0 Configuration register=0xFFFF2102atlast boot Bit# Configuration register option settings: 15 Diagnostic mode disabled 14 IP broadcasts do not have network numbers 13 Boot default ROM software if network boot fails 12-11 Console speed is 9600 baud 10 IP broadcasts with ones 08 Break disabled 07 OEM disabled 06 Ignore configuration disabled 03-OOBoot file is cisco2-2500 (or 'boot system' command)
>o/r 0x2142 >i
第2段:路由器正常启动
(以下为路由器的正常启动过程)
System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE Copyright (c) 1986-1995 by cisco Systems ...(路由器启动报告,省略) ---System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]: n Press RETURN to get started! Router>en Router#sh version Cisco Internetwork Operating System Softwaree 0 ... (此处为版本,接口等信息,省略) Router#sh startup-config Using 455 out of 32762 bytes version 12.1 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router enable password cisco ... (此处省略多行) ! line con 0 password ciscol login line aux 0 line vty 0 4 ! end Router#copy start run Destination filename [running-config]? 455 bytes copied in 4.708 sees (113 bytes/sec) Router#conf t Router(coiifig)#coiifig-register 0x2102 Router(config)#end Router#sh version Cisco Internetwork Operating System Softwaree 0 ...(此处为版本、接口等信息,省略) Configuration register is 0x2142(will be 0x2102 at next reload)