設置路由器主機名;設置enable、console、aux、vty密碼;設置旗標


設置路由器主機名

Router(config)#hostname test
test(config)#

設置enable、console、aux、vty密碼

enable密碼(secret 密文保存,password 明文保存)

test(config)#enable secret 123456
test(config)#enable password 123456

控制台(console)密碼

test(config)#line console ?
  <0-0>  First Line number
test(config)#line console 0
test(config-line)#password 123456
test(config-line)#login

輔助端口(aux)密碼

test(config-line)#line aux 0
test(config-line)#password 123456
test(config-line)#login

Telnet(vty)密碼

test(config)#line vty 0 15
test(config-line)#password 123456
test(config-line)#login

創建旗標

MOTD(每日消息)

最常用的旗標,向通過Console口、AUX口或Telnet連接設備的人員顯示一條信息。

test(config)#banner motd #Welcome! #

Welcome! 
User Access Verification
Password: 

login 旗標

登錄旗標,顯示在MOTD旗標之后,登錄提示之前。要禁用登錄旗標,必須在全局配置模式使用no banner login命令。

test(config)#banner login #Please modify the original password! #

從其他路由器通過Telnet登錄到這個路由器

Router0#telnet 172.16.10.2
Trying 172.16.10.2 ...Open
Welcome! 
Please modify the original password! 

User Access Verification

Password: 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM