关于Cisco的Banner
IOS中的banner命令用来设置提示信息,比如警告未授权的登录、提示当前登录的设备等等,有以下几种:
router(config)#banner?
LINEcbanner-textc,where'c'isadelimitingcharacter
config-saveSetmessageforsavingconfiguration
execSetEXECprocesscreationbanner
incomingSetincomingterminallinebanner
loginSetloginbanner
motdSetMessageoftheDaybanner
prompt-timeoutSetMessageforloginauthenticationtimeout
slip-pppSetMessageforSLIP/PPP
为了更好的理解这几种banner的区别,通过下面实例来说明:
router(config)#bannerincoming#it'sincoming#//设置反向telnet的提示信息
router(config)#bannerlogin#it'slogin#//设置login的提示信息
router(config)#bannermotd#it'smotd#//设置motd的提示信息
router(config)#bannerprompt-timeout#it'sprompt-timeout#//设置prompt-timeout的提示信息
下面通过telnet登录这台路由器进行验证
C:\DocumentsandSettings\Administrator>telnetx.x.x.x
it'smotdmessage//这是motd的提示信息,后面跟着login的提示信息
UserAccessVerification
Password:it'sprompt-timeout//如果一直不输入密码,将会给出超时的bannermessage
Password://输入正确密码
it'sexec//这是登录成功后的bannermessage
值得注意的是:各种banner不要使用"welcome"字眼,避免未经授权的登陆者感觉受到挑衅,或者通过法律途径"规避"责任。
**********************************************************************************
**
*WARNING!WARNING!WARNING!WARNING!WARNING!WARNING!WARNING!*
*YouareconnectedtotheXXXXXXXXXXXXXXXXXXXXXXXXincorporatednetwork.*
*Unauthorizedaccessanduseofthisnetworkwillbevigorouslyprosecuted.*
*CISCO2960-1IPAddress:x.x.x.x*
**
**********************************************************************************
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。