hostname:configuration services ntp> authkey hostname:configuration services ntp authkey>
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>
サーバーが認証を使用しない場合、対応するサーバー鍵は 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>
サーバーが認証を使用しない場合、対応するサーバー鍵は 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>
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>
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>