原来使用新的Cisco设备,没有使用二手的.在实际的操作中,看一些资料有时候会手忙脚乱的!CCNA的知识也不覆存在,其实很多情况下,把自己的思路整理一下,即可把问题解决!
源起:
前两天拿到一个Cisco 2600 Series (2610)的设备,此设备的硬件部分请查询相关的列表,仅增加一块WICs(WAN Interface Cards,)卡,在Interface s0 Slot 上.
此设备考虑到没有什么需要将原来配置留下,于是乎,将其重新设置,清空重来!
清除的动作:
1.配置一个Terminal,其实是一个超级终端:每位秒数:9600;数据位:8;奇偶校验位:无;停止位:1;数据流控制:无;
2.用COM接Cisco 设备的console,确认后,打开Cisco设备(我这种方法好像有点儿违反先开周边设备,再打开主机的做法);
Cisco 一边启动,一边用PC键盘按Ctrl+Break键,直到出现:
rommon>为止,这说明,进行了Cisco 设备的另一个特模式吧,如果你对Sun SPARC比较熟悉,就当是Sun OK Pormpt吧!
3.在rommon>下输入confreg;
整个演示过程如下:
系统启动信息:System Bootstrap, Version 12.2(6r), RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 2001 by cisco Systems, Inc.
PC = 0xfff0ac0c, Vector = 0x500, SP = 0x68012758
PC = 0xfff0ac0c, Vector = 0x500, SP = 0x680127c0
C2600 platform with 32768 Kbytes of main memory
PC = 0xfff0ac0c, Vector = 0x500, SP = 0x80004884
在键盘上输入:Ctrl+Break 显示的信息:monitor: command "boot" aborted due to user interrupt
rommon 1 >confreg
Configuration Summary
(Virtual Configuration Register: 0x2101)
enabled are:
load rom after netboot fails
console baud: 9600
boot: the boot helper image
do you wish to change the configuration? y/n [n]: y #一定要输入yes
enable "diagnostic mode"? y/n [n]: n
enable "use net in IP bcast address"? y/n [n]: n
disable "load rom after netboot fails"? y/n [n]: n
enable "use all zero broadcast"? y/n [n]: n
enable "break/abort has effect"? y/n [n]: n
enable "ignore system config info"? y/n [n]: y #一定要输入yes
change console baud rate? y/n [n]: n
change the boot characteristics? y/n [n]: n
Configuration Summary
(Virtual Configuration Register: 0x2141)
enabled are:
load rom after netboot fails
ignore system config info
console baud: 9600
boot: the boot helper image
do you wish to change the configuration? y/n [n]:
如果在这里输入y,你会发现:上面的选择项里,有一项的值有所变化:
enable "ignore system config info"? y/n [n]: 这一行,由原来的这个值,变为另一个值:
disable “ignore system config info”?y/n [n]:
我们在此输入:no
do you wish to change the configuration? y/n [n]: n
You must reset or power cycle for new config to take effect
rommon 3 > reset
4.系统再次重启:
直这到这里结束:
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: yes
这里输入yes
依次需要输入的选择项有:
Would you like to enter basic management setup? [yes/no]: yes
Enter host name [Router]: JellyR #路由器名称
Enter enable secret: Jelly1 #进入特权时的密码;
Enter enable password: Jelly2 #进入特权时的密码;
Enter virtual terminal password: Jelly3 #vty时的密码
Configure SNMP Network Management? [yes]:no #在这里我输入no
Configure IP on this interface? [yes]: yes
IP address for this interface: 192.168.10.200
Subnet mask for this interface [255.255.255.0] :
Class C network is 192.168.10.0, 24 subnet bits; mask is /24
当现现:
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit.
Enter your selection [2]:2 #这里选择2,系统保存并重新启动;
JellyR>en
Password: #输入Jelly1,即特权模式的密码;
到此,密码的初始化已经完成,系统需要一个全新的配置,包括IP等一类的信息;
JellyR#wr mem
JellyR#reload #重新启动,你会发现如下问题:
最后,系统每次启动都到system configuration dialog,为止,
Configuration Summary
(Virtual Configuration Register: 0x2141)
enabled are:
load rom after netboot fails
ignore system config info
console baud: 9600
boot: the boot helper image
do you wish to change the configuration? y/n [n]:
如果如此,请输入no;
在此你会发现,以上显的示的信息与第一次系统启动rommon时的信息不同:第一次启动rommon>模式时如下:
rommon 1 >confreg
Configuration Summary
(Virtual Configuration Register: 0x2101) #注意这里的变化;
现在的信息:
(Virtual Configuration Register: 0x2141) #注意这里的变化;
在JellyR>下输入en,进入Jelly>#下,此时也不需要密码;原来配置都无效啦吗?不然。
Router#show version
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 12.2(2)T4, RELEASE SOFTWARE (fc3)
TAC Support: http://www.cisco.com/tac
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Sun 10-Feb-02 05:50 by yiyan
Image text-base: 0x80008088, data-base: 0x809D6E44
ROM: System Bootstrap, Version 12.2(6r), RELEASE SOFTWARE (fc1)
Router uptime is 0 minutes
System returned to ROM by reload
System image file is "flash:c2600-i-mz.122-2.T4.bin"
cisco 2610 (MPC860) processor (revision 0x00) with 28672K/4096K bytes of memory.
Processor board ID JAD06100GY1 (406680486)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read/Write)
Configuration register is 0x2142 #注意这里的变化;
Router#
问题就出在这里:
接着执行如下命令即可:
Router#c onfigure terminal
Route(config)#c onfig-register 0x2101
Route(config)#end
Route# wr mem
Route#reload
再次重启后,你会发现,系统到了正常的状态;
JellyR>出现了,
在JellyR>en
Password:
JellyR#显示正常了!
不过,此时仍然会发现,工作站无法ping通路由器,这是因为默认的路由器的端口是关闭的,做如下操作即可:
JellyR#c onfigure terminal
Enter configuration commands, one per line. End with CNTL/Z.
JellyR(config)#interface ethernet 0/0
JellyR(config-if)#no shutdown
JellyR(config-if)#
系统显示:00:02:48: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
系统显示:00:02:49: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed s
系统显示:tate to up
JellyR(config-if)#end
JellyR#
系统显示:00:05:04: %SYS-5-CONFIG_I: Configured from console by console
JellyR#wr mem
Building configuration...
[OK]
JellyR#copy run
JellyR#copy running-config sta
JellyR#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
JellyR#
wr mem 和 copy running-config startup-config 的目的相同;保存当前的配置;
其它方面的具体设置,有时间再说吧!