免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1634 | 回复: 0
打印 上一主题 下一主题

交换机密码恢复 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-12 09:19 |只看该作者 |倒序浏览
 ⒈连接交换机的console口到终端或PC仿真终端。用无Modem的直连线连接PC的串行口到交换机的console口。
  
  ⒉先按住交换机面板上的mode键,然后打开电源。
  
  ⒊初始化flash。
  
  >flash_init
    load_helper
    dir flash
  
  ⒋更名含有password的配置文件。
  
  >rename flash:config.text flash:config.old
  
  ⒌启动交换机。
  
  >boot bvg
  ⒍进入特权模式。
  
  >enable
  
  ⒎此时开机是已忽略password。
  
  #rename flash:config.old flash:config.text
  
  ⒏copy配置文件到当前系统中。


Switch>

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 18:57 by antonino
WS-C2950-12 starting...
Base ethernet MAC Address: 00:08:20:5a:30:c0
Xmodem file system is available.

The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

    flash_init
    load_helper
    boot

switch: flash_int
Unknown cmd: flash_int
switch: flash_init
Initializing Flash...
flashfs[0]: 4 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 3696640
flashfs[0]: Bytes available: 4044800
flashfs[0]: flashfs fsck took 6 seconds.
...done initializing flash.
Boot Sector Filesystem (bs installed, fsid: 3
Parameter Block Filesystem (pb installed, fsid: 4
switch: load_helper
switch: dir flash
unable to stat flash/: permission denied
switch: dir flash:
Directory of flash:/

2    -rwx  3692800   <date>               c2950-i6k212q4-mz.121-22.bin
3    -rwx  24        <date>               private-config.text
5    -rwx  744       <date>               vlan.dat
6    -rwx  930       <date>               config.text

4044800 bytes available (3696640 bytes used)
switch: rename flash:config.text flash:config.back
switch: boot
Loading "flash:/c2950-i6k212q4-mz.121-22.bin"...####
ed state to up
Switch>enableh
Switch#rename flash:config.back flash:config.text
Destination filename [config.text]?
Switch#copy flash:config.text system:running-config
Destination filename [running-config]?
930 bytes copied in 0.708 secs (1314 bytes/sec)
Switch#config t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#enable sec cisco
Switch(config)#en
Switch(config)#enable sec thinkcore
Switch(config)#end
Switch#
00:03:44: %SYS-5-CONFIG_I: Configured from console by console
Switch#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Switch#reload

  
  #copy flash:config.text system:running-config
3ds max 是当前世界上销售量最大的三维建模,动画及渲染解决方案,3ds max5是其具有显著提高的最新版本。 他将广泛应用于视觉效果,角色动画及下一代的游戏。 serial: 226-19791979 cd-Key: XLSQBQ 安装时用:226-19791979 cd-Key: XLSQBQ,然后再运行hv-Max5-kg注册机,输入请求代码(Request Code),算出注册码(Authorization Code)。 或者使用网络许可,即安装3dsmax完后再安装autodesk license manager(第六个图标)。将许可目标指向crack文件夹内的licpath.lic即可
  
  ⒐修改口令。
  
  #configure terminal
  
  #enable secret
  
  ⒑保存配置。
  
  #write
  
  路由器口令恢复步骤
  
  ⒈连接路由器的console口到终端或PC仿真终端。用无Modem的直连线连接PC的串行口到路由器的console口。
  
  ⒉用show version命令显示并记录配置寄存器的值,通常为0x2102或0x102.如果用show version命令不能获得有关提示,可以查看类似的路由器来获得配置寄存器的值或用0x2102试试。
  
  ⒊关闭路由器的电源,然后再打开。
  
  ⒋在启动的前60秒内按Break键,你将会看到“〉”提示符(无路由器名),如果没有看到“〉”提示符,说明你没有正确发出Break信号,这时可检查终端或仿真终端的设置。
  
  ⒌在“〉”提示符下键入 o/r 0x42从Flash memory中引导或键入o/r 0x41从ROM中引导(注意:这里“o”是小写字母“O”)。如果它有Flash且原封没动过,0x42是最好的设置,因为它是缺省值,仅当Flash被擦除或没有安装时使用0x41。如果用0x41,你可以查看或删除原配置,但你不能改变口令。
  
  ⒍在“〉”提示符下键入i,路由器将重新启动而忽略它保存的配置。
  
  ⒎在设置中的所有问题都回答“no”。
  
  ⒏在Router〉提示符下键入enable,你将进入特权用户Router#提示。
  
  ⒐查看口令,键入 show config
  
  改变口令(在口令加密情况下),按照如下的步骤进行:
  
  (a)键入config mem拷贝NVRAM到memory中;
  
  (b)键入wr term;
  
  (c)如果你作过enable secret xxxx, 执行下列命令:键入config term然后键入enable secret按Ctrl+Z;如果你没有作过enable secret xxxx,则键入enable password,Press Ctrl+Z;
  
  (d)键入write mem提交保存改变;若删除配置,键入write erase。
  
  ⒑在Router#提示符下键入config term。
  
  ⒒键入config-register0x2102,或键入在第二步记录的值。
  
  ⒓按 Ctrl+Z退出编辑。
  
  ⒔在Router#提示符下键入reload命令,不需要做write memory。Sample Text
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP