To display a login banner, use the banner login global configuration command. This command specifies a message to be displayed before the username and password login prompts. The no form of this command deletes the login banner.
banner login d message d
no banner login
d  Delimiting character of your choice a pound sign (#), for example. You cannot use the delimiting character in the banner message.
message  Message text.
No login banner is displayed.
Global configuration
| Release | Modification | 10.0 | This command was introduced. |
|---|
Follow this command with one or more blank spaces and a delimiting character of your choice. Then enter one or more lines of text, terminating the message with the second occurrence of the delimiting character.
When someone connects to the router, the MOTD banner (if configured) appears first, followed by the login banner and prompts. After the user successfully logs in to the router, the EXEC banner or incoming banner will be displayed, depending on the type of connection. For a reverse Telnet login, the incoming banner will be displayed. For all other connections, the router will display the EXEC banner.
The following example sets a login banner. The dollar sign ($) is used as a delimiting character.
banner login $ Access for authorized users only. Please enter your username and password. $
| Command | Description |
|---|---|
| banner exec | Displays a banner on terminals with an interactive EXEC. This command specifies a message to be displayed when an EXEC process is created (a line is activated, or an incoming connection is made to a VTY line). |
| banner incoming | Specifies a banner used when you have an incoming connection to a line from a host on the network. |
| banner motd | Specifies a message-of-the-day (MOTD) banner. |
Printed for apswan@ctr.ap.nic.in on Wed Mar 5 22:32:57 PST 2003
All material in this document copyright 2000 Cisco Systems, Inc. All rights reserved. No material may be reproduced or distributed without written permission of Cisco Systems, Inc.