Cisco 配置banner消息
旗标(banner)消息可以用来警示***者。
 
Router(config)#banner ?
LINE            c banner-text c, where 'c' is a delimiting character
exec            Set EXEC process creation banner
incoming        Set incoming terminal line banner
login           Set login banner
motd            Set Message of the Day banner
prompt-timeout Set Message for login authentication timeout
slip-ppp        Set Message for SLIP/PPP
 
缺省时旗标是关闭的。旗标命令一般包括5个不同的命令:
●banner exec--规定并启用一个消息,当在路由器上创建一个EXEC过程时显示(当用户认证成功登陆后显示)。
●banner incoming--规定并启用一个旗标,当有来自网络中某台主机连接到终端链路时显示。
●banner login--规定并启用一个旗标,在用户名和口令登录提示之前显示。
●banner motd--规定并启用一个MOTD(message-of-the-day)旗标。
●banner slip-ppp--规定并启用一个旗标,当SLIP或PPP连接建立时显示。
login和motd 的banner只需要做一个,exec在认证成功后显示
 
 
配置:
 
Router(config)# banner motd #
 warning.
-----------------------------------------------------------------------
 
WARNING:You are connected to the cisco systems, Incorporated network.
Unauthorized access and use of this network will be vigorously prosecuted.
 
-----------------------------------------------------------------------
#
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
 
Router1(config)#banner exec # This is an exec banner #
 
Router1(config)#banner login # This is a login banner #
 
Router1(config)#banner motd $ This is a motd banner $
Router1(config)#end
Router1#
注释 不用使用welcome 之类的字样,下面是一个路由器登录banner 做参考
banner motd #
**********************************************************
***WARNING!***WARNING!***WARNING!***WARNING!***WARNING!***
**********************************************************
#
 
 
显示的区别
 
CISCO(config)#banner exec #
Enter TEXT message. End with the character '#'.
It's exec
#
 
GOAL(config)#banner login #
Enter TEXT message. End with the character '#'.
It's login
#
 
GOAL(config)#banner motd #
Enter TEXT message. End with the character '#'.
It's motd
#
It's motd
It's login
User Access Verification
Password:
Password:
It's exec
 
WISCOM>en
Password:
WISCOM#