! Step 5: Inspect and verify the configuration (some output omitted for brevity):
SWI2210-XXXX# show running-config
Building configuration...
hostname SWI2210-XXXX
username admin privilege 15 password encrypted Zm9v
!
vlan 1
name default
!
interface GigabitEthernet 1/1
!
interface GigabitEthernet 1/2
!
...
interface vlan 1
ip address dhcp fallback 172.16.1.2 255.255.0.0
!
...
end
! More verification: Display IP interfaces and assigned IP address and status:
SWI2210-XXXX# show ip interface brief
Vlan Address Method Status
---- -------------------- -------- ------
1 172.16.1.15/24 DHCP UP
! An address was obtained from DHCP, so the fallback wasn’t used
! Try to inspect hostname:
SWI2210-XXXX# show hostname
^
% Invalid word detected at '^' marker.
! No such command exists, but it is possible to extract a single line from
! running-config by using a filter:
SWI2210-XXXX# show running-config | include hostname
hostname SWI2210-XXXX
! Step 6: Save configuration to flash:
SWI2210-XXXX# copy running-config startup-config
Building configuration...
% Saving 1272 bytes to flash:startup-config