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
![](https://i-blog.csdnimg.cn/blog_migrate/20c3620b9f15c3c6edef4f331076c042.png)
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
![](https://i-blog.csdnimg.cn/blog_migrate/36addec95dd71d37a60ea855c4aafa8f.png)
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
![](https://i-blog.csdnimg.cn/blog_migrate/e647d6fbe7b187a64f6409b0aacb5601.png)
6. Press the CTRL+P key combination to retrieve the previous command you typed.
![](https://i-blog.csdnimg.cn/blog_migrate/00110f1ded112e6d8f1f6a30cb8bbdeb.png)
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
![](https://i-blog.csdnimg.cn/blog_migrate/9333a5937865ec7c5586a29c3bf2548a.png)
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
![](https://i-blog.csdnimg.cn/blog_migrate/fa339716f1f0c4207e5b252e69e5c8a4.png)
10. Use the show clock command to view the router’s clock.
Router#show clock
![](https://i-blog.csdnimg.cn/blog_migrate/df85b3c7a0b4c9952351c6be200d7c36.png)
11. The show hosts command displays a cached list of hosts and all of their interfaces’ IP addresses.
Router#show hosts
![](https://i-blog.csdnimg.cn/blog_migrate/ed653a0b41ea5d1463d0d13b1a3fca9e.png)
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
![](https://i-blog.csdnimg.cn/blog_migrate/c2d8a9413b7c6ed86a478dde187c2a8a.png)
*****************************************************
本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/69906
,如需转载请自行联系原作者