Cisco路由器配置信息及口令的清除.docx

上传人:b****4 文档编号:27073662 上传时间:2023-06-26 格式:DOCX 页数:10 大小:17.40KB
下载 相关 举报
Cisco路由器配置信息及口令的清除.docx_第1页
第1页 / 共10页
Cisco路由器配置信息及口令的清除.docx_第2页
第2页 / 共10页
Cisco路由器配置信息及口令的清除.docx_第3页
第3页 / 共10页
Cisco路由器配置信息及口令的清除.docx_第4页
第4页 / 共10页
Cisco路由器配置信息及口令的清除.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

Cisco路由器配置信息及口令的清除.docx

《Cisco路由器配置信息及口令的清除.docx》由会员分享,可在线阅读,更多相关《Cisco路由器配置信息及口令的清除.docx(10页珍藏版)》请在冰豆网上搜索。

Cisco路由器配置信息及口令的清除.docx

Cisco路由器配置信息及口令的清除

Cisco路由器配置信息及口令的清除

在网络日常管理与维护的工作中,你是否遇到过这种现象:

由于忘记了口令,你被原来亲切的“朋友”——路由器或交换机强行拒于门外,无法进行参数的重新设置、信息统计。

下面就针对几种常见而重要的网络设备的口令清除方法谈谈本人的一点“小窍门”。

适用范围:

所有IOS在10.0及以上版本的Cisc

清除步骤如下:

1.用路由器所带的串口线连接到Console口,以下通过Win95的超级终端进行;

2.路由器加电后60秒内,按下CTRL(如果不行按CTRL-BREAK)键,等待出现“〉”提示符;3.键入“〉e/s2000002”命令,并记录下返回值,用在后面“Router(config)#config-register0x2102”命令中;(通常返回值是2102)

4.在“〉”符号后键入“o/r0x42”;

5.键入“i”,路由器将重新初始化,对于出现的提示问题,回答No;

6.键入“Enable”(没有口令,按回车即可);

7.改变口令(无论是否加密):

a.输入“configmem”或“copystartup-configmem”;

b.输入“write”;

c.输入“configterm”并输入“enablesecret〈password〉”和“enablepassword〈password〉”,改变口令;

8.去掉用户提示及口令:

a.进入虚拟行配置模式,输入“linevty04”;

b.输入“password〈password〉”,改变口令;

c.输入“login”(可以去掉用户提示,原来是loginlocal);

9.完成后按Ctrl-z结束;

10.输入“write”保存所做的改变;

11.进入特权配置模式,键入“config-register0x2102”(注意,必须完成此步);

12.Write保存配置信息;

13.退出配置模式,Reload完成重新启动路由器即可。

说明:

o/r0x42是从Flash中引导路由器,如果不成功,可采用o/r0x41从ROM中引导路由器,其余操作与o/r0x42相同,但是最好只在Flash引导不成功或Flash内容被删除、没有Flash情况下才用。

使用0x41只能查看或删除配置信息而不能更改口令。

o2000、2500、3000、4000、7000系列路由器。

ExampleofPasswordRecoveryonaCisco2600

ThefollowingexampleshowspasswordrecoveryonaCisco2600.Router>en

Password:

Password:

Password:

%Badsecrets

Router>shver

CiscoInternetworkOperatingSystemSoftware

IOS(tm)C2600Software(C2600-IS-M),Version12.0(7)T,RELEASESOFTWARE(fc2)

Copyright(c)1986-1999byciscoSystems,Inc.

CompiledTue07-Dec-9902:

21byphanguye

Imagetext-base:

0x80008088,data-base:

0x80C524F8

ROM:

SystemBootstrap,Version11.3

(2)XA4,RELEASESOFTWARE(fc1)Routeruptimeis3minutes

SystemreturnedtoROMbyabortatPC0x802D0B60

Systemimagefileis"flash:

c2600-is-mz.120-7.T"

cisco2611(MPC860)processor(revision0x202)with26624K/6144Kbytesofmemory.

ProcessorboardIDJAB031202NK(3878188963)

M860processor:

partnumber0,mask49

Bridgingsoftware.

X.25software,Version3.0.0.

BasicRateISDNsoftware,Version1.1.

2Ethernet/IEEE802.3interface(s)

2Serial(sync/async)networkinterface(s)

1ISDNBasicRateinterface(s)

32Kbytesofnon-volatileconfigurationmemory.

--More--8192KbytesofprocessorboardSystemflashpartition1(Read/Write)

8192KbytesofprocessorboardSystemflashpartition2(Read/Write)

Configurationregisteris0x2102

Router>

!

---Therouterwasjustpowercycledandduringbootupa!

---breaksequencewassenttotherouter.

!

***SystemreceivedanabortduetoBreakKey***

signal=0x3,code=0x500,context=0x813ac158

PC=0x802d0b60,Vector=0x500,SP=0x80006030

rommon1>confreg0x2142

Youmustresetorpowercyclefornewconfigtotakeeffectrommon2>reset

SystemBootstrap,Version11.3

(2)XA4,RELEASESOFTWARE(fc1)Copyright(c)1999byciscoSystems,Inc.

TAC:

Home:

SW:

IOS:

Specialsforinfo

C2600platformwith32768Kbytesofmainmemory

programloadcomplete,entrypoint:

0x80008000,size:

0x6fdb4cSelfdecompressingtheimage:

#############################################################################################

##############################################################

##############################################################

###############################[OK]

RestrictedRightsLegend

Use,duplication,ordisclosurebytheGovernmentis

subjecttorestrictionsassetforthinsubparagraph

(c)oftheCommercialComputerSoftware-Restricted

RightsclauseatFARsec.52.227-19andsubparagraph

(c)

(1)(ii)oftheRightsinTechnicalDataandComputerSoftwareclauseatDFARSsec.252.227-7013.

ciscoSystems,Inc.

170WestTasmanDrive

SanJose,California95134-1706

CiscoInternetworkOperatingSystemSoftware

IOS(tm)C2600Software(C2600-IS-M),Version12.0(7)T,RELEASESOFTWARE(fc2)

Copyright(c)1986-1999byciscoSystems,Inc.

CompiledTue07-Dec-9902:

21byphanguye

Imagetext-base:

0x80008088,data-base:

0x80C524F8

cisco2611(MPC860)processor(revision0x202)with26624K/6144Kbytesofmemory.

ProcessorboardIDJAB031202NK(3878188963)

M860processor:

partnumber0,mask49

Bridgingsoftware.

X.25software,Version3.0.0.

BasicRateISDNsoftware,Version1.1.

2Ethernet/IEEE802.3interface(s)

2Serial(sync/async)networkinterface(s)

1ISDNBasicRateinterface(s)

32Kbytesofnon-volatileconfigurationmemory.

8192KbytesofprocessorboardSystemflashpartition1(Read/Write)

8192KbytesofprocessorboardSystemflashpartition2(Read/Write)

---SystemConfigurationDialog---

Wouldyouliketoentertheinitialconfigurationdialog?

[yes/no]:

n

PressRETURNtogetstarted!

00:

00:

19:

%LINK-3-UPDOWN:

InterfaceBRI0/0,changedstatetoup00:

00:

19:

%LINK-3-UPDOWN:

InterfaceEthernet0/0,changedstatetoup

00:

00:

19:

%LINK-3-UPDOWN:

InterfaceEthernet0/1,changedstatetoup

00:

00:

19:

%LINK-3-UPDOWN:

InterfaceSerial0/0,changedstatetodown

00:

00:

19:

%LINK-3-UPDOWN:

InterfaceSerial0/1,changedstatetodown

00:

00:

20:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceBRI0/0,changedstatetodown

00:

00:

20:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceEthernet0/0,changedstatetoup

Router>

00:

00:

20:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceEthernet0/1,changedstatetoup

00:

00:

20:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/0,changedstatetodown

00:

00:

20:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/1,changedstatetodown

00:

00:

50:

%SYS-5-RESTART:

Systemrestarted--

CiscoInternetworkOperatingSystemSoftware

IOS(tm)C2600Software(C2600-IS-M),Version12.0(7)T,RELEASESOFTWARE(fc2)

Copyright(c)1986-1999byciscoSystems,Inc.

CompiledTue07-Dec-9902:

21byphanguye

00:

00:

50:

%LINK-5-CHANGED:

InterfaceBRI0/0,changedstatetoadministrativelydown

00:

00:

52:

%LINK-5-CHANGED:

InterfaceEthernet0/0,changedstatetoadministrativelydown

00:

00:

52:

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetoadministrativelydown

00:

00:

52:

%LINK-5-CHANGED:

InterfaceEthernet0/1,changedstatetoadministrativelydown

00:

00:

52:

%LINK-5-CHANGED:

InterfaceSerial0/1,changedstatetoadministrativelydown

00:

00:

53:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceEthernet0/0,changedstatetodown

00:

00:

53:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceEthernet0/1,changedstatetodown

Router>

Router>en

Router#copystartrun

Destinationfilename[running-config]?

1324bytescopiedin2.35secs(662bytes/sec)

Router#

00:

01:

24:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceBRI0/0:

1,changedstatetodown

00:

01:

24:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceBRI0/0:

2,changedstatetodown

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#enablesecretcisco

Router(config)#^Z

00:

01:

54:

%SYS-5-CONFIG_I:

ConfiguredfromconsolebyconsoleRouter#shipintbrief

InterfaceIP-AddressOK?

MethodStatusProtocol

Ethernet0/010.200.40.37YESTFTPadministrativelydowndown

Serial0/0unassignedYESTFTPadministrativelydowndown

BRI0/0193.251.121.157YESunsetadministrativelydowndown

BRI0/0:

1unassignedYESunsetadministrativelydowndown

BRI0/0:

2unassignedYESunsetadministrativelydowndown

Ethernet0/1unassignedYESTFTPadministrativelydowndown

Serial0/1unassignedYESTFTPadministrativelydowndown

Loopback0193.251.121.157YESTFTPupup

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#intEthernet0/0

Router(config-if)#noshut

Router(config-if)#

00:

02:

14:

%LINK-3-UPDOWN:

InterfaceEthernet0/0,changedstatetoup

00:

02:

15:

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceEthernet0/0,changedstatetoup

Router(config-if)#intBRI0/0

Router(config-if)#noshut

Router(config-if)#

00:

02:

26:

%LINK-3-UPDOWN:

InterfaceBRI0/0:

1,changedstatetodown

00:

02:

26:

%LINK-3-UPDOWN:

InterfaceBRI0/0:

2,changedstatetodown

00:

02:

26:

%LINK-3-UPDOWN:

InterfaceBRI0/0,changedstatetoup00:

02:

115964116991:

%ISDN-6-LAYER2UP:

Layer2forInterfaceBR0/0,TEI68changedtoup

Router(config-if)#^Z

Router#

00:

02:

35:

%SYS-5-CONFIG_I:

ConfiguredfromconsolebyconsoleRouter#copyrunstart

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

Router#shver

CiscoInternetworkOperatingSystemSoftware

IOS(tm)C2600Software(C2600-IS-M),Version12.0(7)T,RELEASESOFTWARE(fc2)

Copyright(c)1986-1999byciscoSystems,Inc.

CompiledTue07-Dec-9902:

21byphanguye

Imagetext-base:

0x80008088,data-base:

0x80C524F8

ROM:

SystemBootstrap,Version11.3

(2)XA4,RELEASESOFTWARE(fc1)Routeruptimeis3minutes

SystemreturnedtoROMbyabortatPC0x802D0B60

Systemimagefileis"flash:

c2600-is-mz.120-7.T"

cisco2611(MPC860)processor(revision0x202)with26624K/6144Kbytesofmemory.

ProcessorboardIDJAB031202NK(3878188963)

M860processor:

partnumber0,mask49

Bridgingsoftware.

X.25software,Version3.0.0.

BasicRateISDNsoftware,Version1.1.

2Ethernet/IEEE802.3interface(s)

2Serial(sync/async)networkinterface(s)

1ISDNBasicRateinterface(s)

32Kbytesofnon-volatileconfigurationmemory.

--More--8192KbytesofprocessorboardSystemflashpartition1(Read/Write)

8192KbytesofprocessorboardSystemflashpartition2(Read/Write)

Configurationregisteris0x2142

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#config-reg0x2102

Router(config)#^Z

00:

03:

20:

%SYS-5-CONFIG_I:

ConfiguredfromconsolebyconsoleRouter#shver

CiscoInternetworkOperatingSystemSoftware

IOS(tm)C2600Software(C2600-IS-M),Version12.0(7)T,RELEASESOFTWARE(fc2)

Copyright(c)1986-1999byciscoSystems,Inc.

CompiledTue07-Dec-9902:

21byphanguye

Imagetext-base:

0x80008088,data-base:

0x80C524F8

ROM:

SystemBootstrap,Version11.3

(2)XA4,RELEASESOFTWARE(fc1)Routeruptimeis3minutes

SystemreturnedtoROMbyabortatPC0x802D0B60

Systemimagefileis"flash:

c2600-is-mz.120-7.T"

cisco2611(MPC860)processor(revision0x202)with26624K/6144Kbytesofmemory.

ProcessorboardIDJAB031202NK(3878188963)

M860processor:

partnumber0,mask49

Bridgingsoftware.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 预防医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1