一、路由器基本配置要求
1、設置路由器名為:hehe
2、設置特權模式下password為ccna,secret為ccnp,vty線路密碼為ccie
3、所有明文密碼都加密
二、路由器基本配置命令
1、設置路由器名為:hehe
Router#configure terminal //進入配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname hehe //設置hostname
hehe(config)#
2、設置特權模式下password為ccna,secret為ccnp,vty線路密碼為ccie
hehe#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
hehe(config)#enable password ccna //特權模式的password密碼
hehe(config)#enable secret ccnp //特權模式的secret密碼
hehe(config)#line vty 0 4 //啟用0-4號5個vty
hehe(config-line)#password ccie //登錄的password
hehe(config-line)#login //啟用密碼驗證,no login關閉密碼驗證
3、所有明文密碼都加密
hehe(config)#service password-encryption
三、路由器基本配置解析
1、新設備如何連接
新到的路由器可以通過console口與電腦連接,默認波特率為9600即可自動與設備連接
2、password、secret
password是早期設備的密碼協議,默認是明文保存的
secret是最常用的密碼方式,是MD5加密的
3、vty
vty支持多種協議,常見的有ssh、telnet等,默認telnet協議。
line vty 0 4 是開啟0到4號5個vty線路,表明同時允許5個用戶登錄設備
4、明文密碼的加密
使用service password-encryption命令可以將設備上所有明文密碼都加密