Cisco Certified Network Associate (ccna) Practice Lab


Task 3 - Managing Startup and Running Configurations



Download 1.21 Mb.
Page24/38
Date21.09.2022
Size1.21 Mb.
#59567
1   ...   20   21   22   23   24   25   26   27   ...   38
Cisco CCNA Lab 1

Task 3 - Managing Startup and Running Configurations


In this task, you will examine different types of configuration files stored on a device.
You will learn how to save your configuration in device memory permanently.

Step 1


To view the startup configuration, you simply use the following command in privileged executive mode:
NYACCESS1#
show startup-config
Press Enter.
You will see the following output:
NYACCESS1#show startup-config
startup-config is not present
Notice that there is no startup-config yet. Remember that this switch is being configured from scratch, right out of the box, so no startup configuration exists on the device.

Step 2


However, a running configuration does exist in the RAM. This is because you have already made some changes to the device with the configuration commands that you entered in the previous section. These commands took effect immediately and were added to the running configuration.
Now you can copy the running-config to the startup-config. To do that, issue the following command. When you are asked about the destination file name, accept the default which is shown in the square brackets “[ ]” by pressing Enter:
NYACCESS1#
copy running-config startup-config
Press Enter.
Destination filename [startup-config]?
Press Enter.
The output will be as follows:
NYACCESS1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
NYACCESS1#
Note: If you choose to, it is also possible to copy the startup-config to the running-config just by switching the order of the command. This is useful when you want to revert to the startup-config without having to reboot the device.

Step 3


Re-issue the show startup-config command. If you like, you can compare this to the show running-config command. They should be the same at this point, as we have not made any additional configuration changes. Again, use or CTRL+C to stop having to page through the configuration:
NYACCESS1#
show startup-config
Press Enter.
You will see the following output:
NYACCESS1#show startup-config
Using 1390 out of 65536 bytes
!
! Last configuration change at 00:02:42 UTC Mon Mar 1 1993
!
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname NYACCESS1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$30Cc$Y2tG2jJ5A5FfTqbEM90e91
enable password 7 045802150C2E1D
!
no aaa new-model
system mtu routing 1500
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
!
!<-- Output Omitted -->
!
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
no ip route-cache
shutdown
!
ip http server
ip http secure-server
!
!
line con 0
line vty 5 15
!
end
NYACCESS1#

Step 4


To erase the startup configuration, you can use either the write erase or erase startup-config command. As before, when prompted, to accept the default value shown in the square brackets “[ ]” press Enter:

Download 1.21 Mb.

Share with your friends:
1   ...   20   21   22   23   24   25   26   27   ...   38




The database is protected by copyright ©ininet.org 2024
send message

    Main page