10/08/2017
In the intricate world of network administration and cybersecurity, communication is paramount. Whether it's to warn off potential intruders or to inform authorised personnel about critical system updates, a clear and concise message can make all the difference. This is where the concept of a 'Message of the Day' (MOTD) banner comes into play. Far more than just a simple greeting, these banners serve as a frontline defence and a vital communication tool across various operating systems and network devices, most notably within Cisco environments.

Initially prevalent in Unix and mainframe systems, the MOTD has evolved to become an indispensable feature for network administrators globally. Its primary function is to deliver timely, temporary notices concerning system availability, planned maintenance, or important operational changes. But how do these banners work, what forms do they take, and why are they so crucial for the integrity and security of your network? Let's delve deeper into the fascinating world of MOTD banners, with a particular focus on their implementation and significance within Cisco IOS devices.
- The Essence of a Message of the Day (MOTD) Banner
- MOTD Banners in Cisco IOS: A Deep Dive
- Beyond MOTD: Other Crucial Cisco Banners
- Why Banners Are Indispensable: Security and Communication
- Banners Beyond Cisco: Broader Applications
- Related Concepts: Banner Grabbing
- Comparative Analysis: MOTD vs. Login vs. Exec Banners
- Frequently Asked Questions (FAQs) About Banners
- Conclusion
At its core, a Message of the Day (MOTD) banner is a text message displayed to users upon logging into a system or device. Its purpose is multifaceted, ranging from providing critical system updates to serving as a legal warning. While the term 'MOTD' specifically refers to a message of the day, it often falls under the broader category of 'banners' in networking contexts, which encompass various types of pre- or post-login messages.
Historically, MOTD banners have been a staple on Unix and mainframe systems, acting as a simple yet effective way to disseminate temporary notices about system status or impending changes. Imagine a large corporate server farm; an MOTD banner could inform thousands of users about an upcoming server reboot, preventing confusion and service disruption. The enduring utility of this concept led to its adoption in modern networking equipment, particularly Cisco devices, where it plays an even more critical role in security and operational management.
In essence, the MOTD banner is the first piece of information an incoming connection receives, making it an ideal channel for immediate, time-sensitive communications. It's designed to be a dynamic message that can be easily updated to reflect the current state or needs of the system.
Cisco routers and switches, being central to many network infrastructures, heavily utilise banners to manage user interactions and enforce security policies. The banner motd command is specifically designed to configure the Message of the Day, which is displayed before a user authenticates to the device.
Setting up an MOTD banner on a Cisco device is straightforward and is performed in global configuration mode. The command syntax requires a delimiting character, which signals the start and end of the banner message. This character must not appear within the message itself, as the Cisco IOS will interpret it as the end of the banner.
Here's how you'd typically configure a MOTD banner:
Router(config)# banner motd $ Attention! We will be having scheduled system maintenance on this device. $ Router(config)#
In this example, the dollar sign ($) acts as the delimiter. The message, "Attention! We will be having scheduled system maintenance on this device," will be displayed to anyone attempting to connect to the router via Telnet, SSH, console, or auxiliary port.
It's crucial to choose a delimiter character carefully. Common choices include #, $, %, or any other character that is unlikely to appear in your intended message. If your message contains the chosen delimiter, the banner will prematurely terminate, leading to incomplete or confusing messages.
Verifying Your MOTD Configuration
After configuring your MOTD banner, it's good practice to verify that it has been applied correctly. You can do this by using the show running-config banner-motd command in privileged EXEC mode:
Router# show running-config banner-motdbanner motd ^C Attention! We will be having scheduled system maintenance on this device. ^C
The output confirms the configured MOTD banner. The ^C characters here represent the delimiter used (often shown as ^C when the delimiter itself is a special character or due to display conventions in the output).
When a user attempts to connect to the Cisco device, the MOTD banner is one of the very first things they will see:
Router con0 is now available Press RETURN to get started. Attention! We will be having scheduled system maintenance on this device. User Access Verification Username: % Username: timeout expired! Username:
As illustrated, the message "Attention! We will be having scheduled system maintenance on this device." appears prominently before the system prompts for a username or password. This pre-authentication display is a defining characteristic of the MOTD banner.

While the MOTD banner is excellent for temporary notices, Cisco IOS offers other banner types that serve different, equally important purposes, particularly concerning security and legal compliance. These include the Login banner and the Exec banner.
The Login banner is another pre-authentication message, similar to the MOTD, but with a distinct purpose. It typically displays legal notices, security warnings, and more permanent messages to users. Unlike the MOTD, which often conveys temporary operational information, the Login banner is designed to provide a formal, legally binding warning to anyone attempting to access the device, whether authorised or not.
It is displayed after the MOTD banner (if both are configured) but still before the user is prompted for authentication credentials.
To configure a Login banner, you use the banner login command:
Router(config)# banner login ? Warning! Authorised personnel only. ? Router(config)#
Here, the question mark (?) serves as the delimiter. When both MOTD and Login banners are configured, they appear in sequence:
Router con0 is now available Press RETURN to get started. *Mar 1 00:22:33.231: %SYS-5-CONFIG_I: Configured from console by cisco on console Attention! We will be having scheduled system maintenance on this device. Warning! Authorised personnel only. User Access Verification Username:
The "Warning! Authorised personnel only." message appears immediately after the MOTD banner, reinforcing the security posture of the device.
The Exec banner is unique because it is displayed after a user has successfully authenticated to the Cisco IOS device, but before they enter User EXEC mode. This banner is ideal for messages that authorised users should see once they've gained access, perhaps reminding them of acceptable use policies or specific operational guidelines. Like the Login banner, the Exec banner is generally used for more permanent messages that don't change frequently.
The command to configure an Exec banner is banner exec:
Router(config)# banner exec 8 Please log out immediately if you are not an authorised administrator 8 Router(config)#
In this instance, the number eight (8) is used as the delimiter, demonstrating that virtually any character can be chosen. When all three banners are configured and a user logs in, the sequence of display is clear:
Router con0 is now available Press RETURN to get started. Attention! We will be having scheduled system maintenance on this device. Warning! Authorised personnel only. User Access Verification Username: cisco Password: Please log out immediately if you are not an authorised administrator Router>
This sequence ensures that different types of messages are presented at the most appropriate stages of a user's interaction with the device.
The utility of banners extends far beyond mere cosmetic display. They are fundamental components of a robust cybersecurity strategy and efficient network management.
Legal Implications and Deterrence
One of the most critical functions of banners, particularly the Login banner, is their legal significance. A well-crafted banner serves as a clear warning to any potential intruders that unauthorised access is strictly prohibited and that all activities may be monitored and logged. In many jurisdictions, such a warning is a prerequisite for prosecuting individuals who gain unauthorised access to a system. Without this explicit notice, it can be challenging to prove malicious intent or to pursue legal action against hackers.
While some might believe these banners are merely designed to scare people away, their true purpose is to formally notify any unauthorised user that the device is restricted. If they gain unauthorised access even after being legally notified of the consequences, they can be prosecuted in court. This provides a crucial legal foundation for taking action against cybercriminals.
Operational Communication and Efficiency
Beyond legal warnings, banners are invaluable for internal communication within an IT team. The MOTD banner, in particular, is perfect for relaying:
- Impending system shutdowns or reboots.
- Scheduled maintenance windows.
- Contact information for specific issues.
- Temporary policy changes or advisories.
This immediate visibility helps to keep network personnel informed, reduces confusion, and can significantly streamline operational workflows. It acts as a digital bulletin board that everyone connecting to the device will see.
The concept of a login message or banner is not exclusive to Cisco. Many other operating systems and platforms incorporate similar functionalities:
Unix/Linux Systems: The 'Message of the Day' (MOTD) has long been a feature of Unix-like operating systems. Typically, the content of the MOTD is stored in a file (e.g.,
/etc/motd) that is displayed to users upon logging in via SSH or a console. These systems also often feature a 'login' banner (e.g., in/etc/issueor/etc/issue.net) which is displayed before the login prompt, much like Cisco's Login banner.
In this example, the MOTD banner spans multiple lines of text, and the delimiting character, which is also called start/stop character, is the dollar sign ($). Now let’s try to access our devices to see what the MOTD Banner looks like: Press RETURN to get started. Attention! We will be having scheduled system maintenance on this device. Windows 10 Custom Messages: Even desktop operating systems like Windows 10 allow for the display of custom messages or banners on the login screen. This is typically configured via the Windows Registry by modifying the 'LegalNoticeCaption' (for the title) and 'LegalNoticeText' (for the message) values, providing a similar legal warning or informational display upon system startup.
The widespread adoption of banners across diverse systems underscores their universal value in both security and communication.
While banners are intended for legitimate communication and security, it's important to be aware of a related concept known as banner grabbing. This is a technique used by malicious actors (or penetration testers) to gather information about network computer systems and the services running on their open ports. By connecting to a port (e.g., HTTP, FTP, SSH) and observing the initial response, an attacker can often discern the type, version, and even operating system of the server or device.
For example, a banner grab on an SSH port might reveal the exact version of the SSH daemon running on a Cisco device or Linux server. If this version is known to have vulnerabilities, the attacker can then target the system with specific exploits. While Cisco banners themselves are not directly vulnerable to grabbing in the same way service banners are, the concept highlights the importance of controlling what information your devices broadcast to the outside world.
To summarise the distinctions between the primary Cisco banner types, the following table provides a clear comparison:
| Banner Type | Display Timing | Primary Purpose | Permanence |
|---|---|---|---|
| Message of the Day (MOTD) | Before authentication | Temporary operational notices (e.g., maintenance, system availability) | Temporary (frequently updated) |
| Login Banner | Before authentication (after MOTD) | Legal warnings, security disclaimers, formal notices | Permanent (rarely changes) |
| Exec Banner | After authentication, before User EXEC mode | Post-login information for authorised users (e.g., acceptable use policy reminders) | Permanent (rarely changes) |
A: The primary difference lies in their purpose and permanence. The MOTD banner is for temporary, often operational, messages that change frequently (e.g., "System maintenance tonight"). The Login banner is for more permanent, legal, and security-related warnings that rarely change (e.g., "Unauthorised access prohibited").
A: Yes, you can use almost any character as a delimiter, provided that the chosen character does not appear anywhere within the banner message itself. If the delimiter appears in the message, the Cisco IOS will interpret it as the end of the banner, resulting in an incomplete message.
A: A well-defined banner, especially a Login banner, serves as a formal legal notice. In many jurisdictions, this notice is crucial for establishing intent and pursuing legal action against individuals who gain unauthorised access to a system. It demonstrates that the user was explicitly warned about the restricted nature of the device and the consequences of illegal entry.
A: While a banner itself doesn't directly prevent an attack (it's not a firewall or an intrusion prevention system), it contributes significantly to overall network security posture. It acts as a legal deterrent and an initial warning, which can discourage less determined attackers. For authorised users, it provides essential operational information, reducing errors and improving awareness.
A: If you forget to enter the second (closing) delimiter character, the Cisco IOS will typically wait for you to type it. The system will continue to interpret everything you type as part of the banner message until the delimiter is provided, or you explicitly exit the configuration mode (e.g., by pressing Ctrl+Z or entering 'end'), which might save an incomplete or unintended banner.
Conclusion
MOTD banners and their counterparts, such as Login and Exec banners, are far more than simple text displays. They are integral components of effective network management and cybersecurity. From providing critical, time-sensitive updates to enforcing legal warnings against unauthorised access, these banners play a crucial role in maintaining the integrity and security of network devices. Understanding their purpose, configuration, and distinct applications is essential for any network administrator committed to building and maintaining a secure and communicative network environment.
If you want to read more articles similar to Mastering MOTD Banners on Your Network Devices, you can visit the Automotive category.
