美文网首页
路由器名称和特权密码的变更

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

作者: singed | 来源:发表于2018-10-18 14:44 被阅读0次

    主要命令

    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       
    

    相关文章

      网友评论

          本文标题:路由器名称和特权密码的变更

          本文链接:https://www.haomeiwen.com/subject/gktszftx.html