-
configuration services ntp에서 authkey 명령을 사용하여 권한 부여를 편집합니다.
clownfish:configuration services ntp> authkey
clownfish:configuration services ntp authkey>
-
이 컨텍스트에서 create 명령을 사용하여 새 키를 추가할 수 있습니다.
clownfish:configuration services ntp authkey> create
clownfish:configuration services ntp authkey-000 (uncommitted)> get
keyno = (unset)
type = (unset)
key = (unset)
clownfish:configuration services ntp authkey-000 (uncommitted)> set keyno=1
keyno = 1 (uncommitted)
clownfish:configuration services ntp authkey-000 (uncommitted)> set type=A
type = A (uncommitted)
clownfish:configuration services ntp authkey-000 (uncommitted)> set key=coconuts
key = ******** (uncommitted)
clownfish:configuration services ntp authkey-000 (uncommitted)> commit
clownfish:configuration services ntp authkey>
-
CLI를 통해 인증 키가 서버와 연관되려면 serverkeys 등록 정보를 값 목록으로 설정해야 합니다. 여기서 각 값은 servers 등록 정보의 해당 서버와 연관되는 키입니다. 서버가 인증을 사용하지 않으면 해당 서버 키를 0으로 설정해야 합니다. 예를 들어, 위에서 만든 키를 사용하여 서버 "gefilte" 및 "carp"를 인증합니다.
clownfish:configuration services ntp> set servers=gefilte,carp
servers = gefilte,carp (uncommitted)
clownfish:configuration services ntp> set serverkeys=1,1
serverkeys = 1,1 (uncommitted)
clownfish:configuration services ntp> commit
clownfish:configuration services ntp>
-
CLI를 통해 인증 키가 서버와 연관되려면 serverkeys 등록 정보를 값 목록으로 설정해야 합니다. 여기서 각 값은 servers 등록 정보의 해당 서버와 연관되는 키입니다. 서버가 인증을 사용하지 않으면 해당 서버 키를 0으로 설정해야 합니다. 예를 들어, 위에서 만든 키를 사용하여 서버 "gefilte" 및 "carp"를 인증합니다.
clownfish:configuration services ntp> set servers=gefilte,carp
servers = gefilte,carp (uncommitted)
clownfish:configuration services ntp> set serverkeys=1,1
serverkeys = 1,1 (uncommitted)
clownfish:configuration services ntp> commit
clownfish:configuration services ntp>
-
서버 "gefilte"를 키 1로 인증하고, "carp"를 키 2로 인증하고, "dory"를 키 3으로 인증하려면 다음과 같이 하십시오.
clownfish:configuration services ntp> set servers=gefilte,carp,dory
servers = gefilte,carp,dory (uncommitted)
clownfish:configuration services ntp> set serverkeys=1,2,3
serverkeys = 1,2,3 (uncommitted)
clownfish:configuration services ntp> commit
clownfish:configuration services ntp>
-
서버 "gefilte" 및 "carp"를 키 1로 인증하고 추가로 인증되지 않은 NTP 서버 "dory"를 포함하려면 다음과 같이 하십시오.
clownfish:configuration services ntp> set servers=gefilte,carp,dory
servers = gefilte,carp,dory (uncommitted)
clownfish:configuration services ntp> set serverkeys=1,1,0
serverkeys = 1,1,0 (uncommitted)
clownfish:configuration services ntp> commit
clownfish:configuration services ntp>