這裏主要是說
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