banner

Defines an incoming, login, or message of the day banner.

Syntax

banner { incoming | login | motd } string
no banner incoming | login | motd

Parameters

incoming
Sets the incoming terminal line banner that is displayed on the console when a user establishes a Telnet session.
login
Sets the login banner that is displayed on the user terminal when the user logs into the device.
motd
Sets the message of the day (MOTD) that is displayed on the user terminal when a Telnet CLI session is established.
string
Specifies a text string from 1 through 2048 characters in length including spaces.

Modes

Global configuration mode

Usage Guidelines

Use the no form of the command to delete the banner.

The banner can appear on multiple lines if you enter multiline mode by using Esc-M and exit by using CTRL-D.

Examples

To create a login banner with a single line:

device # configure terminal
device(config)# banner login "Please do not disturb the setup on this switch"