CCNA学习笔记3--旗标
1. 概念
旗标是给试图通过telnet或者拨号连接到互联网的人发出的安全警告。
可以创建旗标,向任何登录到路由器的人显示你想告诉他们的信息。
2. 可以设置哪些旗标
R1(config)#banner ?
LINE c banner-text c, where 'c' is a delimiting character
config-save Set message for saving configuration
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
3. 常用旗标----MOTD
MOTD(motd,message of the day,每日消息)。他向任何通过Telnet、辅助接口甚至控制台端口连接到路由器的人显示一条消息
R1(config)#banner motd ?
LINE c banner-text c, where 'c' is a delimiting character
4. 配置一条motd模式的旗标
例一:旗标消息只有一句话
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#banner motd #I am an banner#
R1(config)#^Z //Ctrl+Z
*May 5 06:26:01.328: %SYS-5-CONFIG_I: Configured from console by console
R1#exit
I am an banner
R1>
例二:旗标消息有多行内容
R1(config)#banner motd #I am an banner
Enter TEXT message. End with the character '#'.
if you are not my owner
Please go out
#
R1(config)#^Z
R1#exit
I am an banner
if you are not my owner
Please go out
R1>
解释说明:如例子中所示#I am an banner#为分隔符,分隔符告诉路由器,消息在什么地方结束。
浙公网安备 33010602011771号