路由器名称和特权密码的变更

2018-10-18  本文已影响0人  singed

主要命令

Router(config)#hostname R1 
R1(config)#enable password ccna
R1(config)#enable secret ccnp
R1(config)#line vty 0 4
R1(config-line)#password ccie
R1(config)#service password-encryption

过程

Router>enable 
Router#configure terminal 
Router(config)#hostname R1 
R1(config)#enable password ccna
R1(config)#enable secret ccnp
R1(config)#line vty 0 4
R1(config-line)#password ccie
R1(config-line)#end
R1#sh run 
Building configuration...

Current configuration : 1160 bytes
!
! Last configuration change at 08:34:29 EET Thu Oct 18 2018
!
version 15.7
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$ISqz$r3t5R4.tnxXjBMWxWfPiV1
enable password ccna
!

-----省略-----

line con 0
 logging synchronous
line aux 0
line vty 0 4
 password ccie
 login    
 transport input none
!         
!         
end       
R1#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#service password-encryption 
R1(config)#end
R1#sh run
Building configuration...

*Oct 18 06:35:07.167: %SYS-5-CONFIG_I: Configured from console by console
Current configuration : 1173 bytes
!
! Last configuration change at 08:35:07 EET Thu Oct 18 2018
!
version 15.7
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$ISqz$r3t5R4.tnxXjBMWxWfPiV1
enable password 7 121A061913
!

-----省略-----

line con 0
 logging synchronous
line aux 0
line vty 0 4
 password 7 0007100F01
 login    
 transport input none
!         
!         
end       
上一篇 下一篇

猜你喜欢

热点阅读