Promjena konfiguracije pokretanja

Edukacije Brček
22 Jun 202407:07

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

00:00

💾 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.

05:02

🔄 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

A switch is a networking device that connects devices together on a computer network, enabling them to communicate. In the video, the switch is used to demonstrate how to save and erase configurations. The switch's behavior and setup, such as host name and password configurations, are key aspects of the tutorial.

💡Privileged Exec Mode

Privileged Exec Mode allows advanced access to a switch, providing a user with permission to make configurations. In the video, the user types 'enable' to enter this mode, which is necessary before making changes like saving configurations or modifying the switch’s settings.

💡Global Configuration Mode

Global Configuration Mode is the mode where a user can make changes to the switch that affect its overall behavior, such as setting a hostname or configuring passwords. The command 'configure terminal' is used to enter this mode in the video, highlighting its central role in making system-wide adjustments.

💡Running Configuration

The running configuration is the current set of settings that the switch is using and stored in volatile RAM. In the video, it is shown how the running configuration can be copied to the startup configuration to preserve settings across reboots. The running configuration is volatile and will be lost if not saved.

💡Startup Configuration

The startup configuration is stored in non-volatile memory (NVRAM) and is the configuration that the switch loads when it boots up. The video explains how copying the running configuration to the startup configuration ensures that settings are not lost after a reboot.

💡NV RAM

NV RAM, or non-volatile RAM, is memory that retains data even after the device is powered off. In the video, the startup configuration is stored in NV RAM, allowing the switch to retain its settings after being restarted. This contrasts with the running configuration, which is stored in regular volatile RAM.

💡Command Shortening

Command shortening allows users to type abbreviated commands, which the system recognizes and completes. In the video, the command 'copy run start' is used as a shorter form of 'copy running-config startup-config,' showing how this feature makes the command-line interface more efficient.

💡Reload

Reloading refers to restarting the switch, which loads the startup configuration. In the video, the reload command is used to demonstrate how the configuration persists after a reboot if it has been saved to the startup configuration, indicating that the process worked as expected.

💡Erase Startup-Config

Erasing the startup configuration removes the saved configuration from NV RAM, returning the switch to its default state after a reboot. In the video, the command 'erase startup-config' is demonstrated, and upon reload, the switch no longer requires a password, indicating the configuration was erased.

💡Hostname

The hostname is the name assigned to a device for easy identification on the network. In the video, the switch’s hostname is set to 'S1' and later changed to 'my switch,' demonstrating how the hostname can be changed and how saving or reverting configurations can affect it.

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

play00:02

after you've begun some initial

play00:03

configurations on your switch you'll

play00:06

want to know how to save your

play00:08

configuration you can see that I'm using

play00:10

Packet Tracer and I have a command line

play00:13

interface to the switch notice the

play00:16

banner message and then I'm being

play00:18

prompted for a password I'll put in the

play00:20

password

play00:21

Cisco type enable password class to get

play00:26

to privileged exec

play00:28

mode I'll type in configure terminal to

play00:31

get to Global config mode and I'll set

play00:33

the host name of the switch to S1 to

play00:37

save the configuration on the Switch

play00:39

I'll go back to privileged exec mode by

play00:42

typing exit and pressing enter and then

play00:44

from privileged exec mode I put in the

play00:47

command

play00:48

copy

play00:52

running-config startup Das config this

play00:57

command means copy the running

play00:58

configuration to the Startup

play01:00

configuration file the running

play01:03

configuration is the currently working

play01:05

configuration that's running in RAM

play01:08

memory the Startup configuration file is

play01:11

stored in EnV RAM memory the difference

play01:15

is that Ram is volatile and NV Ram is

play01:19

nonvolatile so if you copy the

play01:22

configuration to NV Ram it will be

play01:24

available when the switch is restarted

play01:26

or reloaded so I'll press enter and you

play01:29

can can see that I'm prompted for the

play01:31

destination file name the default name

play01:34

is startup-config and you can see it

play01:36

between the brackets I'll press enter to

play01:39

accept the name within the

play01:41

brackets my configuration is now saved I

play01:45

can verify the location of my saved

play01:47

configuration file by putting in the

play01:49

command dir for directory I'll put a

play01:53

space in a question mark and you can see

play01:55

that there's two different types of

play01:57

storage that I have access to

play02:00

flash memory and NV Ram both of these

play02:04

are nonvolatile the flash memory holds

play02:07

the IOS operating system and the EnV Ram

play02:10

holds the configuration file I'll put in

play02:13

EnV RAM and a Colin and press enter and

play02:17

you can see there's the startup-config

play02:20

file now if I was to reload the switch

play02:23

or incur a power failure my

play02:25

configurations will remain I'll press

play02:28

the arrow keys on my keyboard Bo and do

play02:30

an up Arrow to go back to the command

play02:33

copy running-config startup-config

play02:35

there's an easier way of typing this

play02:38

command with command shortening instead

play02:41

of having to type out running-config and

play02:44

startup-config I can simply type

play02:48

copy

play02:50

Run start and command shortening will

play02:53

finish the command for

play02:55

me if I reload The Switch I'll put in

play02:58

the reload command

play03:00

proceed with reload I'll press enter to

play03:02

confirm we'll see that after the switch

play03:05

reloads that the host name will remain

play03:08

S1 and we should see the same Banner

play03:13

message you can see there's the banner

play03:15

message I'm prompted for a password this

play03:18

indicates that the configuration was

play03:20

saved and the host name or device name

play03:23

shows up on the command prompt also

play03:25

indicating that the configuration was

play03:28

successfully saved and reloaded upon

play03:31

startup if I wish to erase the

play03:34

configuration I'll type in enable put in

play03:37

my password to get back to privileged

play03:38

exec mode I can put in the command

play03:42

erase sta I'll press the Tab Key to

play03:45

finish the command and the full command

play03:48

is erase startup-config

play03:50

I'll press enter and I'm given a warning

play03:55

do I want to really do this do I want to

play03:57

continue the default answer is confirmed

play03:59

so I'll press enter you can see the

play04:01

message output to the screen indicating

play04:04

that the NV Ram has been altered or in

play04:07

this case erased I can now reload the

play04:10

switch and this time upon reload it

play04:14

should take us directly to the switch

play04:16

command prompt without any

play04:18

authentication required or Banner

play04:22

message I'll press enter and you can see

play04:25

that I'm brought directly to the switch

play04:27

command prompt the host name s one is no

play04:30

longer there nor Banner message nor line

play04:33

console zero password required let's say

play04:37

I make some changes to the switch for

play04:39

instance I'll type

play04:41

enable and config T to get to Global

play04:44

configuration mode and I'll change the

play04:47

host name to my

play04:51

switch you can see the device name is

play04:54

now my switch I'll exit and save the

play04:58

configuration

play05:02

so the running configuration has been

play05:04

saved to the Startup configuration file

play05:07

now let's say I continue with some

play05:09

additional

play05:10

configurations I get to Global config

play05:12

mode and I set a line console

play05:17

0 password to Cisco I put in the login

play05:23

command and let's say I change the host

play05:28

name one more time this time to

play05:31

S1 now I've made these changes now the

play05:34

current state of the switch is that it's

play05:36

running the latest configurations in

play05:39

running configuration that means the

play05:41

latest configurations are running in RAM

play05:44

memory let's say I'm no longer happy

play05:47

with the configurations I've just added

play05:49

to the switch and I want to go back to

play05:51

the last saved State the last save state

play05:55

is where the device name was named my

play05:57

switch I've changed it now to S1 but I

play06:00

haven't saved the configuration I can

play06:03

revert back to the previous saved

play06:05

configuration by exiting to privileged

play06:09

exec mode and copying in this case not

play06:12

the running config to the startup config

play06:15

but the opposite I'll copy the Startup

play06:20

configuration to the running

play06:24

configuration this will load the Startup

play06:27

configuration file into to RAM and make

play06:30

it the new running configuration I'll

play06:33

press enter and I'll accept the default

play06:37

and you can see that the switch has

play06:39

changed names back to my switch the

play06:43

startup config was loaded into the

play06:45

running config this does not completely

play06:47

erase the running config but rather the

play06:50

configurations in the startup config

play06:53

will be merged into the running config

play06:56

knowing how to save your configuration

play06:59

and AR Bas a configuration and reload

play07:01

the switch is an important skill to

play07:04

master

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Switch ConfigPacket TracerCisco CommandsNetworking BasicsRunning ConfigStartup ConfigConfiguration BackupIT TrainingNetworking SkillsSwitch Reload
هل تحتاج إلى تلخيص باللغة الإنجليزية؟