So, I bought another router off of Ebay. A week later, I had to pick it up at the local USPS from where I live. When I got home, I started the router to test it, and I was prompted with a Username and Password. I was like “damn it”.
Anyways, I had to bypass the password, so that I can log into the router. Bypassing the router’s password is pretty easy. First, you have to reset the router; and when the router boots up, send a break sequence. You will send the break sequence when the router started to uncompress the ios. This is where you will see a series of # signs. After you send the break, you should be at the Rom Monitor mode. The prompt should look like this:
rommon 1 >
From here type in confreg 0x2142 this command will skip the startup configuration of the router. Then you will get a prompt to reset the router:
rommon 1 > confreg 0x2142 You must reset or power cycle for new config to take effect rommon 2 > reset
The router should boot up normally (From here you can check the startup configuration using the show startup-config and make some changes. )
In my case, I had to delete the the startup config, so I deleted it. Now, you have to change back the configuration register to 0x2102:
Router# Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#config-register 0x2102 Router(config)#
Then save the new configuration to NVRAM.
Router(config)#exit Router#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router#
Then reload the router. Once the router boots up again, you should not get the username and password prompt.
Now, uploading the router’s ios in rommon mode from scratch. You will do this if the router does not have an IP address. Okay, so back to Rom Monitor mode, we need to give the router an IP Address, Subnet mask, Default Gateway, the IP Address of the TFTP server and the IOS filename. The TFTP server can be your PC and make sure that you have a TFTP application running. I use the tftpd32 http://tftpd32.jounin.net/.
Also, the PC and the router got to be in the same network or subnet.
rommon 1 > IP_ADDRESS=192.168.1.35 rommon 2 > IP_SUBNET_MASK=255.255.255.0 rommon 3 > DEFAULT_GATEWAY=192.168.1.1 rommon 4 > TFTP_SERVER=192.168.1.8 rommon 5 > TFTP_FILE=c2600-is-mz.123-26.bin rommon 6 > tftpdnld IP_ADDRESS: 192.168.1.35 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 192.168.1.1 TFTP_SERVER: 192.168.1.8 TFTP_FILE: c2600-is-mz.123-26.bin Invoke this command for disaster recovery only. WARNING: all existing data in all partitions on flash will be lost! Do you wish to continue? y/n: [n]: y
If everything goes well, the router should start downloading the ios from the tftp server (your PC). You know this because you will see a series of ! signs. Once its done, use the command reset and that should boot the new ios.