6.4.3 Displaying and checking configuration entries (show command)
- <Structure of this section>
(1) Displaying and checking the startup configuration and running configuration
You can display and check the running configuration or startup configuration by using the show running-config or show startup-config operation command in administrator mode. The following figure shows an example of displaying a running configuration.
OFFICE01# show running-config ..1 #default configuration file for AX2630S-24T4XW ! hostname "OFFICE01" switch 1 provision 2630-24t4xw ! vlan 1 name "VLAN0001" ! vlan 100 state active ! vlan 200 state active ! interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 100 ! interface gigabitethernet 1/0/2 switchport mode access switchport access vlan 200 ! OFFICE01# |
-
Display the running configuration.
(2) Displaying and checking the configuration
Using the show command in configuration mode, you can display and check configuration entries before or after they have been edited. An example of displaying the configuration is shown in Figure 6-6: Displaying all the contents of the configuration to Figure 6-9: Displaying the specified interface information in interface mode.
OFFICE01(config)# show ..1 #default configuration file for AX2630S-24T4XW ! hostname "OFFICE01" switch 1 provision 2630-24t4xw ! vlan 1 name "VLAN0001" ! vlan 100 state active ! vlan 200 state active ! interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 100 ! interface gigabitethernet 1/0/2 switchport mode access switchport access vlan 200 ! OFFICE01(config)# |
-
Display the entire running configuration when you omit all parameters.
OFFICE01(config)# show interface gigabitethernet ..1 interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 100 ! interface gigabitethernet 1/0/2 switchport mode access switchport access vlan 200 ! OFFICE01(config)# |
-
Display all the configured interfaces in the running configuration.
OFFICE01(config)# show interface gigabitethernet 1/0/1 ..1 interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 100 ! OFFICE01(config)# |
-
Display interface 1/0/1 in the running configuration.
OFFICE01(config)# interface gigabitethernet 1/0/1 OFFICE01(config-if)# show ..1 interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 100 ! OFFICE01(config-if)# |
-
Display interface 1/0/1 in the running configuration.