10.12.2 show running-config命令
上文已经使用过show running-config命令了,这是最常用的一条show命令,它可以显示交换机活动的配置文件,包括交换机名称、密码、接口配置情况以及辅助端口的配置等。例10-53是一个show running-config命令的输出信息。
例10-53 利用show running-config命令显示系统的配置:
Catalyst2950#show running-config Building configuration... Current configuration : 1035 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Catalyst2950 ! enable secret 5 $1$sUVW$pmbgIVKXgF4cOGTpHxCuA1 enable password 3com ! ip subnet-zero ! ip ssh time-out 120 ip ssh authentication-retries 3 ! spanning-tree mode pvst no spanning-tree optimize bpdu transmission spanning-tree extend system-id ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 …………………………… interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface Vlan1 ip address 192.168.1.8 255.255.255.0 no ip route-cache ! ip http server access-list 1 permit 192.168.1.1 ! line con 0 password cisco line vty 0 4 access-class 1 in password cisco login line vty 5 15 login ! ! end Catalyst2950# |
【责任编辑:
杜书 TEL:(010)68476606】