Cisco交換機密碼初始化

1.  連接交換機的console口到終端或PC仿真終端。用無Modem的直連線連接PC的串行口到交換機的console口。

2.  拔掉交換機的電源.

3.  按住交換機上的Mode按鈕,與此同時,重新插上交換機的電源線.當交換機上SYST的LED長期亮的時候,可以鬆開Mode按鈕。

4.  再通過超級終端連接交換機。

5.  交換機有如下顯示:

switch:

:switch: flash_init

初始化flash文件系統

Initializing Flash...

flashfs[0]: 83 files, 4 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 15998976

flashfs[0]: Bytes used: 6472704

flashfs[0]: Bytes available: 9526272

flashfs[0]: flashfs fsck took 8 seconds.

...done Initializing Flash.

Boot Sector Filesystem (bs) installed, fsid: 3

Setting console baud rate to 9600...

switch: rename flash:config.text flash:config.old

更名含有password的配置文件

switch: boot

啓動交換機

Loading "flash:c3750-i9-mz.121-19.EA1d/c3750-i9-mz.121-19.EA1d.bin"...@@@@@@@@@@

。。。。。。。。

--- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: yes

您是否進入初始化配置對話,選Y

At any point you may enter a question mark '?' for help.

Use ctrl-c to abort configuration dialog at any prompt.

Default settings are in square brackets '[]'.

。。。。。

Would you like to enter basic management setup? [yes/no]: yes

您是否進入基本配置安裝,選Y

Configuring global parameters:


Enter host name [Switch]: zcomf10

輸入設備的名字


The enable secret is a password used to protect access to

privileged EXEC and configuration modes. This password, after

entered, becomes encrypted in the configuration.

Enter enable secret: zcom:com

輸入密文

The enable password is used when you do not specify an

enable secret password, with some older software versions, and

some boot p_w_picpaths.

Enter enable password: 12345678

輸入密碼(不能和密文相同)

The virtual terminal password is used to protect

access to the router over a network interface.

Enter virtual terminal password: 87654321

輸入虛擬終端的密碼(以備遠程登錄)

Configure SNMP Network Management? [no]:

詢問是否要設置路由器支持的各種網絡協議:

Current interface summary

。。。。。。。

Enter interface name used to connect to the

management network from the above interface summary: vlan1

鍵入作爲管理接口的接口名


Configuring interface Vlan1:

Configure IP on this interface? [yes]: Y   (對Vlan1進IP配置)

IP address for this interface: 192.168.10.1  (鍵入IP地址)

Subnet mask for this interface [255.255.255.0] :255.255.255.0  (鍵入子網掩碼,或按回車鍵使用默認值)

Class C network is 192.168.10.0, 24 subnet bits; mask is /24

Would you like to enable as a cluster command switch? [yes/no]: no  (n集羣模式?)


The following configuration command script was created:

已建立以下配置信息

hostname zcomf10

enable secret 5 $1$6kZ/$LCWVkp11b1IMVWm8PSVuo0

enable password 12345678

line vty 0 15

password 87654321

no snmp-server

!

no ip routing


!

interface Vlan1

no shutdown

ip address 192.168.10.1 255.255.255.0

!

interface GigabitEthernet1/0/1

!

interface GigabitEthernet1/0/2

!

。。。。。。。。

end

[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.

這裏有一個有趣的地方,那就是你能夠選擇進入命令行接口模式並放棄剛纔的配置(0),你也能夠回頭重新再設置一遍(1),也能夠保存配置到NVRAM中並退出重啓(2)。這裏我選擇的是0,我們將不保存剛纔的配置並進入命令行接口模式(CLI)。接下來我們將介紹CLI。再重複一次,你可以在任何時候按下 Ctrl+C來退出安裝模式。

Enter your selection [2]: 2

Building configuration...

[OK]

Use the enabled mode 'configure' command to modify this configuration.


zcomf10>en

進入特權模式“en”或“enable”一樣

Password:

zcomf10#copy run

zcomf10#copy running-config star

zcomf10#copy running-config startup-config  (退出,並保存到startup-config文件裏:)

Destination filename [startup-config]?

Building configuration...

[OK]

zcomf10#reload     (完成重啓)

Proceed with reload? [confirm]


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章