More

    [시스코 (Cisco)] L2/L3 스위치 계정 생성 및 패스워드 설정

    1. 계정 생성

    Switch#en
    
    Switch(config)#username admin secret cisco                      // admin계정 생성 password cisco
    
    Switch#sh run
    
    Building configuration...
    
    Current configuration : 2214 bytes
    
    !
    
    version 12.2
    
    no service pad
    
    service timestamps debug datetime msec
    
    service timestamps log datetime msec
    
    no service password-encryption
    
    !
    
    hostname Switch
    
    !
    
    boot-start-marker
    
    boot-end-marker
    
    !
    
    !
    username admin secret 5 $1$r0sp$FpLDah.RckGe/qpjQHrUj.          // secert 명령어 사용하여 패스워드 암호화
    

    2. enable / 패스워드 설정

    일반 password와 암호화 저장할 수 있는 secret 명령어를 사용하여 암호를 생성할 수 있다.

    Switch#en
    
    Switch(config)#enable password cisco
    
    Switch#sh run
    
    Building configuration...
    
    *Mar 1 00:22:44.834: %SYS-5-CONFIG_I: Configured from console by console
    
    Current configuration : 2237 bytes
    
    !
    
    version 12.2
    
    no service pad
    
    service timestamps debug datetime msec
    
    service timestamps log datetime msec
    
    no service password-encryption
    
    !
    
    hostname Switch
    
    !
    
    boot-start-marker
    
    boot-end-marker
    
    !
    
    enable password cisco                                         // enable 패스워드가 생성 되었으나 암호화 X
    
    !
    
    username admin secret 5 $1$r0sp$FpLDah.RckGe/qpjQHrUj.
    
    Switch(config)#service password-encryption                    // 패스워드 암호화
    
    Switch#show run
    
    Building configuration...
    
    Current configuration : 2246 bytes
    
    !
    
    version 12.2
    
    no service pad
    
    service timestamps debug datetime msec
    
    service timestamps log datetime msec
    
    service password-encryption
    
    !
    
    hostname Switch
    
    !
    
    boot-start-marker
    
    boot-end-marker
    
    !
    
    enable password 7 13061E01080344
    
    !
    
    username admin secret 5 $1$r0sp$FpLDah.RckGe/qpjQHrUj.
    
    Switch(config)#enable secret cisco                         // enable password와 암호화 동시 설정

    쉽쥬?

    Subscribe

    댓글 남기기