Add a login banner to your Cisco router

Contributor Icon Contributed by qmchenry Date Icon September 18, 2003  
Tag Icon Tagged: 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
******************************************
#

Previous recipe | Next recipe |
 
  • renso
    thanks
  • samuelheinrich
    you can also use variables like:

    |=================================================================|
    Hostname $(hostname)
    Domain $(domain)
    Line $(line)
    |=================================================================|
  • djerdem
    thanks a lot

    so easy!
blog comments powered by Disqus