思科设备密码配置

How to Configure CISCO Router Password?

12 Juin 2012, 20:22pm

 | 

Publié par router

Passwords are used to restrict access to a CISCO router. Passwords can be given to the virtual terminal lines and the console line. Moreover, password can be set privileged EXEC mode. This page will provide the information to set up CISCO router password to virtual terminal lines, console lines and privileged mode. Even more, you will learn how to encrypt the password also.

 

Why console password is required?

Console password is useful on a network on which multiple people have to access to the router. The persons who are not authorized, can't access the router. Thus it prevents unauthorized person from accessing the router.

Cisco_10.jpg

Configuring console password of a CISCO routers:

  1. Enter global configuration mode of the CISCO router.
  2. Put the command line console 0 to the router.
  3. Provide the password by using password command. For example, if you want to put password "cisco" then the command will be password cisco.
  4. At last, put the command login.

 

Commands for configuring console password

Router>enable

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#line console 0

Router(config-line)#password cisco

Router(config-line)#login

Router(config-line)#

 

Why virtual terminal password is required?

Virtual terminal password refers to telnet password. Through telnet, you can access the router and can change anything. So, it's really important to protect the use of telnet by giving a strong password.

 

Configuring virtual terminal password of a CISCO router:

Different hardware has different no of vty lines defined. Cisco has the range 0 to 4 vty lines. It means it has 5 vty lines. You can set the password of vty lines by the following steps:

  1. Enter global configuration mode of the CISCO router.
  2. Put the command line vty 0 4 to the router.
  3. Provide the password by using password command. For example, if you want to put password "cisco" then the command will be password cisco.
  4. At last, put the command login.

 

Commands for configuring virtual terminal password

Router>enable

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#line vty 0 4

Router(config-line)#password cisco

Router(config-line)#login

Router(config-line)#

 

Why enable password is required?

Enable password is required to restrict the access of privileged EXEC mode.

 

Configuring enable password of a CISCO router:

From the global configuration mode, use the command enable password to restrict access to privileged EXEC mode. However, this password is visible in the routers configuration file. To encrypt the password, enable secret command is required. By using enable secret command the password is encrypted and can't be readable to a human.

 

Commands for configuring enable password

Enable password:

Router>enable

Router#config

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#enable password cisco

Router(config)#

Perform password encryption:

Router>enable

Router#config

Router#configure terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#enable secret cisco

Router(config)#

 

How to encrypt all the CISCO router password?

By default all the passwords of a CISCO router is readable in clear text in the configuration file. This is a great security threat if someone read it and configure or change the router configuration. So, to protect form display the password, service password-encryption command is used to encrypt the passwords. Service password-encryption is a global command and encrypt the passwords:

  • enable password
  • console password
  • vty password
  • aux password

By following the above steps you can easily configure CISCO router passwords.

More Cisco ROUTER INFO: http://blog.router-switch.com/

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值