路由远程安全密码设置

虚拟终端口令(telnet、ssh):

其中telnet可以被工具抓包,并且以明文显示,并不安全;而ssh采用密文加密,且必须生成密匙,所以相对安全!文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

R1(config)#line vty 0 1
R1(config-line)#login
% Login disabled on line 130, until 'password' is set
% Login disabled on line 131, until 'password' is set
R1(config-line)#password vtyps
R1(config-line)#login
R1(config-line)#interface f3/0
R1(config-if)#ip add 172.28.12.205 255.255.248.0
R1(config-if)#no sh
________________________________________
R2(config)#interface fastethernet 3/0
R2(config-if)#ip add 172.28.12.206 255.255.248.0
R2(config-if)#no sh
R2#telnet 172.28.12.205
Password:
R1>en
% No password set //原因是没有设置特权密码;文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

特权模式密码:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

1:明文密码(在Router#show running-config中可以直接看到明文)
R1#conf t
R1(config)#enable password enableps
R1(config)#exit
R1#disable
R1>en
Password:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

2:加密密码(在Router#show running-config中密码已经被加密)文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

R1(config)#enable secret secretps
R1(config)#exit
R1#disable
R1>en
Password:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

密码取消方法:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

R1(config)#no enable password文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

R1(config)#no enable secret文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

明文口令加密:文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/route/set-security-password/

R1(config)#service password-encryption //所有明文密码都会被加密,具有不可恢复性;

登陆提示语:

R1(config)#banner motd "please enter your password"
R2#telnet 172.28.12.205
please enter your password

扩展阅读:《思科路由器console安全密码设置》《思科路由器密码破解

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onNovember 19, 2012
  • 原文链接:https://note.t4x.org/route/set-security-password/
匿名

Comment

Anonymous

Slide puzzle verification.