Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Chapter 05 - Ios

445 views

Published on

Published in: Education
  • Be the first to comment

  • Be the first to like this

Chapter 05 - Ios

  1. 1. MANAGING CISCO IOS SOFTWARE TS, PHẠM VĂN TÍNH <ul><li>PART9 </li></ul>
  2. 2. <ul><li>Objective </li></ul><ul><li>Identify the stages of the router boot sequence </li></ul><ul><li>Determine how a Cisco device locates and loads the Cisco IOS </li></ul><ul><li>Use the boot system command </li></ul><ul><li>Identify the configuration register values </li></ul><ul><li>Briefly describe the files used by the Cisco IOS and their functions </li></ul><ul><li>List the locations on the router of the different file types </li></ul><ul><li>Briefly describe the parts of the IOS name </li></ul><ul><li>Save and restore configuration files using TFTP and copy-and-paste </li></ul><ul><li>Load an IOS image using TFTP </li></ul><ul><li>Load an IOS image using XModem </li></ul><ul><li>Verify the file system using show commands </li></ul>
  3. 3. <ul><li>Stages of the router power-on boot sequence </li></ul><ul><li>the startup routines must do the following: </li></ul><ul><li>Test the router hardware. </li></ul><ul><li>Find and load the Cisco IOS software. </li></ul><ul><li>Find and apply configuration statements, including protocol functions and interface addresses. </li></ul>
  4. 4. <ul><li>Locating IOS Software </li></ul>
  5. 5. <ul><li>Configuration register </li></ul>The order in which the router looks for system bootstrap information depends on the boot field setting in the configuration register. The default configuration register setting can be changed with the global configuration mode command config-register . Use a hexadecimal number as the argument for this command
  6. 6. <ul><li>Software Components In Memory </li></ul>
  7. 7. <ul><li>Fields in the IOS Name </li></ul>
  8. 8. <ul><li>Managing configuration files using copy and paste </li></ul><ul><li>to capture the configuration using the text displayed on the HyperTerminal screen to a text file: </li></ul><ul><li>Select Transfer </li></ul><ul><li>Select Capture Text </li></ul><ul><li>Specify the name for the text file to capture the configuration </li></ul><ul><li>Select Start to start capturing text </li></ul><ul><li>Display the configuration to the screen by entering show running-config </li></ul><ul><li>Press the space bar when each &quot;-More -&quot; prompt appears </li></ul><ul><li>When the complete configuration has been displayed, stop the capture by: </li></ul><ul><li>Select Transfer </li></ul><ul><li>Select Capture Text </li></ul><ul><li>Select Stop </li></ul>
  9. 9. <ul><li>Managing configuration files using copy and paste </li></ul><ul><li>Restore the configuration using the text file from the HyperTerminal software: </li></ul><ul><li>Enter router global configuration mode. </li></ul><ul><li>From HyperTerminal, click on Transfer > Send Text File . </li></ul><ul><li>Select the name of the file for the saved backup configuration. </li></ul><ul><li>The lines of the file will be entered into the router as if they were being typed. </li></ul><ul><li>Observe any errors. </li></ul><ul><li>After the configuration is entered, press Ctrl-Z key to exit global configuration mode. </li></ul><ul><li>Restore the startup configuration with copy running-config startup-config . </li></ul>
  10. 10. <ul><li>Managing IOS images using TFTP </li></ul>
  11. 11. <ul><li>Managing IOS images using Xmodem </li></ul><ul><li>If the IOS image in flash has been erased or corrupted, the IOS may need to be restored from the ROM monitor mode (ROMmon). </li></ul><ul><li>To restore the IOS through the console, the local PC needs to have a copy of the IOS file to restore and a terminal emulation program such as HyperTerminal. </li></ul><ul><li>The IOS can be restored using the default console speed of 9600 bps . </li></ul><ul><li>The baud rate can be changed to 115200 bps . The console speed can be changed from ROMmon mode using the confreg command </li></ul>
  12. 12. <ul><li>Managing IOS images using Xmodem </li></ul><ul><li>xmodem -c image_file_name </li></ul><ul><li>For example, to restore an IOS image file with the name “c2600-is-mz.122-10a.bin”: xmodem -c c2600-is-mz.122-10a.bin </li></ul><ul><li>In HyperTerminal, select Transfer > Send File . </li></ul><ul><li>Then in the Send File popup specify the image name/location , select Xmodem as the protocol, and start the transfer </li></ul><ul><li>Before restarting the router , the console speed needs to be set back to 9600 and the config register back to 0x2102 by command config-register 0x2102 at the privileged EXEC prompt </li></ul>
  13. 13. <ul><li>Environment variables </li></ul><ul><li>Downloading the image using TFTP from ROMmon is the fastest way to restore an IOS image to the router. This is done by setting environmental variables and then using the tftpdnld command. </li></ul><ul><li>The ROMmon TFTP transfer works only on the first LAN port so a simple set of IP parameters are set for this interface. </li></ul><ul><li>Syntax : VARIABLE_NAME = value Note: All variable names are case sensitive </li></ul><ul><li>To check the ROMmon environment variables, the set command can be used </li></ul>
  14. 14. <ul><li>List of Environment variables </li></ul><ul><li>IP_ADDRESS – The IP address on the LAN interface </li></ul><ul><li>IP_SUBNET_MASK – The subnet mask for the LAN interface </li></ul><ul><li>DEFAULT_GATEWAY – The default gateway for the LAN interface </li></ul><ul><li>TFTP_SERVER – The IP address of the TFTP server </li></ul><ul><li>TFTP_FILE – The IOS filename on the server </li></ul>
  15. 15. <ul><li>File system verification </li></ul><ul><li>show version </li></ul><ul><li>show flash </li></ul>

×