Objective: Configure a banner Message of the Day (MOTD). The MOTD is displayed when a user logs on to the router. The banner can also be used to display information about the router itself or to display a security message.
Lab Equipment: Router 1 from the eRouters menu
1. Connect to Router 1, and enter privileged mode.
Router>enable
Router#
Lab Equipment: Router 1 from the eRouters menu
1. Connect to Router 1, and enter privileged mode.
Router>enable
Router#
2. Enter configuration mode.
Router#config t
Router(config)#
3. Type the command to enter the banner message, and press ENTER. After you type banner motd, enter a delimiting character so the router knows when you are finished entering text for the banner. The easiest one to use is the letter Z.
Router(config)#banner motd z
Enter the text followed by the ‘z’ to finish
![](https://i-blog.csdnimg.cn/blog_migrate/43f6a451e47499a6f8d7c846f3f3e9fd.png)
4. Now, all text that you type, until you type the letter Z, will be stored as the banner. Type the text “You do not have permission to be here. This router eats hackers for lunch! z”,and press ENTER. This will set the banner.You do not have permission to be here. This router eats hackers for lunch! z
5. To view the banner, exit configuration mode, and then exit the router. Press ENTER to display the banner.
Router(config#)exit
Router#exit
Router>exit
Press RETURN to get started.
You do not have permission to be here. This router eats hackers for lunch!
![](https://i-blog.csdnimg.cn/blog_migrate/b312d2c22d036b3d21dd20652c87475b.png)
*******************************************************
本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/71516
,如需转载请自行联系原作者