Setting Banner on a Cisco device

There are two banners that can be set on Cisco devices
– MOTD also known as Message-of-the-day
– Login banner

MOTD is displayed on all terminals including console, vty and aux login.

Login banner also displayed on all terminals. It is displayed after MOTD and before login prompt.

We can either create single or multiline line banner that is displayed when someone tries to login on to Cisco device.

Configuring MOTD on a Cisco device
Step1 : Move to configuration Mode
Step 2: Use banner motd command followed by delimiting character
Step 3: Save the configuration

Access_Switch#configure terminal
Access_Switch(config)#banner motd #
It a secure login.
Unauthorized access to this device is punishable
#
Access_Switch(config)#exit
Access_Switch#
Access_Switch#write memory
Building configuration...
[OK]
Access_Switch#

In the above configuration, we have created a multiline banner and message is included inside delimiting character (#)

Checking banner in the show running configuration file

Access_Switch#show running-config

banner motd ^C It a secure login.
Unauthorized access to this device is punishable^C

If we try to access device using telnet will get below banner

C:\>telnet 10.0.0.1
Trying 10.0.0.1 ...Open It a secure login.
Unauthorized access to this device is punishable

Configuring login banner on the Cisco device

Login banner is displayed on all terminals. It is displayed after motd and before login prompt

Steps for configuring login banner
Step 1 : Move to configuration mode
Step 2 : Use banner login command followed by deliminating character
Step 3 : Save the configuration

Switch# configuration terminal
Switch(config)# banner login $
Access for authorized users only. Please enter your username and password.
$
Switch(config)# end

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s