Go to main content
Oracle® ZFS Storage Appliance 관리 설⁠명⁠서, 릴⁠리⁠스 OS8.6.x

인쇄 보기 종료

업데이트 날짜: 2016년 9월
 
 

NTP 구성(CLI)

  1. configuration services ntp에서 authkey 명령을 사용하여 권한 부여를 편집합니다.
    hostname:configuration services ntp> authkey
    hostname:configuration services ntp authkey>
    
  2. 이 컨텍스트에서 create 명령을 사용하여 새 키를 추가할 수 있습니다.
    hostname:configuration services ntp authkey> create
    hostname:configuration services ntp authkey-000 (uncommitted)> get
                            keyno = (unset)
                             type = (unset)
                              key = (unset)
    hostname:configuration services ntp authkey-000 (uncommitted)> set keyno=1
                            keyno = 1 (uncommitted)
    hostname:configuration services ntp authkey-000 (uncommitted)> set type=A 
                             type = A (uncommitted)
    hostname:configuration services ntp authkey-000 (uncommitted)> set key=coconuts
                              key = ******** (uncommitted)
    hostname:configuration services ntp authkey-000 (uncommitted)> commit
    hostname:configuration services ntp authkey> 
  3. CLI를 통해 인증 키가 서버와 연관되려면 serverkeys 등록 정보를 값 목록으로 설정해야 합니다. 여기서 각 값은 servers 등록 정보의 해당 서버와 연관되는 키입니다.

    서버가 인증을 사용하지 않으면 해당 서버 키를 0으로 설정해야 합니다. 예를 들어, 위에서 만든 키를 사용하여 서버 "gefilte" 및 "carp"를 인증합니다.

    hostname:configuration services ntp> set servers=gefilte,carp
                          servers = gefilte,carp (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,1
                       serverkeys = 1,1 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>
  4. 인증 키를 서버와 연관시키려면 serverkeys 등록 정보를 값 목록으로 설정합니다. 여기서 각 값은 servers 등록 정보의 해당 서버와 연관되는 키입니다.

    서버가 인증을 사용하지 않으면 해당 서버 키를 0으로 설정해야 합니다. 예를 들어, 위에서 만든 키를 사용하여 서버 "gefilte" 및 "carp"를 인증합니다.

    hostname:configuration services ntp> set servers=gefilte,carp
                          servers = gefilte,carp (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,1
                       serverkeys = 1,1 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>
  5. 서버 "gefilte"를 키 1로 인증하고, "carp"를 키 2로 인증하고, "dory"를 키 3으로 인증하려면 다음과 같이 하십시오.
    hostname:configuration services ntp> set servers=gefilte,carp,dory
                          servers = gefilte,carp,dory (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,2,3
                       serverkeys = 1,2,3 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>
  6. 서버 "gefilte" 및 "carp"를 키 1로 인증하고 추가로 인증되지 않은 NTP 서버 "dory"를 포함하려면 다음과 같이 하십시오.
    hostname:configuration services ntp> set servers=gefilte,carp,dory
                          servers = gefilte,carp,dory (uncommitted)
    hostname:configuration services ntp> set serverkeys=1,1,0
                       serverkeys = 1,1,0 (uncommitted)
    hostname:configuration services ntp> commit
    hostname:configuration services ntp>