Wednesday 27 February 2013

How to create User Name in CISCO Devices

Create User Name and Unencrypted Password

Router>enable
Router#conf t
Router(config)#username admin password cisco
Router(config)#exit
Router#wr
Router#show running-config
Building configuration...

Current configuration : 508 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
username admin password 0 cisco
!
!
!
 --More-- 

Here your password is saved in clear text in your configuration file which is not a safer way to save password in your configuration file.


Create User Name and encrypted Password

Router>enable
Router#conf t
Router(config)#username admin secret cisco
Router(config)#exit
Router#wr
Router#show running-config
Building configuration...

Current configuration : 531 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
username admin secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
 --More--

Here your password is saved in encrypted form in your configuration file which is a safer way to save password in your configuration file.

No comments:

Post a Comment