Chapter 07
-
Upload
guest35417d -
Category
Technology
-
view
10 -
download
0
description
Transcript of Chapter 07
![Page 1: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/1.jpg)
77 77
CHAPTERCHAPTERSEVENSEVEN
Router Startup and Router Startup and ConfigurationConfiguration
![Page 2: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/2.jpg)
ObjectivesObjectives
• Understand router setup and startup
• Describe and use the Cisco Discovery Protocol
• Understand configuration management commands for Cisco routers and the 1900 series switch
• Configure IP on the Cisco router and the 1900 series switch
• Troubleshoot router connectivity problems
![Page 3: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/3.jpg)
Router Setup and StartupRouter Setup and Startup
• A router follows a specific boot process, but processes can vary
• In general, the boot process follows these steps:– Test hardware (POST)– Load bootstrap– Locate and load Cisco IOS– Locate and load router configuration file
![Page 4: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/4.jpg)
Router Setup and StartupRouter Setup and Startup
Figure 7-1: The boot process
![Page 5: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/5.jpg)
POSTPOST
• Power-on self test (POST)– Diagnostic program in ROM that runs when the router
is powered on
• ROM Monitor– Bootstrap program that runs during the power-on self
test and checks basic operations of hardware
– ROM Monitor checks the configuration register for instructions regarding how to load the Cisco IOS
![Page 6: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/6.jpg)
POSTPOST
• Configuration register allows you to control several boot functions, including:– Forcing the system into the bootstrap program– Enabling or disabling the console Break function– Setting the console terminal baud rate– Loading the IOS from ROM– Loading the IOS from a TFTP server
![Page 7: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/7.jpg)
POSTPOST
Figure 7-2: Output from the show version command
![Page 8: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/8.jpg)
POSTPOST
Table 7-1: Configuration register codes
![Page 9: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/9.jpg)
Monitor ModeMonitor Mode
• You can set the router to enter ROM Monitor mode during the boot process by modifying the configuration register
• ROM Monitor mode– Router mode in which you can configure the
router manually– You must provide each command in the correct
syntax in order to configure the router
![Page 10: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/10.jpg)
Cisco IOSCisco IOS
Figure 7-3: Output from the Cisco 2500 series router on bootup
![Page 11: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/11.jpg)
Cisco IOSCisco IOS
• Trivial File Transfer Protocol (TFTP) server– Computer (such as a PC, UNIX workstation, or laptop) running
TFTP server services
Figure 7-4: Output from the show flash command
![Page 12: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/12.jpg)
Cisco IOSCisco IOS
• Cisco routers support the following fallback options for loading the IOS:– If the IOS is configured to load from a TFTP
server, but that server cannot be located, the IOS is loaded from flash memory
– If the IOS cannot be found in flash or on a TFTP server, a minimal version of the IOS is loaded from ROM
![Page 13: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/13.jpg)
Booting from TFTPBooting from TFTP
• You can force the router to load its IOS from a TFTP server by putting boot system commands into the configuration file
• Global configuration mode– Router mode that allows you to manipulate most
of the router’s generic settings– Prompt for global configuration mode is
router(config)#
![Page 14: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/14.jpg)
Upgrading the IOSUpgrading the IOS
• Before loading a flash file to a router, use the show flash command to ensure there is enough free memory to load the new Cisco IOS software– The system will tell you how much memory is
used and how much is free– You may have to erase the existing flash memory
before writing onto it due to space limitations
![Page 15: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/15.jpg)
RXBoot ModeRXBoot Mode
• Another configuration mode that you can enter when:– The changes to your system make it impossible to
boot from the flash memory– You cannot locate a valid IOS image
• The prompt from RXBoot mode is the hostname of your router followed by “boot” in parentheses
![Page 16: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/16.jpg)
Cisco Catalyst 1900 IOS and Cisco Catalyst 1900 IOS and Configuration ManagementConfiguration Management
• To upgrade or restore IOS via TFTP, the command syntax is copy tftp://tftp_server_address/IOS_file/ opcode– The opcode command tells the device to load the file into
flash memory
• To backup configuration settings for a Catalyst 1900 switch, copy contents of NVRAM to a TFTP server– The command syntax is copy nvram
tftp://tftp_server_address/config_file_name
![Page 17: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/17.jpg)
Router Configuration FilesRouter Configuration Files
Table 7-2: Important router copy commands
![Page 18: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/18.jpg)
Router Configuration FilesRouter Configuration Files
Table 7-2 (cont.): Important router copy commands
![Page 19: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/19.jpg)
Methods for Making ChangesMethods for Making Changes
• When changes to a router’s configuration or boot process are required, these basic steps can be used:– Make changes as desired to the running configuration
– Examine those changes
– Determine if the changes meet the desired result
– Remove the changes if they do not meet the desired result, or simply reboot the router
– Copy the changes from the running configuration to the startup configuration when they do meet the desired result
![Page 20: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/20.jpg)
CDPCDP
• Cisco Discovery Protocol (CDP)– Cisco proprietary Data Link layer protocol– Shares configuration information between Cisco
devices connected locally to each other– Using CDP can help you quickly determine the
network topology– With CDP, you can discover other devices on the
same LAN segment and those connected over a serial interface
![Page 21: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/21.jpg)
CDPCDP
Figure 7-5: Show CDP neighbor command
![Page 22: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/22.jpg)
CDPCDP
• The show CDP neighbor command supports the following options:– Ethernet– Null– Serial– Detail
• CDP was designed to be a low-overhead protocol
![Page 23: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/23.jpg)
IP on the RouterIP on the Router
• If the router is initially configured using the extended setup program, you will be asked if you would like to enable the IP on your router– If yes, you are prompted to configure IP on each of
interface you wish to set up– If no, you can either run setup again later, or you can
configure the interfaces manually
• In the event you are configuring a serial interface as a DCE (data communication equipment), you will also need to add the clockrate command
![Page 24: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/24.jpg)
IP on the SwitchIP on the Switch
• An IP address is not necessary on a switch like the Catalyst 1900– Switches operate mainly on Layer 2 (MAC addresses)
• You may wish to configure an IP address for your switch so you can manage it over the network via Telnet or some other management software– In order to set an IP address, you must enter Global
Configuration mode by typing configure terminal (or one of its abbreviations)
![Page 25: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/25.jpg)
IP ConnectivityIP Connectivity
Table 7-3: Testing connectivity by layer
![Page 26: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/26.jpg)
TelnetTelnet
• Utility that connects at the highest layer of the OSI model
• Provides remote access to other devices• Cisco routers allow telnet connections via their
virtual terminal ports• If you can establish telnet connectivity to a router,
you have established that it is available on the network and that you have connectivity at all layers
![Page 27: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/27.jpg)
IP Host NamesIP Host Names
• When telnetting to a remote router or host, the IP address of the host must follow the telnet command
• Rather than using IP addresses, it is easier to refer to a remote host or router using a name
• Sometimes, you cannot gain connectivity because the host name that you are trying to connect with is entered in a table incorrectly
• Using a name server provides name resolution from one location, making a table configuration on each device unnecessary
![Page 28: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/28.jpg)
Ping and TracePing and Trace
• If you can’t get connectivity at the Application layer, try connectivity at the Internetwork layer
• Ping and trace verify connectivity at the Internetwork layer– Both use ICMP messages to verify the destination host is
reachable, and if not, give possible reasons for the problem
• Ping sends a packet to the destination and waits for a response– By default, the ping utility with Cisco routers is configured
to send five packets to the target
![Page 29: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/29.jpg)
Ping and TracePing and Trace
• Ping can return the following replies:– !– .– U– C– I– ?– &
![Page 30: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/30.jpg)
Ping and TracePing and Trace
• Extended mode ping– Options include:
• The destination address of the ping
• The protocol
• Repeat count
• Datagram size
– Can only be accessed from the privileged mode prompt
![Page 31: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/31.jpg)
Ping and TracePing and Trace
• If ping indicates a problem with connectivity, using trace may provide a better clue as to the source of the connectivity problem
• Trace command is similar to ping command, except that the replies are requested at each hop along the way to the destination
• Trace sends multiple ICMP packets with progressively higher TTL counters until the packet reaches the destination
![Page 32: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/32.jpg)
Ping and TracePing and Trace
• The following responses can be returned by a trace:– !H– P– N– U– *
![Page 33: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/33.jpg)
IP RouteIP Route
• If you cannot get connectivity using ping or trace, you should check your routing table
• You can issue the show ip route command from the enable mode prompt– This command shows the routing table
• Typically, routing tables are dynamically created when routing protocols are configured on the router
![Page 34: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/34.jpg)
Checking the InterfaceChecking the Interface
• On of the biggest mistakes made when troubleshooting is not checking the interfaces on the router
• If the interfaces are down, packets cannot be delivered
• Router interfaces go down for a variety of reasons including:– Incorrect IP configuration
– Cable problems
![Page 35: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/35.jpg)
Checking the InterfaceChecking the Interface
• Keepalive frames– Data frames sent between two hosts to ensure that
the connection between those hosts remains open
• Different types of interfaces can show different types of reports– For example, a Token Ring interface reports down
when there is no electrical carrier signal present
![Page 36: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/36.jpg)
Checking the InterfaceChecking the Interface
Figure 7-6: Output from the show interfaces command
![Page 37: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/37.jpg)
Clear CountersClear Counters
• Routers keep detailed statistics regarding the data passing across its interfaces
• Before using the show interface command, you may want to clear the existing interface information
• You can clear these statistics (counters) on the interface by using the clear interface or clear counters command
![Page 38: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/38.jpg)
DebugDebug
• Debug command– One of the most powerful tools you can use to
obtain information from your router– Only available from privileged EXEC mode– Has numerous subcommands that allow you to
troubleshoot particular protocols– Allows you to check for specific types of traffic
on the wire
![Page 39: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/39.jpg)
DebugDebug
Figure 7-7: Debug all command output
![Page 40: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/40.jpg)
Chapter SummaryChapter Summary
• When the router boots, it follows a set routine
• If the Cisco IOS is set to load from a TFTP server, but the TFTP server cannot be located, then the IOS will boot from flash memory
• If the IOS cannot be found in flash memory or on the TFTP server, a limited version will boot from ROM
• If the Cisco IOS is set to load a configuration file from a TFTP server, but the file or server is not available, the configuration file will be loaded from NVRAM
![Page 41: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/41.jpg)
Chapter SummaryChapter Summary
• CDP is proprietary to Cisco devices• Devices share information about their interface
configurations and connections to other devices• IP configuration on Cisco switches is similar• When you configure an address for a router interface,
you must be in interface configuration mode• When you configure an IP address for a Catalyst
1900 switch, you need only be in global configuration mode
![Page 42: Chapter 07](https://reader033.fdocuments.net/reader033/viewer/2022061112/54566ddcaf795954018b5351/html5/thumbnails/42.jpg)
Chapter SummaryChapter Summary
• You can verify router connectivity to other systems by using telnet to determine if there is Application layer connectivity
• If you cannot get connectivity at the Application layer, try trace and ping
• On of the most important troubleshooting commands is the show interface command