现在思科的网络设备应用非常广泛,有些用户会遇到网络设备密码遗忘的问题。当密码遗忘时,我们可以根据思科的标准方法进行密码恢复操作,但是如果身在异地,密码恢复工作将非常困难。下面介绍一种方法,在远程帮助用户进行网络设备的密码恢复。
软硬件前提:
l Any Cisco device running Cisco IOS software release 12.0 and later. Check the support-list of the devices to ensure support of the CISCO-CONFIG-COPY-MIB.
l SNMPWalk from HP OpenView (HPOV) Network Node Manager, installed on a Windows 2000 platform.
首
先要在网络设备上配置简单网络管理协议[Simple Network Management Protocol (SNMP)]的读写通信字[read
-write (RW) community string]。这样,当设备的密码遗忘时,我们就可以在远程通过简单网络管理协议对设备进行密码的恢复工
作。下面是这种方法的实施步骤:
1 在网管设备上配置copy模式 (1. – TFTP; 3. – RCP)
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.2.83119 i 1
2 配置源配置文件的拷贝方式,如通过网络拷贝,或通过NVRAM等 (1. – Network; 3. – Startup-config; 4. – Running-Config)
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.3.83119 i 4
3 配置目标配置文件的拷贝方式,(1. – Network; 3. – Startup-config; 4. – Running-Config)
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.4.83119 i 1
4 配置TFTP服务器的IP地址
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.5.83119 a TFTP-SRV-ipAddress
5 配置保存网络设备配置的文件的文件名
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.6.83119 s “MydeviceConfig.txt”
6 配置create and go命令
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.14.83119 i 1
好了,现在我们修改在MydeviceConfig.txt文件中的密码并且按下面的步骤运行:
1 配置源配置文件的拷贝方式(1. – Network; 3. – Startup-config; 4. – Running-config):
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.3.83119 i 1
2 配置目标配置文件的拷贝方式(1. – Network; 3. – Startup-config; 4. – Running-config):
snmpset ipAddress RW-Community .1.3.6.1.4.1.9.9.96.1.1.1.1.4.83119 i 4
此时要注意:当修改和上传配置文件到网络设备时,记住目标配置文件是Running-config。所以必须进入到设备后,再次修改密码,然后将修改后的密码保存到Startup-config中。
阅读(4890) | 评论(0) | 转发(0) |