How to configure LOGIN and MOTD Banner in Dell EMC Networking OS10 Series Switch
Summary: How to configure LOGIN and MOTD Banner in Dell EMC Networking OS10 series switch
Symptoms
This article explains how to configure LOGIN and MOTD Banner in OS10 switches.
You can configure a system login and message of the day (MOTD) text banners. The system login banner displays before the user logs in. The MOTD banner displays immediately after a successful login. You can also reset the banner text to the Dell EMC default banner or disable the banner display.
Login Banner - Login banner is displayed before the user log in to the system.
Login Banner Example:
######SAMPLE LOGIN BANNER######
OS10 login: admin
Password
MOTD Banner (Message of the day Banner) - MOTD banner that displayed after the user logs in
MOTD Banner Example:
OS10 login: admin
Password:
######SAMPLE MOTD BANNER######
Login banner and MOTD banner allows a maximum 4096 characters. There is no limit on the number of lines.
We can use LOGIN and MOTD banner in same switch.
Configuration Syntax
* Delimiter = A single character or ^C to specify the start and end of the text banner. The delimiter will not be shown in MOTD or Banner when logging in to the switch. For example a, 1, &, $, %, so on. Some special characters may not work; for example, and " will not be accepted as delimiter in Firmware in 10.5.1.0.
Login Banner
| Switch Commands |
Description |
| Console# configure |
To enter switch configuration mode |
| Console(Config)# banner login |
Configures a login banner |
| Console(Config)# no banner login |
To delete a login banner and reset it to the Dell EMC default banner, |
| Console(Config)# banner login disable |
To disable banner display before login |
MOTD Banner
| Switch Commands |
Description |
| Console# configure |
To enter switch configuration mode |
| Console(Config)# banner motd |
Configures a motd banner |
| Console(Config)# no banner motd |
To delete a motd banner and reset it to the Dell EMC default banner, |
| Console(Config)# banner motd disable |
To disable banner display after login |
Sample Configuration
The Below commands were tested in 10.5.1.0.
In this sample configuration we are using % as the delimiter. You can use any single character or ^C as delimiter.
LOGIN BANNER
OS10# configure terminal
OS10(config)# banner login %
Enter TEXT message. End with the character '%'.
######SAMPLE LOGIN BANNER Line 1######
######SAMPLE LOGIN BANNER Line 2######
%
OS10(config)#
MOTD BANNER
OS10# configure terminal
OS10(config)# banner motd %
Enter TEXT message. End with the character '%'.
######SAMPLE MOTD BANNER Line 1######
######SAMPLE MOTD BANNER Line 2######
%
OS10(config)#
Verify
OS10# show running-configuration
! Version 10.5.1.0
!
banner motd ^C
######SAMPLE MOTD BANNER Line 1######
######SAMPLE MOTD BANNER Line 2######
^C
banner login ^C
######SAMPLE LOGIN BANNER Line 1######
######SAMPLE LOGIN BANNER Line 2######
^C
Sample Output
######SAMPLE LOGIN BANNER Line 1######
######SAMPLE LOGIN BANNER Line 2######
OS10 login: XXXXXXX
Password:
######SAMPLE MOTD BANNER Line 1######
######SAMPLE MOTD BANNER Line 2######
Cause
Resolution
Configuration Syntax
* Delimiter = A single character or ^C to specify the start and end of the text banner. The delimiter will not be shown in MOTD or Banner when logging in to the switch. For example a, 1, &, $, %, so on. Some special characters may not work; for example, and " will not be accepted as delimiter in Firmware in 10.5.1.0.