Login banners
A login banner is a user authentication feature that
-
displays a customizable warning or informational message when you attempt to access the controller
-
uses a delimiting character to mark the start and end of the banner text, and
-
helps communicate security policies or legal notices to users before granting access.
Additional reference information
To configure a login banner, you must specify a delimiting character that signals the system to treat the enclosed text as the banner message. After entering the delimiting character, enter the message text, and then repeat the same character at the end.
The delimiter can be any single character from the extended ASCII set, but that character cannot appear inside the banner message once selected as the delimiter.
For example, to create a login banner with the delimiter #, enter:
banner login #Unauthorized access is prohibited#
![]() Note |
When HTTP authentication is configured using TACACS+ or RADIUS, the banner message does not display on the Web UI. (Addressed CSCvr26813: C9800 - Banner not seen on GUI with TACACS authentication.) |
Configure a login banner (GUI)
Set up a custom login banner to communicate important information or legal notices to users before they access the device.
Procedure
|
Step 1 |
Choose . |
|
Step 2 |
In the General tab, in the Banner field, enter a name for the device and a message. |
|
Step 3 |
Click Apply . |
The customized login banner is displayed to users before they authenticate to the device.
Configure a login banner (CLI)
Set a login banner to inform users about security policies or authorized access.
Procedure
|
Step 1 |
Enable privileged EXEC mode. Example:
If prompted, enter your password. |
|
Step 2 |
Enter global configuration mode. Example:
|
|
Step 3 |
Specify the login message. Example:
Example:
|
|
Step 4 |
Return to privileged EXEC mode. Example:
|
|
Step 5 |
Verify your entries. Example:
|
|
Step 6 |
(Optional) Save your entries to the configuration file. Example:
|
All users see the login banner when they attempt to log in.

Feedback