Lecture-4 - Switch and Basic Configuration
Lecture-4 - Switch and Basic Configuration
Configuration
Encrypting Privilege Mode Password During Creation
To encrypt password, be in the global config mode.
Type, ‘enable secret cisco’ and press enter. (where cisco is password)
To check the password, go to # mode and type ‘show running-config’ and enter.
You will see that your password is encrypted. You find an MD5 hash in the
configuration. The “5” that you see behind “enable secret” is the algorithm that we
use, 5 means MD5.
Note: This type of password provides very high level of security. This is known as md5 (Message-Digest algorithm 5)
security.
CISCO Device : Removing Password
To remove password, be in the global config mode.
When you are opted for PW, type “No Password” and enter.
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#no password
CISCO Device : Removing Privilege Mode Password
Example:
How to remove password from the Privilege Mode
This is a better option if you have multiple people that need to access your router
or switch.
After that, the password 1234 will be activated for the user name user1. Once you
login to the Router as user1, it will prompt for the Password.
CISCO Commands and Help
In the Cisco CLI, you don't always have to type the full command. If you know
that there's no other command at that level that begins with the same first
couple of letters, you can use those letters to complete the command.
For example, if we exit enable mode and type ‘en' for short, you'll see that auto
completion does work.
This entry worked because no other command at the user mode prompt begins
with the letters en.
Access To CISCO Commands Help
To view the available command in any mode, we only need to type a question
mark (?).
Whenever we use a question mark in the CLI, we don't have to press Enter after
it.
Example:
Router#show history
show Version
show
inter
en
show history
Router#
Setting Banner on CISCO
Device
Setting Banner on CISCO Device
Banners display messages during the login or startup sequence.
Banner can be setup for the ‘Day Display’ or ‘Login’ or any other
activities.
Use of Banner on CISCO Devices
We can use banners for a variety of purposes.
For example, the banner could state that only administrators are allowed
access.
Use of Banner on CISCO Devices
Banners can also inform users that actions might be logged or tracked. In
many locations, monitoring user actions cannot be performed unless users
are informed of the tracking. Banners can provide such notification.
It should clarify that only authorized persons are allowed access to the device
and deter unauthorized users.
Types of Banner on CISCO Devices
Command Description
Sets the message-of-the-day (MOTD) banner. The
banner motd MOTD banner displays immediately after a
connection is made.
Sets the login banner. The login banner displays after
banner login the MOTD banner and before the login prompt.
Sets the exec banner. The exec banner displays after a
banner exec successful login.
Sets the incoming banner. The incoming banner
banner incoming displays for a reverse Telnet session.
Setting Up Banner MOTD: Message of the Day
Be in the Global Configuration Mode (Config)#
Type ‘banner motd’ then type the hash (#) key or asterisk key (*) and press enter.
Your screen will be ready to accept your message. Type your message whatever. Once
finished, again type the hash (#) key or asterisk key (*) and press enter.
Type ‘banner login’ then type the hash (#) key or asterisk key (*) and press enter.
Your screen will be ready to accept your message. Type your message whatever. Once
finished, again type the hash (#) key or asterisk key (*) and press enter.