To configure the local router to operate in client mode, include the server statement and other optional statements at the [edit system ntp] hierarchy level:
- [edit system ntp]
-
server address <key key-number> <version value> <prefer>;
-
authentication-key key-number type type value password;
-
boot-server address;
-
trusted-key [ key-numbers ];
Specify the address of the system acting as the time server. You must specify an address, not a hostname.
To include an authentication key in all messages sent to the time server, include the key option. The key corresponds to the key number you specify in the authentication-key statement, as described in Configuring NTP Authentication Keys.
By default, the router sends NTP version 4 packets to the time server. To set the NTP version level to 1, 2, or 3 include the version option.
If you configure more than one time server, you can mark one server preferred by including the prefer option.
For information about how to configure trusted keys, see Configuring NTP Authentication Keys. For information about how to configure an NTP boot server, see Configuring the NTP Boot Server. For information about how to configure the router to operate in server mode, see Configuring the Router to Operate in Server Mode.