SlideShare une entreprise Scribd logo
1  sur  33
Sybex CCNA 640-802
Chapter 5: Managing a Cisco
Internetwork
Instructor & Todd Lammle
Chapter 5 Objectives
• Cisco Router Components
• Boot Sequence
• Configuration register
• Backing up and restoring the IOS
• Backing up and restoring the configuration
• Cisco Discovery Protocol
• Telnet
• Resolving hostnames
• Troubleshooting tools
2
Cisco Router Components
• Bootstrap
– Brings up the router during initialization
• POST
– Checks basic functionality; hardware &
interfaces
• ROM monitor
– Manufacturing testing & troubleshooting
• Mini-IOS
– Loads Cisco IOS into flash memory
• RAM
– Holds packet buffers, routing tables, & s/w
– Stores running-config
Cisco Router Components
• ROM
– Starts & maintains the router
• Flash Memory
– Holds Cisco IOS
– Not erased when the router is reloaded
• NVRAM
– Holds router (& switch) configurations
– Not erased when the router is reloaded
• Configuration Register
– Controls how the router boots up
Boot Sequence
1: Router performs a POST
2: Bootstrap looks for & loads the Cisco
IOS
3: IOS software looks for a valid
configuration file
4: Startup-config file (from NVRAM) is
loaded
– If startup-config file is not found, the router will start
the setup mode
Configuration Registers
• Register
– 16-bit software written into NVRAM
– Loads from flash memory & looks for the startup-
config file
• Configuration Register Bits
– 16 bits read 15-0, from left to right
– default setting: 0x2102
Register 2 1 0 2
Bit number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Binary 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0
NOTE: 0x means the digits that follow are in hexadecimal
Configuration Meanings
Boot Field Meanings
Checking the Register Value
Router#sh version
Cisco Internetwork Operating System Software
IOS ™ C2600 Software (C2600-I-M), Version 12.0(3)T3
RELEASE SOFTWARE (fc1)
[output cut]
Configuration register is 0x2102
Changing the Configuration
Register
• Force the system into the ROM
monitor mode
• Select a boot source & default boot
filename
• Enable or disable the BreakBreak function
• Set the console terminal baud rate
• Load operating software from ROM
• Enable booting from a TFTP server
Changing the
Configuration Register
Router(config)#config-register 0x0101
Router(config)#^Z
Router#sh ver
Configuration register is 0x2102 (will be 0x0101 at next
reload)
Recovering Passwords
1: Boot the router & interrupt the boot
sequence by performing a break
2: Change the configuration register to turn on
bit 6 (0x2142)
3: Reload the router
4: Enter the privileged mode
5: Copy the startup-config to running-config
6: Change the password
7: Reset the configuration register to the
default value
8: Reload the router
Recovering Passwords
1: Boot the router & interrupt the
boot sequence by performing a
break using the Ctrl+Break key
combination.
You may need to upgrade your
version of hyper-terminal in order
for this to work successfully.
Recovering Passwords
2: Change the configuration register to turn on
bit 6 (0x2142)
rommon>confreg 0x2142
You must reset or power cycle for new config to take
effect
3: Reload the router
– Type reset
• The router will reload & ask if you want to enter
setup mode
– Answer NO
4: Enter the privileged mode
Router>enable
Router#
Recovering Passwords
5: Copy the startup-config to running-config
Router#copy startup-config running-config
6: Change the password
Router#config t
Router(config)#enable secret ciscocisco
7: Reset the configuration register to the default
value
Router(config)#config-register 0x2102
8: Reload the router
Backing up & Restoring the
Cisco IOSIOS
• Before you upgrade…..
– Copy the existing IOS to a TFTP
host!
• Verify Flash Memory
Router#sh flash
System flash directory:
File Length Name/status
1 8121000 c2500-js-1.112-18.bin
[8121064 bytes used, 8656152 available, 16777216
total]
16384K bytes of processor board System flash
(Read ONLY)
Router#
Backing up the Cisco IOSIOS
#1: Ensure you have good connectivity to
the TFPT host
Router#ping 192.168.0.120
#2: Copy the IOS from flash to the TFTP
host
Router#copy flash tftp
• The TFTP host must have a default directory
specified
Restoring or Upgrading the
Cisco IOS
#1: Ensure you have good connectivity to
the TFTP host
Router#ping 192.168.0.120
#2: Copy the IOS from the TFTP host to
flash
Router#copy tftp flash
• The TFTP host must have a default directory
specified
• Copying the IOS from a TFTP host to flash requires
a router reboot
Backing up the Configuration
1: Verify the Current Configuration
Router#sh run
2: Verify the Stored Configuration
Router#sh start
• Verify available memory
3: Copy running-config to NVRAM
Router#copy run start
Router#sh start
4: Copy running-config to a TFTP host
Router#copy run tftp
• A second backup
Restoring the Configuration
• Used when…
– You need to copy the startup-config to the
running-config
• Errors made in editing the running-config
– Changes made at the TFTP host need to
be copied to the running-config or startup-
config
Router#copy tftp run or Router#copy tftp start
• NOTE: The configuration file is ASCII. Any text editor
will enable changes
• Erasing the Configuration
Router#erase startup-config
Note: When the router reboots it will be in setup mode
Using Cisco Discovery
Protocol (CDP)
• A Cisco proprietary protocol
– Designed to collect information
about directly attached & remote
devices
• Hardware information
• Protocol information
– Useful in troubleshooting &
documenting the network
Getting CDP Timers & Holdtime
Information
• Configuration
– CDP Timer: How often CDP packets are
transmitted to all active interfaces
– CDP Holdtime: The amount of time that the device
will hold packets received from neighbor devices
Router#sh cdp
Global CDP information
Sending CDP packets every 60 seconds
Sending a holdtime value of 180
seconds
Router#config t
Router(config)#cdp timer 90
Router(config)#cdp holdtime 240
Getting Neighbor Information
• Shows information about directly
connected devices
– CDP packets are not passed through
a Cisco switch
– Can only see what is directly
attached
Router#sh cdp nei
or
Router#sh cdp neighbor detail
– Detailed information; hostname, IP address,
etc
Getting Interface Traffic & Port Information
• Interface Traffic Information:
– CDP packets sent & received
– Errors with CDP
Router#sh cdp traffic
• Port & Interface Information:
– Encapsulation on the line
– Timer & Holdtime for each
interface
Router#sh cdp interface
Using Telnet
• A virtual terminal protocol
– Part of the TCP/IP suite
– Allows connections to remote
devices
• Gather information
• Run programs
Note: The VTY passwords must be set on
the routers
Using Telnet
• Setting VTY passwords:
Router#config t
Router(config)#line vty 0 4
Router(config)#login
Router(config)#password cisco
Router(config)#^Z
Router#172.16.10.2
Trying 172.16.10.2 … Open
User Access Verification
Password:
RouterB>
Using Telnet
• Setting VTY password:
Router#config t
Router(config)#line vty 0 4
Router(config)#login
Router(config)#password
cisco
Router(config)#^Z
Router#172.16.10.2
Trying 172.16.10.2 … Open
User Access Verification
Password:
RouterB>
Remember….
– VTY password is the user
mode (>) password - not the
enable mode (#) password
– With no enable/enable secret
password set, the following
happens:
RouterB>en
% No password set
RouterB>
This equates to good security!
Telnet Commands
• Telnetting into Multiple Devices
Ctrl+Shift+6 (release) X
• Checking Telnet Connections
Router#sh sessions
• Checking Telnet Users
Router#sh users
• Closing Telnet Sessions
RouterB>exit
RouterB>disconnect
Resolving Hostnames
• To use a hostname rather than
an IP address to connect to a
remote host a device must be
able to translate the hostname
to an IP address
– Build a host table on each router
– Build a Domain Name System
(DNS) server
Building a Host Table
• Provides name resolution only on the
router on which it is built
[ip host name tcp_port_number ip_address]
Router(config)#ip host RouterB 172.16.10.2
Router(config)#ip host switch 192.168.0.148
Router#sh hosts
• Default TCP port number: 23
Router#RouterB
RouterB#(Ctrl+Shift+6) (X)
Router#switch
Using DNS to Resolve Names
• Used when you have many devices
on your network
• Making DNS work…
– ip domain-lookup
• Turned on by default
– ip name-server
• Sets the IP address of the DNS server (up
to 6 each)
– ip domain-name
• Appends the domain name to the hostname
Ex: RouterA.neversail.navy.mil
Checking Network
Connectivity
• Ping
– Displays the minimum, average, &
maximum times it takes for aping packet to
find a specified system + return
Router#ping RouterB
• Trace
– Shows the path a packet takes to get to a
remote device
Router#trace RouterB
Summary
• Go through all the written and review
questions
• Go through the answers with the class
33

Contenu connexe

Tendances

In depth understanding network security
In depth understanding network securityIn depth understanding network security
In depth understanding network security
Thanawan Tuamyim
 
Chapter 04 - Router Conf
Chapter 04 - Router ConfChapter 04 - Router Conf
Chapter 04 - Router Conf
phanleson
 

Tendances (17)

Saad baig practical file
Saad baig practical fileSaad baig practical file
Saad baig practical file
 
managing your network environment
managing your network environmentmanaging your network environment
managing your network environment
 
ccna cheat_sheet
ccna cheat_sheetccna cheat_sheet
ccna cheat_sheet
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet
 
Basic Configurations on Router
Basic Configurations on RouterBasic Configurations on Router
Basic Configurations on Router
 
Ncat ccna cheat sheet
Ncat ccna cheat sheetNcat ccna cheat sheet
Ncat ccna cheat sheet
 
Router commands
Router commandsRouter commands
Router commands
 
CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
 
Cisco router command configuration overview
Cisco router command configuration overviewCisco router command configuration overview
Cisco router command configuration overview
 
Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)Cisco commands List for Beginners (CCNA, CCNP)
Cisco commands List for Beginners (CCNA, CCNP)
 
In depth understanding network security
In depth understanding network securityIn depth understanding network security
In depth understanding network security
 
Tuned
TunedTuned
Tuned
 
operating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS deviceoperating and configuring cisco a cisco IOS device
operating and configuring cisco a cisco IOS device
 
Cisco IOS (internetworking operating system)
Cisco IOS (internetworking operating system)Cisco IOS (internetworking operating system)
Cisco IOS (internetworking operating system)
 
Ccna day2
Ccna day2Ccna day2
Ccna day2
 
test
testtest
test
 
Chapter 04 - Router Conf
Chapter 04 - Router ConfChapter 04 - Router Conf
Chapter 04 - Router Conf
 

En vedette

Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
robertoxe
 
GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...
GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...
GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...
JIGAR MEHTA
 
Chapter1ccna
Chapter1ccnaChapter1ccna
Chapter1ccna
robertoxe
 
Chapter 02 - Wan Router
Chapter 02 - Wan RouterChapter 02 - Wan Router
Chapter 02 - Wan Router
phanleson
 
co-existing contradictions
co-existing contradictionsco-existing contradictions
co-existing contradictions
Schwegel
 
Vízalatti világ(1)+ani (nx power lite)
Vízalatti világ(1)+ani (nx power lite)Vízalatti világ(1)+ani (nx power lite)
Vízalatti világ(1)+ani (nx power lite)
VarganeAnny
 

En vedette (16)

Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...
GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...
GREAT STEEL & METALS /MFG & EXPORTER OF STAINLESS STEEL,ALLOY STEEL AND CARBO...
 
Chapter1ccna
Chapter1ccnaChapter1ccna
Chapter1ccna
 
Chapter 02 - Wan Router
Chapter 02 - Wan RouterChapter 02 - Wan Router
Chapter 02 - Wan Router
 
Comp net 1
Comp net 1Comp net 1
Comp net 1
 
Advanced computer network
Advanced computer networkAdvanced computer network
Advanced computer network
 
Computer network ppt
Computer network pptComputer network ppt
Computer network ppt
 
Routing
RoutingRouting
Routing
 
Hot Tapping Requirement
Hot Tapping RequirementHot Tapping Requirement
Hot Tapping Requirement
 
transport layer
transport layertransport layer
transport layer
 
Writing l os 101
Writing l os 101Writing l os 101
Writing l os 101
 
co-existing contradictions
co-existing contradictionsco-existing contradictions
co-existing contradictions
 
Malawi presentation2
Malawi presentation2Malawi presentation2
Malawi presentation2
 
Vízalatti világ(1)+ani (nx power lite)
Vízalatti világ(1)+ani (nx power lite)Vízalatti világ(1)+ani (nx power lite)
Vízalatti világ(1)+ani (nx power lite)
 
Fittings
FittingsFittings
Fittings
 
De nieuwe ict beheerder
De nieuwe ict beheerderDe nieuwe ict beheerder
De nieuwe ict beheerder
 

Similaire à Chapter5ccna

Day 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOSDay 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOS
anilinvns
 
introduction-to-cisco-routers.ppt
introduction-to-cisco-routers.pptintroduction-to-cisco-routers.ppt
introduction-to-cisco-routers.ppt
RobelTsada
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
Asif
 
VESIT WORKSHOP SIMULATIONS.ppt
VESIT WORKSHOP SIMULATIONS.pptVESIT WORKSHOP SIMULATIONS.ppt
VESIT WORKSHOP SIMULATIONS.ppt
zmulani8
 

Similaire à Chapter5ccna (20)

Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccna
 
CCNA ppt Day 4
CCNA ppt Day 4CCNA ppt Day 4
CCNA ppt Day 4
 
CCNA CheatSheet
CCNA CheatSheetCCNA CheatSheet
CCNA CheatSheet
 
Manage CISCO IOS
Manage CISCO IOSManage CISCO IOS
Manage CISCO IOS
 
Day 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOSDay 6 - Manage CISCO IOS
Day 6 - Manage CISCO IOS
 
introduction-to-cisco-routers basic .ppt
introduction-to-cisco-routers basic .pptintroduction-to-cisco-routers basic .ppt
introduction-to-cisco-routers basic .ppt
 
introduction-to-cisco-routers.ppt
introduction-to-cisco-routers.pptintroduction-to-cisco-routers.ppt
introduction-to-cisco-routers.ppt
 
Chapter4ccna
Chapter4ccnaChapter4ccna
Chapter4ccna
 
CCNA complete.ppt
CCNA complete.pptCCNA complete.ppt
CCNA complete.ppt
 
C C N A Day2
C C N A  Day2C C N A  Day2
C C N A Day2
 
Ccna day2
Ccna day2Ccna day2
Ccna day2
 
Ccna 2
Ccna 2Ccna 2
Ccna 2
 
Ccna day2
Ccna day2Ccna day2
Ccna day2
 
Ccna day2-140715152313-phpapp02
Ccna day2-140715152313-phpapp02Ccna day2-140715152313-phpapp02
Ccna day2-140715152313-phpapp02
 
Ccna day2
Ccna day2Ccna day2
Ccna day2
 
Day 5.3 configuration of router
Day 5.3 configuration of routerDay 5.3 configuration of router
Day 5.3 configuration of router
 
05 module managing your network enviornment
05  module managing your network enviornment05  module managing your network enviornment
05 module managing your network enviornment
 
Ccna PPT2
Ccna PPT2Ccna PPT2
Ccna PPT2
 
VESIT WORKSHOP SIMULATIONS.ppt
VESIT WORKSHOP SIMULATIONS.pptVESIT WORKSHOP SIMULATIONS.ppt
VESIT WORKSHOP SIMULATIONS.ppt
 
VESIT WORKSHOP SIMULATIONS.ppt
VESIT WORKSHOP SIMULATIONS.pptVESIT WORKSHOP SIMULATIONS.ppt
VESIT WORKSHOP SIMULATIONS.ppt
 

Plus de Lakshan Perera (11)

Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccna
 
Chapter14ccna
Chapter14ccnaChapter14ccna
Chapter14ccna
 
Chapter13ccna
Chapter13ccnaChapter13ccna
Chapter13ccna
 
Chapter12ccna
Chapter12ccnaChapter12ccna
Chapter12ccna
 
Chapter11ccna
Chapter11ccnaChapter11ccna
Chapter11ccna
 
Chapter10ccna
Chapter10ccnaChapter10ccna
Chapter10ccna
 
Chapter9ccna
Chapter9ccnaChapter9ccna
Chapter9ccna
 
Chapter8ccna
Chapter8ccnaChapter8ccna
Chapter8ccna
 
Chapter7ccna
Chapter7ccnaChapter7ccna
Chapter7ccna
 
Chapter6ccna
Chapter6ccnaChapter6ccna
Chapter6ccna
 
Ceyccna3
Ceyccna3Ceyccna3
Ceyccna3
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

Chapter5ccna

  • 1. Sybex CCNA 640-802 Chapter 5: Managing a Cisco Internetwork Instructor & Todd Lammle
  • 2. Chapter 5 Objectives • Cisco Router Components • Boot Sequence • Configuration register • Backing up and restoring the IOS • Backing up and restoring the configuration • Cisco Discovery Protocol • Telnet • Resolving hostnames • Troubleshooting tools 2
  • 3. Cisco Router Components • Bootstrap – Brings up the router during initialization • POST – Checks basic functionality; hardware & interfaces • ROM monitor – Manufacturing testing & troubleshooting • Mini-IOS – Loads Cisco IOS into flash memory • RAM – Holds packet buffers, routing tables, & s/w – Stores running-config
  • 4. Cisco Router Components • ROM – Starts & maintains the router • Flash Memory – Holds Cisco IOS – Not erased when the router is reloaded • NVRAM – Holds router (& switch) configurations – Not erased when the router is reloaded • Configuration Register – Controls how the router boots up
  • 5. Boot Sequence 1: Router performs a POST 2: Bootstrap looks for & loads the Cisco IOS 3: IOS software looks for a valid configuration file 4: Startup-config file (from NVRAM) is loaded – If startup-config file is not found, the router will start the setup mode
  • 6. Configuration Registers • Register – 16-bit software written into NVRAM – Loads from flash memory & looks for the startup- config file • Configuration Register Bits – 16 bits read 15-0, from left to right – default setting: 0x2102 Register 2 1 0 2 Bit number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Binary 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 NOTE: 0x means the digits that follow are in hexadecimal
  • 9. Checking the Register Value Router#sh version Cisco Internetwork Operating System Software IOS ™ C2600 Software (C2600-I-M), Version 12.0(3)T3 RELEASE SOFTWARE (fc1) [output cut] Configuration register is 0x2102
  • 10. Changing the Configuration Register • Force the system into the ROM monitor mode • Select a boot source & default boot filename • Enable or disable the BreakBreak function • Set the console terminal baud rate • Load operating software from ROM • Enable booting from a TFTP server
  • 11. Changing the Configuration Register Router(config)#config-register 0x0101 Router(config)#^Z Router#sh ver Configuration register is 0x2102 (will be 0x0101 at next reload)
  • 12. Recovering Passwords 1: Boot the router & interrupt the boot sequence by performing a break 2: Change the configuration register to turn on bit 6 (0x2142) 3: Reload the router 4: Enter the privileged mode 5: Copy the startup-config to running-config 6: Change the password 7: Reset the configuration register to the default value 8: Reload the router
  • 13. Recovering Passwords 1: Boot the router & interrupt the boot sequence by performing a break using the Ctrl+Break key combination. You may need to upgrade your version of hyper-terminal in order for this to work successfully.
  • 14. Recovering Passwords 2: Change the configuration register to turn on bit 6 (0x2142) rommon>confreg 0x2142 You must reset or power cycle for new config to take effect 3: Reload the router – Type reset • The router will reload & ask if you want to enter setup mode – Answer NO 4: Enter the privileged mode Router>enable Router#
  • 15. Recovering Passwords 5: Copy the startup-config to running-config Router#copy startup-config running-config 6: Change the password Router#config t Router(config)#enable secret ciscocisco 7: Reset the configuration register to the default value Router(config)#config-register 0x2102 8: Reload the router
  • 16. Backing up & Restoring the Cisco IOSIOS • Before you upgrade….. – Copy the existing IOS to a TFTP host! • Verify Flash Memory Router#sh flash System flash directory: File Length Name/status 1 8121000 c2500-js-1.112-18.bin [8121064 bytes used, 8656152 available, 16777216 total] 16384K bytes of processor board System flash (Read ONLY) Router#
  • 17. Backing up the Cisco IOSIOS #1: Ensure you have good connectivity to the TFPT host Router#ping 192.168.0.120 #2: Copy the IOS from flash to the TFTP host Router#copy flash tftp • The TFTP host must have a default directory specified
  • 18. Restoring or Upgrading the Cisco IOS #1: Ensure you have good connectivity to the TFTP host Router#ping 192.168.0.120 #2: Copy the IOS from the TFTP host to flash Router#copy tftp flash • The TFTP host must have a default directory specified • Copying the IOS from a TFTP host to flash requires a router reboot
  • 19. Backing up the Configuration 1: Verify the Current Configuration Router#sh run 2: Verify the Stored Configuration Router#sh start • Verify available memory 3: Copy running-config to NVRAM Router#copy run start Router#sh start 4: Copy running-config to a TFTP host Router#copy run tftp • A second backup
  • 20. Restoring the Configuration • Used when… – You need to copy the startup-config to the running-config • Errors made in editing the running-config – Changes made at the TFTP host need to be copied to the running-config or startup- config Router#copy tftp run or Router#copy tftp start • NOTE: The configuration file is ASCII. Any text editor will enable changes • Erasing the Configuration Router#erase startup-config Note: When the router reboots it will be in setup mode
  • 21. Using Cisco Discovery Protocol (CDP) • A Cisco proprietary protocol – Designed to collect information about directly attached & remote devices • Hardware information • Protocol information – Useful in troubleshooting & documenting the network
  • 22. Getting CDP Timers & Holdtime Information • Configuration – CDP Timer: How often CDP packets are transmitted to all active interfaces – CDP Holdtime: The amount of time that the device will hold packets received from neighbor devices Router#sh cdp Global CDP information Sending CDP packets every 60 seconds Sending a holdtime value of 180 seconds Router#config t Router(config)#cdp timer 90 Router(config)#cdp holdtime 240
  • 23. Getting Neighbor Information • Shows information about directly connected devices – CDP packets are not passed through a Cisco switch – Can only see what is directly attached Router#sh cdp nei or Router#sh cdp neighbor detail – Detailed information; hostname, IP address, etc
  • 24. Getting Interface Traffic & Port Information • Interface Traffic Information: – CDP packets sent & received – Errors with CDP Router#sh cdp traffic • Port & Interface Information: – Encapsulation on the line – Timer & Holdtime for each interface Router#sh cdp interface
  • 25. Using Telnet • A virtual terminal protocol – Part of the TCP/IP suite – Allows connections to remote devices • Gather information • Run programs Note: The VTY passwords must be set on the routers
  • 26. Using Telnet • Setting VTY passwords: Router#config t Router(config)#line vty 0 4 Router(config)#login Router(config)#password cisco Router(config)#^Z Router#172.16.10.2 Trying 172.16.10.2 … Open User Access Verification Password: RouterB>
  • 27. Using Telnet • Setting VTY password: Router#config t Router(config)#line vty 0 4 Router(config)#login Router(config)#password cisco Router(config)#^Z Router#172.16.10.2 Trying 172.16.10.2 … Open User Access Verification Password: RouterB> Remember…. – VTY password is the user mode (>) password - not the enable mode (#) password – With no enable/enable secret password set, the following happens: RouterB>en % No password set RouterB> This equates to good security!
  • 28. Telnet Commands • Telnetting into Multiple Devices Ctrl+Shift+6 (release) X • Checking Telnet Connections Router#sh sessions • Checking Telnet Users Router#sh users • Closing Telnet Sessions RouterB>exit RouterB>disconnect
  • 29. Resolving Hostnames • To use a hostname rather than an IP address to connect to a remote host a device must be able to translate the hostname to an IP address – Build a host table on each router – Build a Domain Name System (DNS) server
  • 30. Building a Host Table • Provides name resolution only on the router on which it is built [ip host name tcp_port_number ip_address] Router(config)#ip host RouterB 172.16.10.2 Router(config)#ip host switch 192.168.0.148 Router#sh hosts • Default TCP port number: 23 Router#RouterB RouterB#(Ctrl+Shift+6) (X) Router#switch
  • 31. Using DNS to Resolve Names • Used when you have many devices on your network • Making DNS work… – ip domain-lookup • Turned on by default – ip name-server • Sets the IP address of the DNS server (up to 6 each) – ip domain-name • Appends the domain name to the hostname Ex: RouterA.neversail.navy.mil
  • 32. Checking Network Connectivity • Ping – Displays the minimum, average, & maximum times it takes for aping packet to find a specified system + return Router#ping RouterB • Trace – Shows the path a packet takes to get to a remote device Router#trace RouterB
  • 33. Summary • Go through all the written and review questions • Go through the answers with the class 33