Keyboard help in the router CLI
2.2.6 This page will introduce some router help functions.
A question mark, ?, can be entered at the user EXEC or privileged EXEC mode prompt to display a list of available commands. Notice the --More-- at the bottom of the display in Figure . The --More-- prompt indicates that there are multiple screens of output. When a --More-- prompt appears, press the Spacebar to view the next available screen. To display just the next line, press the Return or Enter key. Press any other key to return to the prompt.
To access privileged EXEC mode, type enable or the abbreviation en or ena. This might cause the router to prompt the user for a password if one has been set. Figure lists the commands that are available in privileged EXEC mode.
Screen output varies, depending on Cisco IOS software level and router configuration.
The help function, or question mark, ?, can be used to display the commands that are used to perform certain tasks. The following exercise illustrates one of the many uses of the help function.
If a user wants to set the router clock and does not know the command, the help function can be used as follows:
1. Use ? to find the command for setting the clock. The help output shows that the clock command is required.
2. Check the syntax for changing the time.
3. Enter the current time by using hours, minutes, and seconds, as shown in Figure . The system indicates that additional information needs to be provided to complete the command.
4. Press Ctrl-P or the Up Arrow to repeat the previous command entry. Then add a space and a question mark (?) to reveal the additional arguments. Now the command entry can be completed.
5. The caret symbol (^) and help response indicate an error. The placement of the caret symbol shows where the possible problem is located. To input the correct syntax, re-enter the command up to the point where the caret symbol is located and then enter a question mark (?).
6. Enter the year, using the correct syntax, and press Return or Enter to execute the command.
As demonstrated in the IOS Auto-Completion e-Lab, typing an abbreviated command, such as sh, followed by the Tab key completes a partial command name.
The next page will introduce some enhanced editing commands that are available in the Cisco IOS.
Sunday, May 2, 2010
Router login
Router login
2.2.5 To enter commands and configure a Cisco router, a user must log into the router to access the user interface. This page will show students how to log into a router.
For security purposes, a Cisco router has two levels of access to commands:
• User EXEC mode – Typical tasks include commands that check the status of a router.
• Privileged EXEC mode –Typical tasks include commands that change the router configuration.
The user EXEC mode prompt is displayed upon login to a router, as shown in Figure .
To enter privileged EXEC mode, type enable at the > prompt. If a password has been set, enter it at the password: prompt. The two commands that can be used to set a password for privileged EXEC mode are enable password and enable secret. Two commands can be used to set a password used to access privileged EXEC mode: enable password and enable secret. If both commands are used, the enable secret command takes precedence. After the login steps have been completed, the prompt changes to a #. This indicates that the privileged EXEC mode has been entered. The global configuration mode can only be accessed from the privileged EXEC mode. The following are specific modes that can also be accessed from the global configuration mode:
• Interface
• Subinterface
• Line
• Router
• Route-map
To return to the user EXEC mode from the privileged EXEC mode, the disable command may be entered. Type exit or end or press Ctrl-Z to return to privileged EXEC mode from global configuration mode. Ctrl-Z may also be used to return directly to the privileged EXEC mode from any sub-mode of global configuration.
The next page covers some help functions of the Cisco IOS.
2.2.5 To enter commands and configure a Cisco router, a user must log into the router to access the user interface. This page will show students how to log into a router.
For security purposes, a Cisco router has two levels of access to commands:
• User EXEC mode – Typical tasks include commands that check the status of a router.
• Privileged EXEC mode –Typical tasks include commands that change the router configuration.
The user EXEC mode prompt is displayed upon login to a router, as shown in Figure .
To enter privileged EXEC mode, type enable at the > prompt. If a password has been set, enter it at the password: prompt. The two commands that can be used to set a password for privileged EXEC mode are enable password and enable secret. Two commands can be used to set a password used to access privileged EXEC mode: enable password and enable secret. If both commands are used, the enable secret command takes precedence. After the login steps have been completed, the prompt changes to a #. This indicates that the privileged EXEC mode has been entered. The global configuration mode can only be accessed from the privileged EXEC mode. The following are specific modes that can also be accessed from the global configuration mode:
• Interface
• Subinterface
• Line
• Router
• Route-map
To return to the user EXEC mode from the privileged EXEC mode, the disable command may be entered. Type exit or end or press Ctrl-Z to return to privileged EXEC mode from global configuration mode. Ctrl-Z may also be used to return directly to the privileged EXEC mode from any sub-mode of global configuration.
The next page covers some help functions of the Cisco IOS.
Establish a console session
Establish a console session
2.2.4 This page will explain how a console session is established with a router.
All Cisco routers include a TIA/EIA-232 asynchronous serial console port. The console port is an RJ-45. Cables and adapters are needed to connect a console terminal to the console port. A console terminal is an ASCII terminal or PC that runs terminal-emulation software such as HyperTerminal. Use an RJ-45 to RJ-45 rollover cable with a female RJ-45 to DB-9 adapter to connect this type of a PC to the console port.
The default parameters for the console port are 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control. The console port does not support hardware flow control.
Take the following steps to connect a terminal to the console port on a router:
1. Connect the terminal using the RJ-45 to RJ-45 rollover cable and an RJ-45 to DB-9 adapter.
2. Configure the terminal or PC terminal emulation software for 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control.
The next page will teach students how to log into a router.
2.2.4 This page will explain how a console session is established with a router.
All Cisco routers include a TIA/EIA-232 asynchronous serial console port. The console port is an RJ-45. Cables and adapters are needed to connect a console terminal to the console port. A console terminal is an ASCII terminal or PC that runs terminal-emulation software such as HyperTerminal. Use an RJ-45 to RJ-45 rollover cable with a female RJ-45 to DB-9 adapter to connect this type of a PC to the console port.
The default parameters for the console port are 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control. The console port does not support hardware flow control.
Take the following steps to connect a terminal to the console port on a router:
1. Connect the terminal using the RJ-45 to RJ-45 rollover cable and an RJ-45 to DB-9 adapter.
2. Configure the terminal or PC terminal emulation software for 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control.
The next page will teach students how to log into a router.
Router LED indicators/The initial router bootup
Router LED indicators
2.2.2 This page will explain how routers use LED indicators.
Cisco routers use LED indicators to provide status information. LED indicators will vary for different Cisco router models.
An interface LED indicates the activity of the corresponding interface. A problem may be indicated if an LED is off when the interface is active and the interface is correctly connected. If an interface is extremely busy, its LED will always be on. The green OK LED to the right of the AUX port will be on after the system initializes correctly.
The next page will examine the initial router bootup
The initial router bootup
2.2.3 This page will discuss the information and messages that are displayed during the initial router bootup. This information will vary, depending on the interfaces in the router and the Cisco IOS release. The screens displayed on this page are for reference only and may not reflect what the screen displays on the console.
In Figure , the statement “NVRAM invalid, possibly due to write erase”, tells the user that this router has not been configured yet or that the NVRAM has been erased. In order for the NVRAM to be valid after a router is configured and the configuration file is saved to NVRAM, the router must be configured to use the NVRAM configuration file. The factory-default setting for the configuration register is 0x2102, which indicates that the router should attempt to load a Cisco IOS image from flash memory.
In Figure , the user can determine the bootstrap version and the IOS version the router is using as well as the router model, processor, and the amount of memory the router contains. The figure also includes the following information:
• The number of interfaces
• The types of interfaces
• The amount of NVRAM
• The amount of flash memory
In Figure , the user has the option to enter setup mode. Remember, the primary purpose of the setup mode is to permit an administrator to install a basic router configuration when it cannot be obtained from another source.
The next page will teach students how to establish a console session with a router.
2.2.2 This page will explain how routers use LED indicators.
Cisco routers use LED indicators to provide status information. LED indicators will vary for different Cisco router models.
An interface LED indicates the activity of the corresponding interface. A problem may be indicated if an LED is off when the interface is active and the interface is correctly connected. If an interface is extremely busy, its LED will always be on. The green OK LED to the right of the AUX port will be on after the system initializes correctly.
The next page will examine the initial router bootup
The initial router bootup
2.2.3 This page will discuss the information and messages that are displayed during the initial router bootup. This information will vary, depending on the interfaces in the router and the Cisco IOS release. The screens displayed on this page are for reference only and may not reflect what the screen displays on the console.
In Figure , the statement “NVRAM invalid, possibly due to write erase”, tells the user that this router has not been configured yet or that the NVRAM has been erased. In order for the NVRAM to be valid after a router is configured and the configuration file is saved to NVRAM, the router must be configured to use the NVRAM configuration file. The factory-default setting for the configuration register is 0x2102, which indicates that the router should attempt to load a Cisco IOS image from flash memory.
In Figure , the user can determine the bootstrap version and the IOS version the router is using as well as the router model, processor, and the amount of memory the router contains. The figure also includes the following information:
• The number of interfaces
• The types of interfaces
• The amount of NVRAM
• The amount of flash memory
In Figure , the user has the option to enter setup mode. Remember, the primary purpose of the setup mode is to permit an administrator to install a basic router configuration when it cannot be obtained from another source.
The next page will teach students how to establish a console session with a router.
Initial startup of Cisco routers
Initial startup of Cisco routers
2.2.1 This page will explain the startup process for Cisco routers.
A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router cannot find a configuration file, it enters setup mode. Upon completion of the setup mode, a backup copy of the configuration file may be saved to NVRAM.
The goal of the startup routines for Cisco IOS software is to start the router operations. To do this, the startup routines must accomplish the following:
• Verify that the router hardware is tested and functional.
• Find and load the Cisco IOS software.
• Find and apply the startup configuration file or enter the setup mode.
When a Cisco router powers up, it performs a power-on self test (POST). During this self test, the router executes diagnostics from ROM on all hardware modules. These diagnostics verify the basic operation of the CPU, memory, and network interface ports. After verifying the hardware functions, the router proceeds with software initialization.
After the POST, the following events occur as the router initializes:
1. The generic bootstrap loader in ROM executes. A bootstrap is a simple set of instructions that tests hardware and initializes the IOS for operation.
2. The IOS can be found in several places. The boot field of the configuration register determines the location that is used to load the IOS. If the boot field indicates a flash or network load, boot system commands in the configuration file indicate the exact name and location of the image.
3. The operating system image is loaded. When the IOS is loaded and operational, a listing of the available hardware and software components is sent to the console terminal screen.
4. The configuration file saved in NVRAM is loaded into main memory and executed one line at a time. The configuration commands start routing processes, supply addresses for interfaces, and define other operating characteristics of the router.
5. If no valid configuration file exists in NVRAM, the operating system searches for an available TFTP server. If no TFTP server is found, the setup dialog is initiated.
Setup mode is not intended to be used to enter complex protocol features in a router. The purpose of the setup mode is to permit administrators to install a basic configuration for routers when a configuration cannot be obtained from another source.
In the setup mode, default answers appear in square brackets [ ] following the question. Press the Enter key to use these defaults. During the setup process, Ctrl-C can be pressed at any time to terminate the process. When Ctrl-C is used to terminate setup, all interfaces are administratively shut down.
When the configuration process is completed in setup mode, the following options will be displayed:
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit. Enter your selection [2]:
The next page will discuss router LED indicators.
2.2.1 This page will explain the startup process for Cisco routers.
A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router cannot find a configuration file, it enters setup mode. Upon completion of the setup mode, a backup copy of the configuration file may be saved to NVRAM.
The goal of the startup routines for Cisco IOS software is to start the router operations. To do this, the startup routines must accomplish the following:
• Verify that the router hardware is tested and functional.
• Find and load the Cisco IOS software.
• Find and apply the startup configuration file or enter the setup mode.
When a Cisco router powers up, it performs a power-on self test (POST). During this self test, the router executes diagnostics from ROM on all hardware modules. These diagnostics verify the basic operation of the CPU, memory, and network interface ports. After verifying the hardware functions, the router proceeds with software initialization.
After the POST, the following events occur as the router initializes:
1. The generic bootstrap loader in ROM executes. A bootstrap is a simple set of instructions that tests hardware and initializes the IOS for operation.
2. The IOS can be found in several places. The boot field of the configuration register determines the location that is used to load the IOS. If the boot field indicates a flash or network load, boot system commands in the configuration file indicate the exact name and location of the image.
3. The operating system image is loaded. When the IOS is loaded and operational, a listing of the available hardware and software components is sent to the console terminal screen.
4. The configuration file saved in NVRAM is loaded into main memory and executed one line at a time. The configuration commands start routing processes, supply addresses for interfaces, and define other operating characteristics of the router.
5. If no valid configuration file exists in NVRAM, the operating system searches for an available TFTP server. If no TFTP server is found, the setup dialog is initiated.
Setup mode is not intended to be used to enter complex protocol features in a router. The purpose of the setup mode is to permit administrators to install a basic configuration for routers when a configuration cannot be obtained from another source.
In the setup mode, default answers appear in square brackets [ ] following the question. Press the Enter key to use these defaults. During the setup process, Ctrl-C can be pressed at any time to terminate the process. When Ctrl-C is used to terminate setup, all interfaces are administratively shut down.
When the configuration process is completed in setup mode, the following options will be displayed:
[0] Go to the IOS command prompt without saving this config.
[1] Return back to the setup without saving this config.
[2] Save this configuration to nvram and exit. Enter your selection [2]:
The next page will discuss router LED indicators.
Operation of Cisco IOS software
Operation of Cisco IOS software
2.1.5 This page will introduce the three distinct operating environments, or modes, of Cisco IOS devices:
The Cisco IOS devices have three distinct operating environments or modes:
• ROM monitor
• Boot ROM
• Cisco IOS
At startup, a Cisco router normally loads into RAM and executes one of these operating environments. A system administrator can use the configuration register setting to control the default startup mode for a router.
The ROM monitor performs the bootstrap process and provides low-level functionality and diagnostics. It is used to recover from system failures and to recover a lost password. The ROM monitor cannot be accessed through any of the network interfaces. It can only be accessed by way of a direct, physical connection through the console port.
When the router is running in boot ROM mode, only a limited subset of the Cisco IOS feature set is available. Boot ROM allows write operations to flash memory and is used primarily to replace the Cisco IOS image that is stored in flash. The Cisco IOS image can be modified in boot ROM with the copy tftp flash command. This command copies an IOS image that is stored on a TFTP server into the flash memory of a router.
The normal operation of a router requires use of the full Cisco IOS image as stored in flash. In some devices, the IOS is executed directly from flash. However, most Cisco routers require a copy of the IOS to be loaded into RAM and also executed from RAM. Some IOS images are stored in flash in a compressed format and have to be expanded when copied to RAM.
To see the IOS image and version that is running, use the show version command, which also indicates the configuration register setting. The show flash command is used to verify that the system has sufficient memory to load a new Cisco IOS image.
This page concludes the discussion about Cisco IOS. The next lesson will describe the initial startup of Cisco routers.
2.1.5 This page will introduce the three distinct operating environments, or modes, of Cisco IOS devices:
The Cisco IOS devices have three distinct operating environments or modes:
• ROM monitor
• Boot ROM
• Cisco IOS
At startup, a Cisco router normally loads into RAM and executes one of these operating environments. A system administrator can use the configuration register setting to control the default startup mode for a router.
The ROM monitor performs the bootstrap process and provides low-level functionality and diagnostics. It is used to recover from system failures and to recover a lost password. The ROM monitor cannot be accessed through any of the network interfaces. It can only be accessed by way of a direct, physical connection through the console port.
When the router is running in boot ROM mode, only a limited subset of the Cisco IOS feature set is available. Boot ROM allows write operations to flash memory and is used primarily to replace the Cisco IOS image that is stored in flash. The Cisco IOS image can be modified in boot ROM with the copy tftp flash command. This command copies an IOS image that is stored on a TFTP server into the flash memory of a router.
The normal operation of a router requires use of the full Cisco IOS image as stored in flash. In some devices, the IOS is executed directly from flash. However, most Cisco routers require a copy of the IOS to be loaded into RAM and also executed from RAM. Some IOS images are stored in flash in a compressed format and have to be expanded when copied to RAM.
To see the IOS image and version that is running, use the show version command, which also indicates the configuration register setting. The show flash command is used to verify that the system has sufficient memory to load a new Cisco IOS image.
This page concludes the discussion about Cisco IOS. The next lesson will describe the initial startup of Cisco routers.
Cisco IOS software features
Cisco IOS software features
2.1.4 This page will introduce some IOS images that are provided by Cisco for devices that span a wide range of network product platforms.
Cisco continues to develop different IOS software images to optimize the Cisco IOS software that these various platforms require. Each image represents a different feature set that serves the various device platforms, available memory resources, and customer needs.
Although there are numerous IOS images for different Cisco device models and feature sets, the basic configuration command structure is the same. The configuration and troubleshooting skills that are acquired for any device will apply to a wide range of products.
The naming convention for the different Cisco IOS releases contains three parts:
• The platform on which the image runs
• The special features supported in the image
• Where the image runs and whether it has been zipped or compressed
One of the main considerations when selecting a new IOS image is compatibility with the router flash and RAM memory. In general, the newer the release and the more features that it provides, the more flash and RAM memory it requires. Use the show version command on the Cisco device to check the current image and available flash.
The Cisco support site has tools available to help determine the amount of flash and RAM required for each image. For example, specific IOS features can be selected using the Cisco Software Advisor, which is available to registered Cisco.com users. The Cisco Software Advisor is an interactive tool that provides the most current information and allows users to select options that meet network requirements.
Before installing a new Cisco IOS software image on the router, check to see if the router meets the RAM memory and flash requirements for that image. To see the amount of RAM, issue the show version command:
…
2.1.4 This page will introduce some IOS images that are provided by Cisco for devices that span a wide range of network product platforms.
Cisco continues to develop different IOS software images to optimize the Cisco IOS software that these various platforms require. Each image represents a different feature set that serves the various device platforms, available memory resources, and customer needs.
Although there are numerous IOS images for different Cisco device models and feature sets, the basic configuration command structure is the same. The configuration and troubleshooting skills that are acquired for any device will apply to a wide range of products.
The naming convention for the different Cisco IOS releases contains three parts:
• The platform on which the image runs
• The special features supported in the image
• Where the image runs and whether it has been zipped or compressed
One of the main considerations when selecting a new IOS image is compatibility with the router flash and RAM memory. In general, the newer the release and the more features that it provides, the more flash and RAM memory it requires. Use the show version command on the Cisco device to check the current image and available flash.
The Cisco support site has tools available to help determine the amount of flash and RAM required for each image. For example, specific IOS features can be selected using the Cisco Software Advisor, which is available to registered Cisco.com users. The Cisco Software Advisor is an interactive tool that provides the most current information and allows users to select options that meet network requirements.
Before installing a new Cisco IOS software image on the router, check to see if the router meets the RAM memory and flash requirements for that image. To see the amount of RAM, issue the show version command:
…
Subscribe to:
Posts (Atom)