Configuring the message-of-the-day

About this task

Configure a system login message-of-the-day in the form of a text banner that appears after each successful logon.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Create the message-of-the-day:

    banner motd WORD<1–1516>

  3. Enable the custom message-of-the-day:

    banner displaymotd

Example

Switch:1> enable

Switch:1# configure terminal

Create a message-of-the-day to display with the logon banner. (To provide a string with spaces, include the text in quotation marks.):

Switch:1(config)# banner motd “Unauthorized access is forbidden”

Enable the custom message-of-the-day:

Switch:1(config)# banner displaymotd

Variable Definitions

The following table defines parameters for the banner motd command.

Variable

Value

WORD<1–1516>

Creates a message of the day to display with the logon banner. To provide a string with spaces, include the text in quotation marks ("). To set this option to the default value, use the default operator with the command.