cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3069
Views
7
Helpful
8
Replies

Clearing config on a 2621 router

internetdeity
Level 1
Level 1

I would like to completely reset the config on a 2621 router back to factory defaults and re-program from scratch. Is there any easy way to do this? Thanks in advance!

1 Accepted Solution

Accepted Solutions

HI,

It's glad to hear it worked for you.

DO RATE ALL HELPFUL Replies ! !

Best Regards,

Guru Prasad R

View solution in original post

8 Replies 8

spremkumar
Level 9
Level 9

Hi

Try executing wr erase command and dont save the config before restarting.

Also you can try config-register 0x2142 and save the config.

Once you are done with saving reset the router it will come back to factory default.

once its fully up change the config back to 0x2102 and save the config.

Reset the box again its up with factory defaults..

regds

Hi there, thanks for the reply! I am new to this and trying to learn on my router. Would you be able to provide more details on the process? Basically, I am trying to remove the NAT config which is set. See below...

!

ip nat inside source static 207.162.233.135 192.168.111.50

ip nat inside source static 207.162.233.177 192.168.111.51

ip nat inside source static 207.162.233.170 192.168.111.34

ip nat inside source static 207.162.233.162 192.168.111.31

ip classless

no ip http server

!

CISCO#sh ip nat translations

Pro Inside global Inside local Outside local Outside global

--- 192.168.111.31 207.162.233.162 --- ---

--- 192.168.111.34 207.162.233.170 --- ---

--- 192.168.111.50 207.162.233.135 --- ---

--- 192.168.111.51 207.162.233.177 --- ---

CISCO#

any thoughts? Thanks!

Hi

Clear the nat translations first and then try removing the ip nat entries..

Use the below command to clear the nat translations..

clear ip nat translation *

Once you are done with that use no command attached to ip nat commands to remove the nat translation commands from the config..

no ip nat inside source static 207.162.233.135 192.168.111.50

no ip nat inside source static 207.162.233.177 192.168.111.51

no ip nat inside source static 207.162.233.170 192.168.111.34

no ip nat inside source static 207.162.233.162 192.168.111.31

regds

Hello again, I think I need a little bit more detail regarding the clear ip nat command. This is what I see...

CISCO#config t

Enter configuration commands, one per line. End with CNTL/Z.

CISCO(config)#clear ip nat translations

^

% Invalid input detected at '^' marker.

CISCO(config)#

Thanks again for the help!

HI, [Pls Rate if HELPS]

You are executing the Command in a wrong Location. You need to execute the command in EXEC Mode:

Execute as:

---------------

Router#clear ip nat translations

Try this. PLS RATE if HELPS

Best Regards,

Guru Prasad R

ah yes... it looks like I managed to clear the static NAT entries! Thanks again for all the guidance! Your patience is truly appreciated!

HI,

It's glad to hear it worked for you.

DO RATE ALL HELPFUL Replies ! !

Best Regards,

Guru Prasad R

HI, [PLS RATE if HELPS]

Instructions to Reset a Cisco Router Back to Factory Defaults:

Method 1:

------------

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

Check the configuration register on the router by issuing the show version command. The configuration register setting is displayed in the last line of the show version command output, and should be set to 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

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

Erase the current start-up configuration on the router with the write erase command.

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 user will be presented with a 'System Configuration Dialog' as shown below. The router is now reset back to the original factory defaults.

--- System Configuration Dialog ---

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

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 a show version is issued, the last line in the command output will have '(will be 0x2142 at next reload)' appended to the current configuration register setting.

Reload the router using the reload command in enable mode. It is not necessary to save when prompted to save the system configuration.

router#reload

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

Proceed with reload? [confirm]

After the router has reloaded, the user will be presented with the 'System Configuration Dialog'. Enter no to the question 'Would you like to enter initial configuration dialog?'

Change the configuration register setting to 0x2102 by entering the config-register 0x2102 command once in global configuration mode.

Issue the write memory command in enable mode to overwrite the existing start-up configuration with the current running configuration.

Reload the router with the reload command in enable mode.

Once the router reloads, the user will be presented again with a 'System configuration Dialog' as shown below. The router is now reset back to the original factory defaults.

--- System Configuration Dialog ---

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

PLS RATE if HELPS

Best Regards,

Guru Prasad R

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco