whitek 发表于 2018-7-20 07:31:46

清除CISCO交换机密码

  第一步:重启交换机
  第二步:配置
  1)按下MODE键后,给3560加电。
  2)在出现的菜单中选择第一项flash_init。
  systemsoftware:
  flash_init
  load_helper
  boot
  switch:flash_init
  3)重命名flash:config.text文件。
  switch: renflash:config.text flash:config.old
  4)重启交换机
  switch: boot
  5)当出现问你是否进行配置时,选择NO(因为它找不到配置文件config.text文件了)。
  Wouldyou like to enter the initial configuration dialog? :no
  6)从用户模式登录特权模式,无需密码。
  Switch>en
  Switch#
  7)恢复刚才重命令的配置文件名.
  Switch#renflash:config.old flash:config.text
  Destination filename ? 直接回车
  8)用老的配置文件替换当前的配置文件。
  Switch#copyflash:config.text system:running-config
  Destination filename ? 直接回车
  9)修改使用密码。
  Switch#conf t
  switch(config)#enablesecret cisco
  10) 保存密码,完成密码修改。
  switch#wr 或者 copyrunning-config starting-config
  清除交换机配置命令:write erase
  当然也可以使用erase startup-config就可以实现清除了
  reload
页: [1]
查看完整版本: 清除CISCO交换机密码