Promjena konfiguracije pokretanja
Summary
TLDRThis video tutorial demonstrates how to save, erase, and reload configurations on a network switch using Packet Tracer's command-line interface. It covers essential commands like copying the running configuration to the startup configuration, managing the switch's hostname, setting up passwords, and erasing saved settings. Additionally, it explains how to revert back to a previously saved configuration if unwanted changes are made. By mastering these skills, users can ensure their configurations are preserved across reboots and maintain proper network setup.
Takeaways
- 🔐 To begin configuring a switch, enter the password at the command line interface prompt.
- 🔑 Use the command 'enable' followed by the password 'class' to enter privileged exec mode.
- 💻 Enter 'configure terminal' to switch to Global Configuration mode.
- 🏷️ Set the hostname of the switch using the command 'hostname S1'.
- 💾 To save the current configuration, use the command 'copy running-config startup-config'.
- ⚡ The running configuration is stored in RAM, while the startup configuration is stored in non-volatile memory (NVRAM).
- 📁 You can verify the saved configuration by using the 'dir' command to view storage locations like flash memory and NVRAM.
- 🚀 To reload the switch, use the 'reload' command, which will retain the saved configuration after reboot.
- 🛑 To erase the startup configuration, use the 'erase startup-config' command and confirm the action.
- 🔄 You can revert to a previous saved configuration by copying the startup configuration to the running configuration using 'copy startup-config running-config'.
Q & A
What command is used to enter privileged exec mode on a switch?
-The command to enter privileged exec mode is 'enable'.
How do you enter Global configuration mode from privileged exec mode?
-To enter Global configuration mode, you use the command 'configure terminal'.
What command is used to save the current running configuration to the startup configuration?
-The command to save the running configuration to the startup configuration is 'copy running-config startup-config'.
What is the difference between the running configuration and the startup configuration?
-The running configuration is the active configuration stored in RAM, while the startup configuration is stored in non-volatile memory (NVRAM) and is loaded when the switch restarts.
Why is it important to save the running configuration to the startup configuration?
-Saving the running configuration ensures that any changes made will persist after the switch is restarted, as the startup configuration is stored in non-volatile memory.
How can you verify the saved configuration file location?
-You can verify the location by using the command 'dir' followed by the storage type, such as 'nvram:', to list the files stored in NVRAM.
What happens if you reload the switch without saving the running configuration?
-If the running configuration is not saved to the startup configuration before reloading, any changes made will be lost, and the switch will revert to the last saved configuration in NVRAM.
How can you erase the saved startup configuration?
-To erase the startup configuration, use the command 'erase startup-config'.
What is the purpose of the 'reload' command in the context of switch configuration?
-The 'reload' command restarts the switch, applying the startup configuration as the active running configuration.
How can you restore the switch to its previous saved configuration without erasing the current running configuration?
-You can restore the previous saved configuration by copying the startup configuration to the running configuration using the command 'copy startup-config running-config'.
Outlines
💾 Saving Switch Configuration
This paragraph explains how to save the configuration on a Cisco switch using Packet Tracer. The process starts by logging into the switch with the enable password and entering global configuration mode. The host name of the switch is set to S1. To save the configuration, the user exits to privileged exec mode and uses the command 'copy running-config startup-config' to copy the running configuration (currently in RAM) to the startup configuration file (stored in NVRAM). This ensures the configuration persists after a switch restart. The user verifies the saved configuration by checking the NVRAM contents with the 'dir' command. An alternative, shorter command 'copy run start' is also demonstrated. Finally, the user shows how the configuration remains after a switch reload, confirming the save was successful.
🔄 Reverting to Previous Configuration
This paragraph demonstrates how to revert to a previous configuration on a Cisco switch. After making additional changes such as setting a console password and changing the host name to 'S1', the user decides to revert to the last saved state when the host name was 'my switch'. To do this, the user exits to privileged exec mode and issues the command 'copy startup-config running-config', which loads the previous startup configuration into RAM, effectively merging it with the current running configuration. The paragraph emphasizes the importance of knowing how to save configurations, revert to a previous state, and reload the switch.
Mindmap
Keywords
💡Switch
💡Privileged Exec Mode
💡Global Configuration Mode
💡Running Configuration
💡Startup Configuration
💡NV RAM
💡Command Shortening
💡Reload
💡Erase Startup-Config
💡Hostname
Highlights
Begin saving switch configuration by entering privileged exec mode using the 'enable' command and entering the password.
Enter global configuration mode with 'configure terminal' and set the switch hostname to 'S1'.
To save the current configuration, exit global config mode and type 'copy running-config startup-config'.
Running configuration is stored in volatile RAM, while startup configuration is stored in non-volatile NVRAM.
Saving the configuration to NVRAM ensures it remains after a restart or power failure.
After typing 'copy running-config startup-config', press enter to accept the default startup configuration file name.
Verify the saved configuration using the 'dir' command, which lists storage options like flash memory and NVRAM.
Flash memory stores the IOS operating system, while NVRAM stores the startup configuration file.
Use 'copy run start' as a shortcut to save the configuration with command shortening.
The reload command restarts the switch, confirming that the configuration is retained after reboot by checking for the hostname and banner.
To erase the startup configuration, use the 'erase startup-config' command, which clears NVRAM.
Reloading the switch after erasing the startup config takes you directly to the switch prompt without authentication.
Changes like setting the console password and hostname can be saved using 'copy running-config startup-config'.
If you're unhappy with recent changes, revert to the last saved configuration by copying the startup config to the running config.
The startup config merges into the running config, restoring previous settings while keeping any unsaved changes intact.
Transcripts
after you've begun some initial
configurations on your switch you'll
want to know how to save your
configuration you can see that I'm using
Packet Tracer and I have a command line
interface to the switch notice the
banner message and then I'm being
prompted for a password I'll put in the
password
Cisco type enable password class to get
to privileged exec
mode I'll type in configure terminal to
get to Global config mode and I'll set
the host name of the switch to S1 to
save the configuration on the Switch
I'll go back to privileged exec mode by
typing exit and pressing enter and then
from privileged exec mode I put in the
command
copy
running-config startup Das config this
command means copy the running
configuration to the Startup
configuration file the running
configuration is the currently working
configuration that's running in RAM
memory the Startup configuration file is
stored in EnV RAM memory the difference
is that Ram is volatile and NV Ram is
nonvolatile so if you copy the
configuration to NV Ram it will be
available when the switch is restarted
or reloaded so I'll press enter and you
can can see that I'm prompted for the
destination file name the default name
is startup-config and you can see it
between the brackets I'll press enter to
accept the name within the
brackets my configuration is now saved I
can verify the location of my saved
configuration file by putting in the
command dir for directory I'll put a
space in a question mark and you can see
that there's two different types of
storage that I have access to
flash memory and NV Ram both of these
are nonvolatile the flash memory holds
the IOS operating system and the EnV Ram
holds the configuration file I'll put in
EnV RAM and a Colin and press enter and
you can see there's the startup-config
file now if I was to reload the switch
or incur a power failure my
configurations will remain I'll press
the arrow keys on my keyboard Bo and do
an up Arrow to go back to the command
copy running-config startup-config
there's an easier way of typing this
command with command shortening instead
of having to type out running-config and
startup-config I can simply type
copy
Run start and command shortening will
finish the command for
me if I reload The Switch I'll put in
the reload command
proceed with reload I'll press enter to
confirm we'll see that after the switch
reloads that the host name will remain
S1 and we should see the same Banner
message you can see there's the banner
message I'm prompted for a password this
indicates that the configuration was
saved and the host name or device name
shows up on the command prompt also
indicating that the configuration was
successfully saved and reloaded upon
startup if I wish to erase the
configuration I'll type in enable put in
my password to get back to privileged
exec mode I can put in the command
erase sta I'll press the Tab Key to
finish the command and the full command
is erase startup-config
I'll press enter and I'm given a warning
do I want to really do this do I want to
continue the default answer is confirmed
so I'll press enter you can see the
message output to the screen indicating
that the NV Ram has been altered or in
this case erased I can now reload the
switch and this time upon reload it
should take us directly to the switch
command prompt without any
authentication required or Banner
message I'll press enter and you can see
that I'm brought directly to the switch
command prompt the host name s one is no
longer there nor Banner message nor line
console zero password required let's say
I make some changes to the switch for
instance I'll type
enable and config T to get to Global
configuration mode and I'll change the
host name to my
switch you can see the device name is
now my switch I'll exit and save the
configuration
so the running configuration has been
saved to the Startup configuration file
now let's say I continue with some
additional
configurations I get to Global config
mode and I set a line console
0 password to Cisco I put in the login
command and let's say I change the host
name one more time this time to
S1 now I've made these changes now the
current state of the switch is that it's
running the latest configurations in
running configuration that means the
latest configurations are running in RAM
memory let's say I'm no longer happy
with the configurations I've just added
to the switch and I want to go back to
the last saved State the last save state
is where the device name was named my
switch I've changed it now to S1 but I
haven't saved the configuration I can
revert back to the previous saved
configuration by exiting to privileged
exec mode and copying in this case not
the running config to the startup config
but the opposite I'll copy the Startup
configuration to the running
configuration this will load the Startup
configuration file into to RAM and make
it the new running configuration I'll
press enter and I'll accept the default
and you can see that the switch has
changed names back to my switch the
startup config was loaded into the
running config this does not completely
erase the running config but rather the
configurations in the startup config
will be merged into the running config
knowing how to save your configuration
and AR Bas a configuration and reload
the switch is an important skill to
master
تصفح المزيد من مقاطع الفيديو ذات الصلة
Kretanje između IOS načina rada
IOS CLI primarni načini naredbe
2.9.1 Packet Tracer - Basic Switch and End Device Configuration
CCNA1-ITNv7 - Module 02 - Basic Switch and End Device Configuration config
Siguran administrativni pristup prekidaču
Free CCNA | Configuring Interfaces | Day 9 Lab | CCNA 200-301 Complete Course
5.0 / 5 (0 votes)