这里主要是说
line console 0
line vty 0 4
配置中有几个牵涉到密码的设置。
password 是指连接到路由器 需要输入的认证密码。
我们可以通过show running-config 查看到我们设置的密码。
如:
line con 0
password a
login
!
line aux 0
!
line vty 0 4
password b
login
通过PC进行Telnet,无法进入配置模式
PC>telnet 192.168.6.1
Trying 192.168.6.1 ...Open
User Access Verification
Password:
r2>enable
% No password set.
设置进入特权模式的密码
enable secret c
加密存储设置的密码
service password-encryption