- [Instructor] It is important to remember
that all the switch commands can be accessed
from the Privileged EXEC Mode.
Configuring a password to protect the privileged mode,
from unauthorized access is considered a best practice.
There are two options available,
the enable password and the enable secret.
Both of these commands accomplish exactly the same thing.
They allow you to configure a password
that the user must enter,
in order to access the Privileged EXEC Mode.
The enable secret option is the better choice,
because it encrypts the password.
The enable password command is considered a legacy command.
It's typically only used with the older Cisco devices.
The ones that do not support
the newer enable secret command.
I'm going to demonstrate how to configure
both of these commands on the West Switch.
First, I click on the switch,
expand the window, hit Enter.
The password I set is console0.
I type enable,
config, from the terminal session, enable.
I'm going to go ahead and do a question mark.
You can see that I have two options,
enable password or enable secret.
I'm going to go ahead and do the enable password first.
Enable password, I'm going to use password1 as a password,
and then I'll go ahead and do the enable secret as well.
Enable secret secret1.
That's all it takes to configure both of the passwords that
are available to secure access to the Privileged EXEC Mode.
If I do a Control Z, takes me all the way out.
Do a show run, go ahead and scroll up.
You can see that the passwords are set,
enable password and it's encrypted form,
and the enable password as password1.
So if both of these commands have been entered
on the switch, you will have to enter
the enable secret password in order to gain access
to the Privileged EXEC Mode.
The enable secret command has priority
over the enable password command.