Getting Started
Page 26
2.5.5
Displaying and Saving the Configuration
You can display the current configuration of the device in the form of a virtual file called
running-config
which contains the full set of commands necessary to create an identical
configuration.
The file sequence is as follows:
hostname
command
Password for the admin user
VLANs 1 and 42 and other items, such as Spanning Tree Protocol (STP)
List of all port interfaces on the device, ordered by switch ID, type and port number
VLAN interfaces 1 and 42 (only 1 has an assigned IP address)
Line section, which specifies the characteristics for the serial console (line console 0)
or network CLI management connections (line
vty x
)
Note: Certain items, e.g., private SSH keys, are not displayed.
»
Display the configuration settings:
Notes:
-
The set of interfaces depends on hardware capabilities.
-
Lines beginning with "!" are comments
my-device#
show running-config
Building configuration...
hostname my-device
username admin privilege 15 password encrypted dmVyeS1zZWNyZXQ=
!
vlan 1
name default
!
spanning-tree mst name 00-01-c1-00-ad-80 revision 0
! [...]
!
interface GigabitEthernet 1/1
!
interface GigabitEthernet 1/2
!
! [...]
!
interface 2.5GigabitEthernet 1/1
!
interface 2.5GigabitEthernet 1/2
!
interface vlan 1
ip address dhcp fallback 172.16.1.2 255.255.0.0
!
line console 0
!
line vty 0
!
! [...]
!
end