Add a login banner to your Cisco router
A login banner is displayed whenever someone connects to the router by telnet or console connections.
The syntax for the banner command is:
banner motd {char} {banner text} {char}
where {char} is a special delimeter character that does not exist in the {banner text}. Everything contained between the first and second {char} characters, including carriage returns, is interpreted as the banner message. For example,
config t
banner motd #
******************************************
* Unauthorized access prohibited
******************************************
#
See the comments below for additional, amazing uses for this feature.










renso said on June 23, 2009
thanks
Anonymous said on August 3, 2009
you can also use variables like:
|=================================================================|
Hostname $(hostname)
Domain $(domain)
Line $(line)
|=================================================================|
Anonymous said on September 23, 2009
thanks a lot
so easy!
Anonymous said on March 4, 2010
Thanks a lot, I forgot, I was trying and trying and this refreshed my memory. And this isn’t a big comand after all, shame on me…..
najam said on May 26, 2010
can you plz tel me how i can mention a perticular level for banner
jyrki said on October 10, 2010
This is not LOGIN banner. It’s MOTD banner. It’s frustrating to try to find information about why someone would use login banner instead of MOTD banner as every google result there comes directs to answers or directions where some body asks about login banner and another one answers with MOTD banner.
FYI all. There is several levels of banners in IOS. And for most of you it is enough to know that you should use MOTD banner.
But i’m looking thorough information about use of LOGIN banner.
VladisLuck said on October 10, 2010
Tack så mycket.
Anonymous said on October 11, 2010
Besten Dank für Ihre Nachricht. Ich befinde mich zur Zeit im Urlaub und habe nur bedingt Zugriff auf mein Email- Postfach. Ich bin wieder ab Montag, den 11. Okt 2010 im Büro.
In dringenden Fällen können Sie sich in Netzwerkbelangen an Herrn Damian Keller (061 260 77 29) wenden und in Client/Serverbelangen an Herrn Christian Halm (061 260 66 33)
Selbstverständlich steht Ihnen rund um die Uhr unser Pikettdienst zur Verfügung. Bitte kontaktieren Sie uns unter 061 260 66 66 oder unter der auf Ihrem Wartungsvertrag vermerkten Servicehotline!
Ihre Nachricht wird nicht weitergeleitet!
Samuel Heinrich
Network Engineer CCNA
IT & TelCom
CCENT said on October 11, 2010
Banner Typical Use
Message of the Day (MOTD) —-> Shown before the login prompt. For temporary messages that may change from time to time, such as “Router1 down for
maintenance at midnight.”
Login —–> Shown before the login prompt but after the MOTD banner. For
permanent messages such as “Unauthorized Access Prohibited.”
Exec —–>Shown after the login prompt. Used to supply information that
should be hidden from unauthorized users.
Mohd_arbi said on January 5, 2011
hey thnds dear for help