設置cisco登陸時顯示的警示性信息-banner

 

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#
相關文章
相關標籤/搜索