欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

2021-11-07 (cisco) 初始化和重新加载路由器和交换机

最编程 2024-03-25 11:00:43
...

初始化并重新加载路由器和交换机

第 1 步: 初始化并重新加载路由器。

a. 通过控制台连接到路由器并启用特权 EXEC 模式。

Router#

b. 键入 erase startup-config 命令从 NVRAM 中删除启动配置。

Router# erase startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

Router#

c. 发出 reload 命令,删除内存中的旧配置。 当提示是否 Proceed with reload 时,按 Enter 确认重新加载。

(按其他任意键中止重新加载。)

Router# reload

Proceed with reload? [confirm]

*Nov 29 18:28:09.923: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

注意: 系统可能会提示您在重新加载路由器之前保存运行配置。 键入 no 并按 Enter 键。

System configuration has been modified. Save? [yes/no]: no

d. 重新加载路由器后,系统会提示您进入初始配置对话框。 输入 no 并按 Enter 键。

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

e. 系统将提示您终止自动安装。 键入 yes,然后按 Enter 键。

Would you like to terminate autoinstall? [yes]: yes

第 2 步: 初始化并重新加载交换机。

a. 登录交换机控制台并进入特权 EXEC 模式。

Switch> enable

Switch#

b. 使用 show flash 命令来确定交换机上是否创建了 VLAN。

Switch# show flash

Directory of flash:/

2 -rwx 1919 Mar 1 1993 00:06:33 +00:00 private-config.text

3 -rwx 1632 Mar 1 1993 00:06:33 +00:00 config.text

4 -rwx 13336 Mar 1 1993 00:06:33 +00:00 multiple-fs

5 -rwx 11607161 Mar 1 1993 02:37:06 +00:00 c2960-lanbasek9-mz.150-2.SE.bin

6 -rwx 616 Mar 1 1993 00:07:13 +00:00 vlan.dat

32514048 bytes total (20886528 bytes free)

Switch#

c. 如果在闪存中发现 vlan.dat 文件,请将其删除。

Switch# delete vlan.dat

Delete filename [vlan.dat]?

d. 系统将提示您检验文件名。 此时您可以更改文件名,或者如果文件名输入正确,直接按 Enter 键。

e. 系统将提示您确认删除此文件。 按 Enter 键确认删除。 (按其他任意键中止删除。)

Delete flash:/vlan.dat? [confirm]

Switch#

f. 使用 erase startup-config 命令从 NVRAM 中删除启动配置文件。 系统会提示您确认删除配置文件。 按

Enter 键确认清除此文件。 (按其他任意键中止此操作。)

Switch# erase startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

Switch#

g. 重新加载交换机以删除内存中所有的旧配置信息。 系统将提示您确认重新加载交换机。 按 Enter 键继续重

新加载。 (按其他任意键中止重新加载。)

Switch# reload

Proceed with reload? [confirm]

注意:系统可能会提示您在重新加载交换机之前保存运行配置。 键入 no 并按 Enter 键。

System configuration has been modified. Save? [yes/no]:no

————————————————

版权声明:本文为****博主「Kangvcar Blogs」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.****.net/kangvcar/article/details/51818399