Objective: Become familiar with the basic show commands.
Lab Equipment: Router 1 from the eRouters menu
Background Reading: Lab Primer Lesson 2: Basic Commands
1. Press ENTER to get to the router prompt.
Router>
Lab Equipment: Router 1 from the eRouters menu
Background Reading: Lab Primer Lesson 2: Basic Commands
1. Press ENTER to get to the router prompt.
Router>
2. Enter privileged mode.
Router>enable
Router#
3. Display the active configuration in memory. The currently active configuration script running on the router is referred to as the running-configin the router’s CLI. Note that privileged mode is required in order to access the running configuration. The running configuration script is not automatically saved on a Cisco router and will be lost in the event of power failure. The running configuration must be manually saved with the copy command (discussed in a later lab).
Router#show running-config
4. Display flash memory. Flash memory is a special kind of memory that contains the operating system image file(s) on the router. Unlike regular router memory, flash memory continues to maintain the file image even after power is lost.
Router#show flash
5. By default, the router’s CLI maintains in memory the last 10 commands entered. The show history command displays simultaneously all of the past commands still in router memory.
Router#show history
6. Press the CTRL+P key combination to retrieve the previous command you typed.
7. Press the DOWN ARROW key or press the CTRL+N key combination to see the next command in the history buffer.
8. Use the show protocols command to view the status of the current Layer 3 routed protocols running on your router.
Router#show protocols
9. The show version command is used to obtain critical information, such as router platform type, operating system revision, operating system last boot time and file location, amount of memory, number of interfaces, and configuration register.
Router#show version
10. Use the show clock command to view the router’s clock.
Router#show clock
11. The show hosts command displays a cached list of hosts and all of their interfaces’ IP addresses.
Router#show hosts
12. Use the show users command to view a list of all users who are connected to the router.
Router#show users
13. The show interfaces command displays detailed information about each interface.
Router#show interfaces
*****************************************************
本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/69906
,如需转载请自行联系原作者