Banners

 

There are several types of banners (line, Exec, Incoming, login, MOTD) you can set up to be displayed (in config mode).  For example, if you want a message to be shown each time a user logs into the router, you can set up a login banner.  While in config mode type “banner ?” to view the various types of banners.

 

MOTD (Message Of The Day) banner

 – the most often used Banner, which displays when a connection is made via the aux, console, or Telnet.  The banner is displayed as soon as you enter User Exec mode.

 

Creating the banner - you must first enter the command in config mode, ending with the # sign.  You will be prompted to enter text – and you can enter lines of text until finished, at which point you need to hit <Enter> for a new line, and then type # and <Enter> to exit the banner creation.  For example

 

banner motd #

This is a test MOTD banner

#

 

Done !! 

 

To test the banner, exit all the way out to the point where the router asks you to “Enter Return to get Started”, hit return to go into User mode, and the banner will be displayed.

 

To get rid of the MOTD banner :                      no banner MOTD

 

Login Banner

Displays at the same time as MOTD does – just after you hit “Return to get started” and just before the User Exec prompt (  >  ).  This is to occur before the password prompt, which occurs after you type “enable”.  If there is no password set, then the login banner will not display.

 

banner login #             -  then enter msg, etc - the rest is the same as MOTD

 

to get rid of the login banner:                 no banner login