CISCO路由器中,show 必须是在特权模式下才可以,也就是SH-2811C#show。
如果在全局配置或者合局配置子模式下是要在show前面加do,也就是 do show。
如下:
SH-2811C#show run
Building configuration...
Current configuration : 1602 bytes
!
! Last configuration change at 00:02:50 GMT Mon Jul 6 2015 by cisco,123
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SH-2811C
!
---------------------------------
SH-2811C(config)#do show run
Building configuration...
Current configuration : 1602 bytes
!
! Last configuration change at 00:02:50 GMT Mon Jul 6 2015 by cisco,123
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SH-2811C
!
-----------------------------------
SH-2811C(config)#interface fastEthernet 0/1
SH-2811C(config-if)#do show run
Building configuration...
Current configuration : 1602 bytes
!
! Last configuration change at 00:02:50 GMT Mon Jul 6 2015 by cisco,123
!
version 15.0
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SH-2811C
!
--------------------------------
全局模式下没加do
SH-2811C(config)#interface fastEthernet 0/1
SH-2811C(config-if)#show run
^
% Invalid input detected at '^' marker.
SH-2811C(config-if)#