Configure the NTP server mode
Configure the NTP peer mode
Configure the NTP broadcast server mode
Configure NTP broadcast client mode
Configure NTP multicast server mode
Configure NTP multicast client mode
I. Configure NTP Server Mode
This task sets a remote server as the local time server by specifying its address
X.X.X.X
.
X.X.X.X
which represents a host address. This must not be a broadcast
address, or multicast address, or the IP address of the reference clock. In this case,
the local router is working in client mode. It is up to the local client rather than the
remote server to synchronize its clock with that maintained by the remote server.
Perform the following configuration in system view.
Table 4-1 Configure NTP time server
Operation
Command
Configure NTP time server
ntp-service unicast-server X.X.X.X [ version number | authentication-keyid
keyid | source-interface {
{
interface-name | interface-type } interface-number }
|
priority ] *
Disable the NTP server
mode
undo ntp-service unicast-server X.X.X.X
NTP version is in the range of 1 to 3 and defaults to 3. The authentication key ID is
in the range of 1 to 4294967295. You can specify an interface by specifying its
interface-name
or
interface-type interface number
. The local router will use the IP
address of the interface as the source IP address carried by the NTP messages sent
to the time server. In addition, you can specify the time server as the preferred time
server by specifying
priority
.
II. Configure the NTP peer mode
This task is to set the remote server at X.X.X.X as the peer of the local router. In this
case, the local router is running in symmetric active mode.
X.X.X.X
represents a host
address, which must not be a broadcast address, or multicast address, or the IP
address of the reference clock
.
With this approach, the local router can synchronize
its clock with the one maintained by the remote server while the remote server is also
allowed to synchronize its clock with the one maintained by the router.
Perform the following configuration in system view.
3Com Router Configuration Guide Addendum for V1.20
44