CISCO NETWORKING ACADEMY Chabot College ELEC 99.08 Password Recovery.

Slides:



Advertisements
Similar presentations
Router Configuration PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
Advertisements

Managing Cisco IOS Software. Overview The router boot sequence Locating IOS software The configuration register Recovering Passwords Backing Up the Cisco.
1 Passwords and Banners Cisco Devices Packet Tracer.
Chabot College ELEC IOS Images.
Cisco Router. Overview Understanding and configuring the Cisco Internetwork Operating System (IOS) Connecting to a router Bringing up a router Logging.
Introduction to the Cisco IOS
Are you tired...? frustrated...? confused...? ’Cause PASSWORD won’t work!#&(*!!!
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
CCNA 2 v3.1 Module 2.
Chapter 9 Managing a Cisco Internetwork Cisco Router Components Bootstrap - Brings up the router during initialization POST - Checks basic functionality;
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
Sybex CCNA Chapter 7: Managing a Cisco Internetwork Instructor & Todd Lammle.
1 © 2002, Cisco Systems, Inc. All rights reserved. Router boot procedure.
Ch. 5 – Managing Cisco IOS Software
© 2004 Cisco Systems, Inc. All rights reserved. Managing Your Network Environment Managing Router Startup and Configuration INTRO v2.0—9-1.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 5 Managing Cisco IOS Software.
CISCO NETWORKING ACADEMY Chabot College ELEC Router Components & “Show” Commands.
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
© Wiley Inc All Rights Reserved. CCNA: Cisco Certified Network Associate Study Guide CHAPTER 9: Managing a Cisco Internetwork.
CISCO ROUTER.  The Cisco router IOS  Enhanced editing  Administrative functions  Hostnames  Banners  Passwords  Interface descriptions  Verifying.
Configuring a network os
Ch.2 – Introduction to Routers
© Wiley Inc All Rights Reserved. CHAPTER 4: Introduction to the Cisco IOS CCNA: Cisco Certified Network Associate Study Guide.
Instructor & Todd Lammle
CCNA Guide to Cisco Networking
Chap 5 Startup and Setup Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Instructor & Todd Lammle
CISCO NETWORKING ACADEMY Chabot College ELEC router passwords.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
Ch.2 – Introduction to Routers
Configuring a Router. Router user interface The Cisco IOS software uses a command-line interface (CLI) as the traditional console environment. This environment.
By Joe Elkins Password Recovery for Cisco Routers (aka Breaking a Cisco Router)
IOS Backup & Password Breaking Technique of Routers & Switches Chapter 17 powered by DJ 1.
Router Fundamentals PJC CCNA Semester 2 Ver. 3.0 by William Kelly.
Sources of Cisco IOS Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Sybex CCNA Chapter 6: Cisco’s IOS Instructor & Todd Lammle.
Chapter 5 Managing a Cisco Internetwork
Ch.2 – Introduction to Routers CCNA 2 version 3.0 Rick Graziani Cabrillo College.
Introduction to Routers
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
Routers 1st semester
Configuration Modes and TFTP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Configuring a Router MM Clements. Copyright This Week Command line interface Router configuration Modes for configuration Interface.
Cisco IOS Command Line Interface Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Chapter 2: Configure a Network Operating System
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
Cisco S2 C6 Router Configuration 1. Router Boot Up Router uses following from config-startup when it boots –Cisco IOS software version –Router identification.
Router Startup and Setup Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
1 Version 3.1 Module 5 Managing Cisco IOS Software.
Console Connectivity RJ-45 Connector Console Port Computer Rollover Cable RJ-45 to DB-9 Converter.
1 Pertemuan 3 Operating Cisco IOS Software. Discussion Topics The purpose of Cisco IOS software Router user interface Router user interface modes Cisco.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 2 Introduction to Routers.
© 2002, Cisco Systems, Inc. All rights reserved..
Router Components & Configuration. Router Components & Configurations Topics Physical components Memory components Configuration modes Keystroke shortcuts.
Managing a Cisco Devices Internetwork
INITIAL CONFIGURATION.
CIT 384: Network Administration
Semester 2 5/6 JEOPARDY CHAPTERS 5 & 6 REVIEW S2C06 Jeopardy Review.
Router Startup and Setup
Cisco S2 C5 Router Startup.
CHAPTER 7.
Instructor & Todd Lammle
Router configuration Router Router’s Functions : 1- IP addressing .
Instructor & Todd Lammle
Router Startup and Setup
Lecture9: Embedded Network Operating System: cisco IOS
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

CISCO NETWORKING ACADEMY Chabot College ELEC Password Recovery

CISCO NETWORKING ACADEMY Password Recovery Topics Problem: Lost Password Overview & Strategy Step-by-Step

CISCO NETWORKING ACADEMY Problem: Lost Password If line passwords are lost, you can’t log on. If enable secret is lost, you can’t do anything useful. Unless you can recover from this situation, your router’s config can never be changed. For all practical purposes, the router is a doorstop.

CISCO NETWORKING ACADEMY Overview & Strategy 3 ways to “recover” –view the password oak#show run –change the password oak(config)#enable secret chabot –erase the configuration, including the password, and start over oak#erase start oak#reload To do any of these, which mode must you be in? privileged

CISCO NETWORKING ACADEMY Overview & Strategy To enter privileged mode, what is usually required? enable secret password So that’s the key to the strategy: Enter the privileged mode without knowing the enable secret! Here’s how...

CISCO NETWORKING ACADEMY Overview & Strategy Configure the router to start up without reading its configuration file. (that’s where the passwords are stored) Do this by –interrupting the normal boot process –setting the config-register to ignore the config file –rebooting the router (again) When it reboots, it has no config and no passwords. Just enable the privileged mode! Change, view, or erase the passwords. Restore the config register for a normal boot.

CISCO NETWORKING ACADEMY Step-by-Step: 1 Connect to the router’s console port.

CISCO NETWORKING ACADEMY Step-by-Step: 2 Display and record the current value of the router’s config register. You’ll need to reset the register to this value later, so write it down now. show version If you can’t login to the router, you can discover the setting in a later step. oak>show version Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(7)T, RELEASE SOFTWARE 16384K bytes of processor board System flash (Read ONLY) Configuration register is 0x2102

CISCO NETWORKING ACADEMY Step-by-Step: 3 Power-cycle the router Why can’t you use reload? What mode must you be in to reload? privileged What must you know to be able to enter the privileged mode? enable secret so, you must use the power switch...

CISCO NETWORKING ACADEMY Step-by-Step: 3 Power-cycle the router Within 60 seconds, interrupt the normal boot process: –Press break key (control-break on Hyperterm PE) –The router enters ROM-monitor mode and presents this prompt > !-- The router was just powercycled !-- During bootup a break sequence was sent to the router. ! Abort at 0x10EA83C (PC) >

CISCO NETWORKING ACADEMY Step-by-Step (option if Step 2 could not be performed) Display and record the current value of the router’s config register. You’ll need to reset the register to this value later, so write it down now. >o Letter “o”, not the number zero Abort at 0x10EA83C (PC) >o Configuration register = 0x2102 at last boot Bit# Configuration register option settings:...

CISCO NETWORKING ACADEMY Step-by-Step: 4 Set the config register to ignore the config file during boot: >o/r 0x2142 Letter “o”, not the number zero Abort at 0x10EA83C (PC) >o/r 0x here causes config file not to be loaded

CISCO NETWORKING ACADEMY Step-by-Step: 5 Reboot the router (again): >i (Initialize) Abort at 0x10EA83C (PC) >o/r 0x2142 >i (The router reboots, but ignores its config file.)

CISCO NETWORKING ACADEMY Step-by-Step: 6 Do not enter the system config dialog. (Use control-C to skip all questions.) ^C --- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]: ^C

CISCO NETWORKING ACADEMY Step-by-Step: 7 Enable the privileged mode en No password is required, because the router has not loaded a configuration file. This is the key step. Now you can do whatever you want! Router>en Router#

CISCO NETWORKING ACADEMY Step-by-Step: 8 Load the config file by copying the startup config to the running config: copy start run It’s OK to load the config now - you’re already in privileged mode! Router# Router#copy start run oak#

CISCO NETWORKING ACADEMY Step-by-Step: 9 View the running config: show run You can now see all passwords except the enable secret! (it is encrypted, so you’ll need to change it.) oak# oak#show run

CISCO NETWORKING ACADEMY Step-by-Step: 10 Change the enable secret: conf t enable secret [word] Now you’re all set. oak# oak#conf t oak(config)#enable secret chabot

CISCO NETWORKING ACADEMY Step-by-Step: 11 Restore the original setting of the configuration register: config-register 0x2102 This step causes the router to load its config file normally at next reboot. oak# oak#conf t oak(config)#config-register 0x2102

CISCO NETWORKING ACADEMY Step-by-Step: 12 Bring up all interfaces that are in use: no shut The interfaces were administratively shut down when the router booted with no config file. oak#(config)#int e0 oak(config-if)#no shut oak(config-if)#int s0 oak(config-if)#no shut oak(config-if)#int s0 oak(config-if)#no shut

CISCO NETWORKING ACADEMY Step-by-Step: 13 Save the current config-register setting to NVRAM, and then reboot: copy run start reload oak#conf t oak(config)#config-register 0x2102 oak(config)^Z oak#copy run start oak#reload

CISCO NETWORKING ACADEMY Done... So… Why should Cisco routers be kept in physically secure areas, where the general public can’t get access to the console port?