CCNA实验:配置特权模式密码

Bob>en
Bob#configure terminal (简写为conf t)
Enter configuration commands, one per line. End with CNTL/Z.
Bob(config)#enable password cisco (登录特权模式的密码为cisco)
Bob(config)#


接下来show run查看配置文件
Bob#show running-config

!
enable password cisco (这里密码以明文显示,很容易泄漏)
!


Bob#configure terminal(conf t)
Enter configuration commands, one per line. End with CNTL/Z.
Bob(config)#service password-encryption(明文加密)
//为了对密码加密,可以使用以上命令

Bob(config)#


再次show run查看配置文件
Bob#show running-config
!
enable password 7 02050D480809
//密码为7 02050D480809为明文加密,用一定的工具可以查看此密码

!


Bob#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Bob(config)#enable secret password(更安全的加密技术)
现次查看show run文件
Bob#sh run

!
enable secret 5 $1$zlk3$oCqEHjmkYXftGONoUac9y/ (密文加密后的密码)
enable password 7 02050D480809 (明文加密后的密码)

!

猜你喜欢

转载自blog.51cto.com/starshomes/2537348