1
00:00:01,180 --> 00:00:07,780
Benas allow you to display text when a user connects to a Cisco router with a switch.

2
00:00:08,020 --> 00:00:14,770
This is often used to display a message perhaps a message of the day indicating that maintenance will

3
00:00:14,770 --> 00:00:22,570
be done on the network or more often these days it's used to display a illegal message setting that

4
00:00:22,630 --> 00:00:25,850
unauthorized access is not permitted.

5
00:00:25,900 --> 00:00:31,210
If a hacker connects to your router or switch as an example and you don't display some kind of warning

6
00:00:31,210 --> 00:00:38,830
message or some message to indicate that unauthorized access is not permitted it may be more difficult

7
00:00:38,830 --> 00:00:45,060
to prosecute them as they would state that there was no indication that access is not allowed.

8
00:00:45,310 --> 00:00:50,160
It's a very bad idea to have a message saying welcome to my router.

9
00:00:50,340 --> 00:00:56,140
Welcome to my switch because that would indicate that someone is allowed to access that device.

10
00:00:56,170 --> 00:01:03,490
It's a good idea to get some input from your legal department to find out what message should be used

11
00:01:03,820 --> 00:01:10,420
as a corporate policy or in specific countries of the world you couldn't as an example say that if you

12
00:01:10,420 --> 00:01:12,610
access my rod I'm going to shoot you.

13
00:01:12,700 --> 00:01:14,100
That wouldn't be legal.

14
00:01:14,170 --> 00:01:18,090
As an example Benas can display all kinds of text.

15
00:01:18,160 --> 00:01:26,200
Here's an example of a router and I've got configured so in this example on into my username and password

16
00:01:26,650 --> 00:01:33,590
and I'll be able to log into the router but noticed some kind of message is displayed stating that you

17
00:01:33,590 --> 00:01:36,250
shouldn't access the device unless authorized.

18
00:01:36,560 --> 00:01:42,380
And here is some additional information is provided to the user if they want to access these labs.

19
00:01:43,150 --> 00:01:45,290
No such message is displayed by default.

20
00:01:45,320 --> 00:01:53,100
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

21
00:01:53,100 --> 00:01:58,970
for is the user access verification which in this case is a password.

22
00:01:59,400 --> 00:02:05,460
No Benas have been configured on this router but in global configuration mode you can use the command

23
00:02:05,460 --> 00:02:12,060
Bena and questionmark to view various types of banners that can be configured on a router or switch

24
00:02:12,750 --> 00:02:18,750
for the CCN a course we are going to concentrate on the exec banner loggin banner and message of the

25
00:02:18,750 --> 00:02:23,480
Day bomber of the messages such as in-coming can also be configured.

26
00:02:23,640 --> 00:02:29,910
But that's important for CCMA a message of the day Banham may be used to display a temporary message

27
00:02:30,510 --> 00:02:35,710
such as a router may be taken off line for maintenance at a specific time.

28
00:02:36,680 --> 00:02:45,170
A loggin banner is shown before a user logs in C may display a message such as unauthorized access is

29
00:02:45,170 --> 00:02:48,440
prohibited and exec Abana displays.

30
00:02:48,480 --> 00:02:50,030
After Logan.

31
00:02:50,210 --> 00:02:57,320
You could use this to display information that only internal staff should know such as the physical

32
00:02:57,320 --> 00:02:59,210
location of the device.

33
00:02:59,540 --> 00:03:07,630
So the information is not shown before logging only after your theni case it is the information displayed.

34
00:03:07,630 --> 00:03:11,520
Now you don't have to use those messages in that way.

35
00:03:12,280 --> 00:03:20,910
This is actually being configured on the router as a message of the day so on a show run pipe to begin

36
00:03:20,970 --> 00:03:21,450
bandha

37
00:03:24,480 --> 00:03:26,730
here's the show command.

38
00:03:26,790 --> 00:03:33,630
I notice the command used here is Bena message of the day which displays some ASCII text and then a

39
00:03:33,630 --> 00:03:37,230
warning message and then ends.

40
00:03:37,310 --> 00:03:43,130
Notice the delimiting character used here see indicated by carat see.

41
00:03:43,160 --> 00:03:47,650
So that's the beginning of the message and end of the message.

42
00:03:47,760 --> 00:03:54,230
So when you use the command Bena question mark you've got the option line which says.

43
00:03:54,270 --> 00:03:59,340
See Bennett text see we see is a delimiting character.

44
00:03:59,400 --> 00:04:03,980
Now you don't typically want to use the letters C as an example.

45
00:04:04,080 --> 00:04:13,740
If I say Benas see and then type something like my cisco router notice I'm taken back to global configuration

46
00:04:13,740 --> 00:04:18,000
mode.

47
00:04:18,200 --> 00:04:26,670
But if we telnet back to routed to you notice the message of the Day message displayed is my C in this

48
00:04:26,680 --> 00:04:33,620
example is the delimiting character so the message was cut off or ended at the latest C..

49
00:04:33,790 --> 00:04:38,560
Hence only my space was displayed.

50
00:04:38,590 --> 00:04:43,000
What you probably want to use is something like a hash.

51
00:04:43,210 --> 00:04:48,750
Dollar sign or some other character that you're not going to put in your message.

52
00:04:48,820 --> 00:05:00,160
I'll create a basic message such as this so that when we log in we can see which banners are displayed.

53
00:05:00,300 --> 00:05:06,840
I could enter another line such as the following and then continue to into multiple lines.

54
00:05:08,600 --> 00:05:15,530
Hash or pounde indicates in this example that I finish my message and notice I'm taken back to global

55
00:05:15,530 --> 00:05:16,870
configuration mode.

56
00:05:17,950 --> 00:05:20,460
So now we're not telnet to rodded to.

57
00:05:20,860 --> 00:05:25,000
The message is displayed and I can log in.

58
00:05:25,360 --> 00:05:33,210
So the message was displayed before the password prompt on the telnet line.

59
00:05:33,430 --> 00:05:40,130
Whereas previously before the message was created nothing was displayed at this point.

60
00:05:41,770 --> 00:05:47,970
Now a benoît message of the day is also displayed on the console so it doesn't just apply to telnet

61
00:05:48,010 --> 00:05:48,390
lines.

62
00:05:48,400 --> 00:05:55,100
It applies to all lines on the Rodda including what are called TDY lines.

63
00:05:55,380 --> 00:06:03,050
So as an example on this very 6:14 physical Rodda show line shows me that it has a console line.

64
00:06:03,280 --> 00:06:09,640
It has Teotihuacan lines which in this example use four of those Telenet lines and it has Viti 1 lines

65
00:06:09,640 --> 00:06:13,850
which are used for telnet.

66
00:06:14,020 --> 00:06:16,940
So he has a line 97.

67
00:06:17,180 --> 00:06:27,430
When you telnet to a reverse line or TDY line you telnet to port number two thousand and that line number.

68
00:06:27,710 --> 00:06:34,010
So notice here it's displayed the Bena message of the day and I'm actually connected to the console

69
00:06:34,450 --> 00:06:45,430
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

70
00:06:45,490 --> 00:06:52,800
connection used on the router to access the core 37 50 switch.

71
00:06:52,810 --> 00:07:02,990
So in other words a better message of the day is displayed on all lines including the console exhilarate

72
00:07:04,510 --> 00:07:09,440
Vittie white lines and T.T. white lines.

73
00:07:09,710 --> 00:07:17,460
Once again on Route 1 I'll telnet to route to notice the Banham message of the day is displayed.
