配置进入特权模式的密码和密匙

13年前 (2012-08-30)网络技术

配置进入特权模式的密码和密匙: 

    这两个密码是用来限制非授权用户进入特权模式。因为特权密码是未加密的,所以我们一般都推荐用户使用特权密匙,且特权密码仅在特权密匙未使用的情况下才会有效。

    1、router(config)#enable password cisco

    命令解释:开启特权密码保护。

 

 

    2、router(config)#enable secret cisco

    命令解释:开启特权密匙保护。

    配置控制端口的用户密码

    1、router(config)#line console 0

    命令解释:进入控制线路配置模式。

    2、router(config-line)#login

    命令解释:开启登陆密码保护

    3、router(config-line)#password cisco

    命令解释:设置密码为cisco,这里的密码区分大小写。

    配置辅助端口(AUX)的用户密码:

    1、router(config)#line aux 0

    命令解释:进入辅助端口配置模式。

   2、router(config-line)#login

    命令解释:开启登陆密码保护

    3、router(config-line)#password cisco

    命令解释:设置密码为cisco,这里的密码区分大小写。

    配置VTY(telnet)登陆访问密码:

    1、router(config)#line vty 0 4

    命令解释:进入VTY配置模式。

 

 

   2、router(config-line)#login

    命令解释:开启登陆密码保护

    3、router(config-line)#password cisco

    命令解释:设置密码为cisco,这里的密码区分大小写。

 

==================================================

Cisco Router 更改telnet(第一層)密碼步驟 

1.telnet 至 Cisco Router,輸入 telnet password (enter) 

2.輸入 enable,輸入 enable password (enter) 

3.Router# configure terminal (enter) 

註解 : 進入 configuration mode. 

4.Router(config)# line vty 0 4 (enter) 

註解 : 進入line mode. 

5.Router(config)# password yourpassword (enter) 

例如: password abc123 

註解 : 設定 password. 

6.按 Ctrl + Z (enter) 

註解 : 跳出 configuration mode. 

8.輸入 write (enter) 

註解 : 將設定存檔. 

Cisco Router更改enable密碼步驟 

1.telnet至Cisco Router,輸入telnet password (enter) 

2.輸入enable,輸入enable password (enter) 

3.Router# configure terminal (enter) 

註解 : 進入configuration mode. 

4.Router(config)# enable password yourpassword (enter) 

例如: enable password abc123 

註解 : 更改enable密碼. 

5.按Ctrl + Z (enter) 

註解 : 跳出configuration mode. 

6.輸入 write (enter) 

註解 : 將設定將設定存檔