Сброс настроек маршрутизатора команда

Reset Router to Factory Defaults

The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.

Contents

Introduction

This document describes how to restore a Cisco® router to its original factory default settings .

Prerequisites

Requirements

In order to perform the procedures described in this document, you must have enable (also known as privileged EXEC) access on the router.

Components Used

This document is not restricted to specific software and hardware versions.

The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, ensure that you understand the potential impact of any command.

Conventions

For more information on document conventions, refer to theCisco Technical Tips Conventions.

Instructions to Reset a Cisco Router Back to Factory Defaults

There are two main methods to return a Cisco router to its original factory defaults. These two methods are described next.

Note: To view any information on the commands in this article refer to the Cisco IOS Configuration Fundamentals Command Reference.

Method 1

This method uses theconfig-register 0x2102 command in global configuration mode.

  1. Issue the show version command to check the configuration register on the router.

The configuration register setting is displayed in the last line of the show version command output and must be set to 0x2102.

Router#show version Cisco IOS Software, VG3X0 Software (VG3X0-UNIVERSALK9-M), Version 15.4(3)M3, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Fri 05-Jun-15 17:29 by prod_rel_team ROM: System Bootstrap, Version 15.4(3r)M1a, RELEASE SOFTWARE (fc1) Router uptime is 1 day, 14 hours, 14 minutes System returned to ROM by power-on System image file is "flash0:vg3x0-universalk9-mz.SPA.154-3.M3.bin" Last reload type: Normal Reload Last reload reason: power-on This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco VG320 (revision 1.0) with 1003520K/45056K bytes of memory. Processor board ID FGL2023103U 2 Gigabit Ethernet interfaces 1 Virtual Private Network (VPN) Module DRAM configuration is 32 bits wide with parity enabled. 255K bytes of non-volatile configuration memory. 255488K bytes of ATA System CompactFlash 0 (Read/Write) License Info: License UDI: ------------------------------------------------- Device# PID SN ------------------------------------------------- *0 VG320 FGL2023103U Technology Package License Information for Module:'vg3x0' ------------------------------------------------------------------------ Technology Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------------ ipbase ipbasek9 None ipbasek9 security securityk9 RightToUse securityk9 uc None None None data datak9 RightToUse datak9 NtwkEss None None None CollabPro None None None Configuration register is 0x2102

If this is not the case, enter the config-register 0x2102 command once in global configuration mode.

Router#configure terminal Router(config)#config-register 0x2102 Router(config)#end Router#

If the show version command is issued again, the same line in the command output can have (0x2102 at next reload) appended to the current register setting.

Читайте также:  От чего работает вай фай роутер билайн

2. Erase the current start-up configuration on the router with thewrite erase c ommand.

3. Reload the router with the reload command. When prompted to save the configuration, DO NOT save .

Router#reload System configuration has been modified. Save? [yes/no]: n 
Proceed with reload? [confirm]

Once the router reloads, the System Configuration Dialog appears.

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

The router is now reset to the original factory defaults.

Method 2

This method uses the config-register 0x2142 command in global configuration mode.

    Enter the config-register 0x2142 command in global configuration mode.

Router(config)#config-register 0x2142 

This causes the router to ignore the start-up configuration on the next reload. If you run a show version again, it has (0x2142 at next reload) appended to the current configuration register setting .

Router#show version Cisco IOS Software, VG3X0 Software (VG3X0-UNIVERSALK9-M), Version 15.4(3)M3, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2015 by Cisco Systems, Inc. Compiled Fri 05-Jun-15 17:29 by prod_rel_team ROM: System Bootstrap, Version 15.4(3r)M1a, RELEASE SOFTWARE (fc1) Router uptime is 1 day, 14 hours, 19 minutes System returned to ROM by power-on System image file is "flash0:vg3x0-universalk9-mz.SPA.154-3.M3.bin" Last reload type: Normal Reload Last reload reason: power-on This product contains cryptographic features and is subject to United States and local country laws governing import, export, transfer and use. Delivery of Cisco cryptographic products does not imply third-party authority to import, export, distribute or use encryption. Importers, exporters, distributors and users are responsible for compliance with U.S. and local country laws. By using this product you agree to comply with applicable laws and regulations. If you are unable to comply with U.S. and local laws, return this product immediately. A summary of U.S. laws governing Cisco cryptographic products may be found at: http://www.cisco.com/wwl/export/crypto/tool/stqrg.html If you require further assistance please contact us by sending email to export@cisco.com. Cisco VG320 (revision 1.0) with 1003520K/45056K bytes of memory. Processor board ID FGL2023103U 2 Gigabit Ethernet interfaces 1 Virtual Private Network (VPN) Module DRAM configuration is 32 bits wide with parity enabled. 255K bytes of non-volatile configuration memory. 255488K bytes of ATA System CompactFlash 0 (Read/Write) License Info: License UDI: ------------------------------------------------- Device# PID SN ------------------------------------------------- *0 VG320 FGL2023103U Technology Package License Information for Module:'vg3x0' ------------------------------------------------------------------------ Technology Technology-package Technology-package Current Type Next reboot ------------------------------------------------------------------------ ipbase ipbasek9 None ipbasek9 security securityk9 RightToUse securityk9 uc None None None data datak9 RightToUse datak9 NtwkEss None None None CollabPro None None None Configuration register is 0x2102 (will be 0x2142 at next reload)
Router#reload System configuration has been modified. Save? [yes/no]: n 
Proceed with reload? [confirm]

After the router has reloaded, the System Configuration Dialog appears.

  1. Enter noto the question: Would you like to enter initial configuration dialog?
  2. Change the configuration register setting to 0x2102 with the config-register 0x2102 command, entered once in global configuration mode.
  3. Issue the write memory command in enable mode to overwrite the current start-up configuration with the configuration that currently runs.
  4. Reload the router with the reload command in enable mode.
  5. Once the router reloads, the System configuration Dialog appears.
--- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]:

Note: The next configurations are stored in ROMMON and the write erase and/orconfig-register 0x2142 commands cannot reset them to the factory default settings .

Verification

This section provides information you can use to verify that your router has been returned to the factory defaults.

Note: Internal and bug information is only accessible to registered Cisco clients.

  • show running-config — Use this command to verify that the previous configuration that the router ran has been erased. The output must result in a skeleton configuration. For example, there must be no IP addresses or descriptions configured under any interface on the router, no hostname or settings particular to your environment.
  • show version — Use this command to verify that the configuration register is set to the default value of 0x2102.

Источник

Настройка оборудования

Блог о модемах, роутерах и GPON терминалах Ростелеком

Настройка оборудования

Сброс настроек Cisco

Сброс настроек маршрутизатора/коммутатора Cisco — само по себе дело относительно редкое, даже у администраторов с большим количеством сетевого оборудования.

Но все мы люди и бывает всякое — забыт пароль, залит не тот конфиг или просто нужно сбросить конфигурацию маршрутизатора. В этой статье я приведу два известных мне способа сброса конфигурации.

Вариант первый — он же самый простейший и используется всегда, когда нет проблем с доступом к консоли управления. Итак, подключаемся консольным кабелем к маршрутизатору, входим в режим Enable и набираем команду:

Собственно теперь остаётся перезагрузить маршрутизатор командой Reload. После перезагрузки конфигурация будет полностью чистой.

Вариант второй — подходит в том случае, если вы забыли пароль либо маршрутизатор по какой-либо причине не даёт вам доступа к своей конфигурации. Например, у меня была проблема с cisco 3745 — она не загружала сохраненную конфигурацию и не давала её исправить, выдавая authentication failed без запроса пароля при попытке войти даже через консоль. Последовательность действий следующая:

— шаг первый — подключаемся к консольному порту.
— шаг второй — выключаем и включаем маршрутизатор.
— шаг третий — ждем 60 секунд с момента включения питания и нажимаем Break или Ctrl-Break. На самом деле нажимать можно уже через 25-30 секунд. Так же хочу отметить, что если вы используете не стандартный гипертерминал Windows, а какой-либо иной терминальный клиент, то комбинация клавиш может быть иной. Например, в TerraTerm, через который я подключался, это комбинация — Alt-b.
— шаг четвёртый — мы вошли в режим ROMMON. Набираем команду confreg 0x2142.

Этой командой мы устанавливаем значение конфигурационного регистра 0х2142 — это позволит маршрутизатору игнорировать сохраненную конфигурацию. Нажимаем Enter.
— шаг пятый — перезагружаем маршрутизатор Cisco командой reset.

После перезагрузки конфигурация будет совершенно чистая и система выведет начальный запрос о диалоге конфигурации.

Источник

Оцените статью
Adblock
detector