To display a banner on terminals with an interactive EXEC, use the banner exec global configuration command. 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). Use the no form of this command to delete the EXEC banner.
banner exec d message d
no banner exec
d  Delimiting character of your choice (for example, a pound sign (#)). You cannot use the delimiting character in the banner message.
message  Message text.
No 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 appears before the login prompt. 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.
To disable the EXEC banner on a particular line, use the no exec-banner line configuration command.
The following example sets an EXEC banner. The dollar sign ($) is used as a delimiting character.
banner exec $ Session activated. Enter commands at the prompt. $
Command | Description |
---|---|
banner incoming | Specifies a banner used when you have an incoming connection to a line from a host on the network. |
banner login | Displays a login banner. This command specifies a message to be displayed before the username and password login prompts. |
banner motd | Specifies a message-of-the-day (MOTD) banner. |
exec-banner | Displays EXEC and MOTD banners. |
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.