The following topics describe how to configure these modes of operation:
1.
Configuring the Router or Switch to Operate in Client Mode on page 15
2.
Configuring the Router or Switch to Operate in Symmetric Active Mode on page 15
3.
Configuring the Router or Switch to Operate in Broadcast Mode on page 16
4.
Configuring the Router or Switch to Operate in Server Mode on page 16
Configuring the Router or Switch to Operate in Client Mode
To configure the local router or switch 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” on page 18
.
By default, the router or switch 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” on page 18
. For information about how to configure an NTP boot server, see
“Configuring the NTP Boot Server” on page 13
. For information about how to configure
the router or switch to operate in server mode, see
“Configuring the Router or Switch to
Operate in Server Mode” on page 16
.
The following example shows how to configure the router or switch to operate in client
mode:
[edit system ntp]
authentication-key 1 type md5 value "$9$EgfcrvX7VY4ZEcwgoHjkP5Q3CuREyv87";
boot-server 10.1.1.1;
server 10.1.1.1 key 1 prefer;
trusted-key 1;
Configuring the Router or Switch to Operate in Symmetric Active Mode
To configure the local router or switch to operate in symmetric active mode, include the
peer
statement at the
[edit system ntp]
hierarchy level:
[edit system ntp]
peer
address <key key-number> <version value> <prefer>;
15
Copyright © 2014, Juniper Networks, Inc.
Chapter 2: Configuring Time
Содержание Dynabug 57810
Страница 6: ...Copyright 2014 Juniper Networks Inc vi Time Management Administration Guide for Routing Devices...
Страница 13: ...PART 1 Overview Time Management Overview on page 3 1 Copyright 2014 Juniper Networks Inc...
Страница 14: ...Copyright 2014 Juniper Networks Inc 2 Time Management Administration Guide for Routing Devices...
Страница 20: ...Copyright 2014 Juniper Networks Inc 8 Time Management Administration Guide for Routing Devices...
Страница 54: ...Copyright 2014 Juniper Networks Inc 42 Time Management Administration Guide for Routing Devices...
Страница 56: ...Copyright 2014 Juniper Networks Inc 44 Time Management Administration Guide for Routing Devices...
Страница 57: ...CHAPTER 4 Operational Commands set date 45 Copyright 2014 Juniper Networks Inc...
Страница 59: ...CHAPTER 5 Monitoring Commands show ntp associations show ntp status 47 Copyright 2014 Juniper Networks Inc...
Страница 64: ...Copyright 2014 Juniper Networks Inc 52 Time Management Administration Guide for Routing Devices...
Страница 65: ...PART 4 Index Index on page 55 53 Copyright 2014 Juniper Networks Inc...
Страница 66: ...Copyright 2014 Juniper Networks Inc 54 Time Management Administration Guide for Routing Devices...