Benas allow you to display text when a user connects to a Cisco router with a switch.
This is often used to display a message perhaps a message of the day indicating that maintenance will
be done on the network or more often these days it's used to display a illegal message setting that
unauthorized access is not permitted.
If a hacker connects to your router or switch as an example and you don't display some kind of warning
message or some message to indicate that unauthorized access is not permitted it may be more difficult
to prosecute them as they would state that there was no indication that access is not allowed.
It's a very bad idea to have a message saying welcome to my router.
Welcome to my switch because that would indicate that someone is allowed to access that device.
It's a good idea to get some input from your legal department to find out what message should be used
as a corporate policy or in specific countries of the world you couldn't as an example say that if you
access my rod I'm going to shoot you.
That wouldn't be legal.
As an example Benas can display all kinds of text.
Here's an example of a router and I've got configured so in this example on into my username and password
and I'll be able to log into the router but noticed some kind of message is displayed stating that you
shouldn't access the device unless authorized.
And here is some additional information is provided to the user if they want to access these labs.
No such message is displayed by default.
So as an example if our telnet from Rodda want to write it to I'm able to log in and all I'm prompted
for is the user access verification which in this case is a password.
No Benas have been configured on this router but in global configuration mode you can use the command
Bena and questionmark to view various types of banners that can be configured on a router or switch
for the CCN a course we are going to concentrate on the exec banner loggin banner and message of the
Day bomber of the messages such as in-coming can also be configured.
But that's important for CCMA a message of the day Banham may be used to display a temporary message
such as a router may be taken off line for maintenance at a specific time.
A loggin banner is shown before a user logs in C may display a message such as unauthorized access is
prohibited and exec Abana displays.
After Logan.
You could use this to display information that only internal staff should know such as the physical
location of the device.
So the information is not shown before logging only after your theni case it is the information displayed.
Now you don't have to use those messages in that way.
This is actually being configured on the router as a message of the day so on a show run pipe to begin
bandha
here's the show command.
I notice the command used here is Bena message of the day which displays some ASCII text and then a
warning message and then ends.
Notice the delimiting character used here see indicated by carat see.
So that's the beginning of the message and end of the message.
So when you use the command Bena question mark you've got the option line which says.
See Bennett text see we see is a delimiting character.
Now you don't typically want to use the letters C as an example.
If I say Benas see and then type something like my cisco router notice I'm taken back to global configuration
mode.
But if we telnet back to routed to you notice the message of the Day message displayed is my C in this
example is the delimiting character so the message was cut off or ended at the latest C..
Hence only my space was displayed.
What you probably want to use is something like a hash.
Dollar sign or some other character that you're not going to put in your message.
I'll create a basic message such as this so that when we log in we can see which banners are displayed.
I could enter another line such as the following and then continue to into multiple lines.
Hash or pounde indicates in this example that I finish my message and notice I'm taken back to global
configuration mode.
So now we're not telnet to rodded to.
The message is displayed and I can log in.
So the message was displayed before the password prompt on the telnet line.
Whereas previously before the message was created nothing was displayed at this point.
Now a benoît message of the day is also displayed on the console so it doesn't just apply to telnet
lines.
It applies to all lines on the Rodda including what are called TDY lines.
So as an example on this very 6:14 physical Rodda show line shows me that it has a console line.
It has Teotihuacan lines which in this example use four of those Telenet lines and it has Viti 1 lines
which are used for telnet.
So he has a line 97.
When you telnet to a reverse line or TDY line you telnet to port number two thousand and that line number.
So notice here it's displayed the Bena message of the day and I'm actually connected to the console
of a 37 50 switch show line on the 36 40 shows us that line 97 is in use and that's the reverse telnet
connection used on the router to access the core 37 50 switch.
So in other words a better message of the day is displayed on all lines including the console exhilarate
Vittie white lines and T.T. white lines.
Once again on Route 1 I'll telnet to route to notice the Banham message of the day is displayed.