[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring the Router to Operate in Server Mode

In server mode, the router acts as an NTP server for clients when the clients are configured appropriately. The only prerequisite for “ server mode” is that the router must be receiving time from another NTP peer or server. No other configuration is necessary on the router.

To configure the local router to operate as an NTP server, include the following statements at the [edit system ntp] hierarchy level:

[edit system ntp]
authentication-key key-number type type value password;
server address <key key-number> <version value> <prefer>;
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,or 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 the router to operate in client mode, see Configuring the Router to Operate in Client Mode.

Configure the router to operate in server mode:

[edit system ntp]
authentication-key 1 type md5 value "$9$txERuBEreWx-wtuLNdboaUjH.T3AtOESe";
server 172.17.27.46 prefer;
trusted-key 1;

[Contents] [Prev] [Next] [Index] [Report an Error]