NTP JUNOS

From Teknologisk videncenter
Jump to: navigation, search

NTP

NTP protokollen bruges til at holde tiden synkroniseret på alt udstyret[1].

Konfigration på Juniper

Konfigureres under system ntp. her er både konfigureret en synkroniserings server og en opstarts server.

[edit system]
rael@SRX240# <input>show</input>
ntp {
    boot-server 83.90.47.30;
    server 83.90.47.30;
}

[edit system]
rael@SRX240# <input>commit</input>

Verificering

Se om NTP synkroniserer

rael@SRX240> show ntp associations
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*cpe.atm2-0-7514 193.200.91.90    3 -   43   64  <notice>377    1.377    1.735   0.947</notice>

Og at klokken er sat rigtigt:

rael@SRX240> <input>show system uptime</input>
Current time: <notice>2014-10-16 15:22:23 CEST</notice>
System booted: 2014-10-16 13:48:28 CEST (01:33:55 ago)
Protocols started: 2014-10-16 13:50:23 CEST (01:32:00 ago)
Last configured: 2014-10-16 15:08:43 CEST (00:13:40 ago) by rael
 3:22PM  up 1:34, 1 user, load averages: 0.04, 0.07, 0.06

Flere NTP kommandoer

taget direkte fra help reference.

rael@SRX240> <input>help reference system ntp</input>
                                      ntp

    Syntax

   ntp {
           authentication-key number type type value password;
           <notice>boot-server address;</notice>
           broadcast <address> <key key-number> <version value> <ttl value>;
           broadcast-client;
           multicast-client <address>;
           peer address <key key-number> <version value> <prefer>;
           <notice>server address <key key-number> <version value> <prefer>;
           source-address source-address;</notice>
           trusted-key [ key-numbers ];

   }

    Hierarchy Level

   [edit system]

Referencer