Home > Archive > CCNA > February 2003 > Out of curiosity





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Out of curiosity
Sexy Lexy

2003-02-19, 4:20 pm

If I wanted to reset the router to “As new” would I have to issue a write erase or erase startup-config then issue a reload or is there another way to start the router from the very beginning?

Imran4sin

2003-02-19, 6:14 pm

well u could do the erase startup-config cmd, that should work.. reload it to get in the setup mode.. u could then use the dialog setup or cli.

hmm... dont really know of any other way
darthfeces

2003-02-19, 6:36 pm

you can issue setup on a running router

write erase --- setup

you'll still have a running config though ....

hmmmmm
write erase -
copy start run
run setup or config from scratch
seantx

2003-02-20, 6:44 am

erase startup
confirm
reload

Pretty much gets you back to sqauare one.
gcw123

2003-02-20, 6:49 am

The steps is almost the same as password recovery steps. Follow the steps below and skip step 7. This steps is for 2500 and 4000 series router only .

Step 1 Power cycle the router.
Step 2 Send a "break" command to the router within the first 60 seconds after power cycle. The break command will vary depending on the terminal emulation package used. For Windows Hyperterminal, the break command is sent by holding the <CTRL> key down and pressing the <BREAK> key. After sending a successful break character, the router will be in ROM monitor mode as indicated by the angle bracket (> ) prompt.
height=28 border=0 alt="Break Sequences">Other possible break keys
Step 3 From the ROM monitor prompt, set the configuration register value to 0x142. This causes the router to bypass the configuration contents stored in NVRAM upon next bootup. To do this, type:

> o/r 0x142
Step 4 Once the configuration register has been changed, initialize and reboot the router by typing the following:

> i

The router will reboot itself.
Step 5 After the router boots up, you will be prompted if you want to enter the initial configuration dialog. Type "n" for no.

Note: If you accidentally enter the initial configuration dialog, abort by typing: <CTRL-C>.
Step 6 Enter privileged EXEC mode by typing the enable command. No password will be required. The prompt will change to Router(boot)#.

Router> enable
Router#
Step 7 Load the original configuration back into the router. There are two equivalent ways of doing this depending on the software version you are running.


Router# copy startup-config running-config
For IOS Releases 11.0 and above

OR

Router# config mem
For IOS Releases prior to 11.0

Note: If the router has originally been configured with a hostname, the prompt will now change to router_name#

Step 8 Set the new enable password.

Router# config term
Router(config)# enable secret <new_password>
Step 9 Restore the configuration register and exit configuration mode. The configuration register must be reset so the router will properly boot using the configuration now stored in NVRAM.

Router(config)# config-reg 0x2102
Router(config)# end
Step 10 Save changes


Router# copy running-config startup-config
For IOS Releases 11.0 and above

OR
Router# write memory
For IOS Releases prior to 11.0



Step 11 Reload the router

Router# reload
darthfeces

2003-02-20, 9:27 am

i thought he was asking how to do without a reload ?
ZacDogg

2003-02-21, 3:11 pm

I am not aware of how to do this without a reload. The problem is when you erase your startup-config and then try to "copy star run" it is actually merging the start-up with the running-config, not overwritting it, thus leaving you with the running-config the way it originally was.

Hope that makes sense.

Zac
Sexy Lexy

2003-02-21, 3:40 pm

I'm not bothered about issuing a reload.

What I am interested in is resetting the router so that I can start from scratch with no configuration at all, only the IOS.

The few methods I have tried (And those mentioned above) don't appear to completely remove existing settings.

Just curious if it can be done, there must be a way.

ZacDogg

2003-02-21, 4:55 pm

erase star
reload

That will do the trick. I've done it tons of times in a lab environment.

Zac
gcw123

2003-02-21, 9:52 pm

what model of router you are using, because different router, the method might be different.
Sexy Lexy

2003-02-22, 4:49 am

2503 running 12.2 IOS.

Every time I erase startup-config and re-load it goes through setup and manages to find the old settings!

Just strange really.

So I want to be able to start from scratch.

Thanks.

ZacDogg

2003-02-22, 7:43 am

Hmm. That is odd. I've used erase star, reload with many different versions of code and many different model numbers.
ZacDogg

2003-02-22, 7:45 am

One last thing I thought of. When you issue the reload you are answering NO to the question. "The configuration has changed. Would you like to save it." Right?
Sexy Lexy

2003-02-22, 7:55 am

Yes,

I have:

Erased the startup-config.
issued Write erase.

And I always select No when I get a configuration has changed prompt.

I think it might be a config-resister boot problem but I'm not sure (0x2104) but I keep getting this error as well.

%Error opening tftp://255.255.255.255/network-confg (Timed out)
%Error opening tftp://255.255.255.255/cisconet.cfg (Timed out)
%Error opening tftp://255.255.255.255/router01-confg (Timed out)
%Error opening tftp://255.255.255.255/router01.cfg (Timed out)

Just thought I'd make things a little more interesting!

darthfeces

2003-02-22, 8:59 am

no service config
ZacDogg

2003-02-22, 9:03 am

As your probably aware 0x2102 is the default config-register, but anything from 0x2102-0x210F will cause the router to boot normally.

After you "erase star", do a "show start" and verify that it is back to the default blank config. If it doesn't come back without a config after the reload, I'm at a loss.

Zac
darthfeces

2003-02-22, 9:05 am

those messages are caused by the service "config" which looks to autoboot or auto install ?
those default file names from tftp

disable it.
darthfeces

2003-02-22, 9:09 am

more info

TFTP and Auto Install Problem
If you start up a router and you see the following TFTP commands.

%Error opening tftp://255.255.255.255/network-confg (Timed out)

%Error opening tftp://255.255.255.255/cisconet.cfg (Timed out)

%Error opening tftp://255.255.255.255/lab-f-confg (Timed out)

%Error opening tftp://255.255.255.255/lab-f.cfg (Timed out)

This a Cisco IOS feature where you would get your configuration from a file at the above places. We do not have any of these places and find that this feature is time consuming and a problem. The following is the procedure for getting rid of this Auto Install feature.

When you get to a command prompt type the following

Router#config t

Router(config)#no service config

The no service config will stop the router from periodically looking for the TFTP site while you are programming the router but you will still get the above every time you restart the router.
Mat P

2003-02-22, 9:12 am

quote:
Originally posted by Sexy Lexy

The few methods I have tried (And those mentioned above) don't appear to completely remove existing settings.



Those existing settings may be the default settings??

Do an erase start, reload, no save config and post it all here (and your conf reg settings)
Sexy Lexy

2003-02-22, 2:22 pm

Thanks Darth, it just goes to show that there is nothing like experience.

It turns out that there was an old entry in DNS that had the same IP address as the router so the hostname of the router was taking the NetBIOS name of the client!

Next time I will configure the router before I attach it to the network.

Thanks to everyone for the response, it has helped with a few problems.

I've been using routers for a while now but I have very rarely had to configure one from scratch as like most others you tend to support an existing system.

Thanks again for all your help.

Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net