Showing posts with label banner. Show all posts
Showing posts with label banner. Show all posts

Monday, August 10, 2009

Add a login banner to your Cisco router

I seen many people who just use banner for some welcome messages and stuff like that but we can use it in many usefull manners say like when i telnet or ssh so it should display me some warning message like "Unauthorized Access prohibited", say may be we want to display password if we changed that and let want the second shift administrator to know about it etc or we can also use it like to display the hostname, domain name etc so here is a small view of it, have a look :)

The syntax of banner is as follow:

PSH-DXX (config) # 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,
PSH-DXX (config)# banner motd #

******************************************
* Unauthorized access prohibited
******************************************
#

OR we can have this in some more detail like as shoen
PSH-DXX (config)# banner motd #

-------------------------------------------
Unauhorized Access Prohibited
-------------------------------------------
You have access $(hostname).$(domain)
You are accessing line $(line)
-------------------------------------------
Unauhorized Access Prohibited
-------------------------------------------

The output of the banner is as:



I hope it will be informative for you :)