Command:

show config

Mode:

Switch> (enable)


Syntax:

show config {system | mod_num} [all]


Syntax Description:

system

Keyword that specifies to display system configuration.

mod_num

Variable that specifies the number of the module.

all

(Optional) Keyword that specifies all modules and system configuration information, including the IP address.


Command Description:

Use the show config command to display the non-default system configuration.


Examples:

This example shows how to display the nondefault system and module configuration:

Console> (enable) show config

This command shows non-default configurations only.
Use 'show config all' to show both default and non-default configurations.
..........

begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
#Time: Thu Dec 23 1999, 21:56:01
!
#version 5.4(0.52)MIA7-Eng
#System Web Interface Version 5.0(0.25)
!
set editing disable
!
#frame distribution method
set port channel all distribution mac unknown
!
#snmp
set snmp trap 0.0.0.0
set snmp trap 0.0.0.0
!
#kerberos
set kerberos server  0.0.0.0
set kerberos server  0.0.0.0
set kerberos realm
set kerberos realm
!
#vtp
set vtp domain Lab_Network
set vtp v2 enable
set vtp pruning enable
set vlan 1 name default type ethernet mtu 1500 said 100001 state active
set vlan 2 name VLAN0002 type ethernet mtu 1500 said 100002 state active
set vlan 6 name VLAN0006 type ethernet mtu 1500 said 100006 state active
set vlan 10 name VLAN0010 type ethernet mtu 1500 said 100010 state active
set vlan 20 name VLAN0020 type ethernet mtu 1500 said 100020 state active
set vlan 50 name VLAN0050 type ethernet mtu 1500 said 100050 state active
set vlan 100 name VLAN0100 type ethernet mtu 1500 said 100100 state active
set vlan 152 name VLAN0152 type ethernet mtu 1500 said 100152 state active
set vlan 200 name VLAN0200 type ethernet mtu 1500 said 100200 state active
set vlan 300 name VLAN0300 type ethernet mtu 1500 said 100300 state active
set vlan 303 name VLAN0303 type fddi mtu 1500 said 100303 state active
set vlan 400 name VLAN0400 type ethernet mtu 1500 said 100400 state active
set vlan 500 name VLAN0500 type ethernet mtu 1500 said 100500 state active
set vlan 521 name VLAN0521 type ethernet mtu 1500 said 100521 state active
set vlan 524 name VLAN0524 type ethernet mtu 1500 said 100524 state active
set vlan 570 name VLAN0570 type ethernet mtu 1500 said 100570 state active
set vlan 801 name VLAN0801 type trbrf mtu 4472 said 100801 state active bridge
set vlan 850 name VLAN0850 type ethernet mtu 1500 said 100850 state active
set vlan 917 name VLAN0917 type ethernet mtu 1500 said 100917 state active
set vlan 999 name VLAN0999 type ethernet mtu 1500 said 100999 state active
set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state acti
set vlan 1005 name trbrf-default type trbrf mtu 4472 said 101005 state active b
set vlan 802 name VLAN0802 type trcrf mtu 4472 said 100802 state active parent
set vlan 1003 name trcrf-default type trcrf mtu 4472 said 101003 state active p
set vlan 3 translation 303 translation 0
set vlan 4 translation 304 translation 0
set vlan 5 translation 305 translation 0
set vlan 303 translation 3 translation 0
set vlan 304 translation 4 translation 0
set vlan 305 translation 5 translation 0
set vlan 351 translation 524 translation 0
set vlan 524 translation 351 translation 0
!
#ip
set interface sc0 1 1.10.11.212/255.255.255.0 1.10.11.255

set ip route 0.0.0.0/0.0.0.0         172.20.52.126
set ip route 0.0.0.0/0.0.0.0         172.20.52.125
set ip route 0.0.0.0/0.0.0.0         172.20.52.121
!
#rcp
set rcp username 1
!
#dns
set ip dns server 171.68.10.70 primary
set ip dns server 171.68.10.140
set ip dns enable
set ip dns domain cisco.com
!
#spantree

set spantree fwddelay 4     801
set spantree maxage   10    801
#portfast

set spantree portfast bpdu-guard enable

#vlan 802
set spantree fwddelay 4     802
set spantree maxage   10    802
set spantree portstate 802 block 801
#vlan 1003
set spantree fwddelay 4     1003
set spantree maxage   10    1003
set spantree portstate 1003 block 1005
!
#syslog
set logging server 172.20.101.182
!
#set boot command

set boot config-register 0x100

set boot system flash bootflash:cat6000-sup.5-4-0-52.bin

!
#HTTP commands
set ip http server enable
set ip http port 1922
!

# default port status is disable

!
#mls
set mls nde disable
!
#qos
set qos enable
set qos map 1q4t 1 1 cos 2
set qos map 1q4t 1 1 cos 3
set qos map 1q4t 1 1 cos 4
set qos map 1q4t 1 1 cos 5
set qos map 1q4t 1 1 cos 6
set qos map 1q4t 1 1 cos 7
!
#Accounting
set accounting commands enable config stop-only tacacs+
!

# default port status is enable

!

#module 1 : 2-port 1000BaseX Supervisor
!
#module 2 empty
!
#module 3 : 48-port 10/100BaseTX (RJ-45)
set spantree portfast   3/8 enable
!
#module 4 empty
!
#module 5 : 48-port 10/100BaseTX (RJ-45)
!
#module 6 empty
!
set vlan 100  6/1
set spantree portcost    6/1  200
!
#module 7 : 24-port 10/100BaseTX Ethernet
set vlan 5    7/5
set vlan 100  7/23
set vlan 200  7/9
set port disable    7/5

set port name       7/9  1528 Hub
set port security 7/10 enable
set port security 7/10 maximum 200
set port security 7/10 00-11-22-33-44-55
set port security 7/10 00-11-22-33-44-66
set port security 7/10 00-11-22-33-44-77
set port security 7/10 violation restrict
set port security 7/10 age 30
set trunk 7/1  desirable isl 1-1005
set trunk 7/2  desirable isl 1-1005
set trunk 7/3  desirable isl 1-1005
set trunk 7/4  desirable isl 1-1005
set trunk 7/10 off negotiate 1-1005
set trunk 7/23 on isl 1-1005
set spantree portcost    7/23  150
set spantree portvlancost 7/23 cost 50 100
!
#module 8 empty
!
#module 9 empty
!
#module 15 empty
!
#module 16 empty
end
Console>

This example shows how to display default and nondefault configuration information:

Console> show config all

begin
!
# ***** ALL (DEFAULT and NON-DEFAULT) CONFIGURATION *****
!
#Current Time: Thu Dec 23 1999, 14:01:24
!
#version 5.4(0.52)
!
set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70
set prompt Console>
set length 24 default
set logout 20
set banner motd ^C^C
!
#system
set system baud  9600
set system modem disable
set system name
set system location
set system contact
!
... <truncated display>
#gvrp
set gvrp dynamic-vlan-creation disable
set gvrp disable
end
console>
 

This example shows how to display nondefault system configuration information:

Console> show config system

begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
#Current Time: Thu Dec 23 1999, 14:01:24
!
#version 5.4(0.52)
!
!
#set boot command
set boot config-register 0x2
set boot system flash bootflash:kk1
end
Console>

This example shows how to display all system default and nondefault configuration information:

Console> show config system all

begin
!
#system
set system baud  9600
set system modem disable
set system name
set system location
set system contact
!
end
Console>

This example shows how to display nondefault configuration information for module 1:

Console> show config 1

..............
begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
#Current Time: Thu Dec 23 1999, 14:01:24
!
#version 5.4(0.52)
!
!
#module 1 : 4-port 10/100BaseTX Supervisor
!
end
Console>

This example shows how to display default and nondefault configuration information for module 1:

Console> show config 1 all

begin
!
#module 1 : 4-port 10/100BaseTX Supervisor
set module name    1
set vlan 1    1/1-4
set port channel 1/1-4 off
... <truncated display>
set port flowcontrol    1/1-4 receive on
set cdp enable   1/1-4
set trunk 1/1  auto negotiate 1-1005
... <truncated display>
set trunk 1/4  auto negotiate 1-1005
set spantree portfast    1/1-4 disable
... <truncated display>
set spantree portvlancost 1/4  cost 99
set port gvrp     1/1-4  disable
set gvrp registration normal   1/1-4
set gvrp applicant normal   1/1-4
set port gmrp   1/1-4  enable
set gmrp registration normal   1/1-4
set gmrp fwdall disable    1/1-4
!
end
Console>

 


Misconceptions:

By default, this command shows only nondefault configurations. To view the
entire configuration, use the keyword all.


Related Commands:
None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)