284 CHAPTER 11: SYSTEM MANAGEMENT
Perform the following configurations in system view.
An interface is specified by interface-name or interface-type
interface-number
. The source address of the packets will be taken from the IP
address of the interface. If the
ntp-service unicast-server or ntp-service
unicast-peer
command also designates a transmitting interface, use the one
designated by them.
Setting the NTP Master Clock
This configuration task sets the external reference clock or the local clock as the
NTP master clock.
Perform the following configurations in system view.
ip-address specifies the IP address 127.127.1.u of a reference clock, in which u
ranges from 0 to 3.
stratum specifies how many strata the local clock belongs to
and ranges from 1 to 15. If no IP address is specified, the system defaults to
setting the local clock as the NTP master clock. You can specify the
stratum
parameter.
Enabling or Disabling an Interface to Receive an NTP Message
This configuration task enables or disables an interface to receive the NTP
message.
Perform the following configurations in VLAN interface view.
This configuration task must be performed on the interface to be disabled from
receiving an NTP message.
Table 328 Designating an Interface to Transmit NTP Message
Operation Command
Designate an interface to transmit NTP
message
ntp-service source-interface {
interface-name | interface-type
interface-number }
Cancel the interface to transmit NTP message undo ntp-service source-interface
Table 329 Setting the External Reference Clock or the Local Clock as the NTP Master
Clock
Operation Command
Set the external reference clock or the local
clock as the NTP master clock.
ntp-service refclock-master [
ip-address ] [ stratum ]
Cancel the NTP master clock settings undo ntp-service refclock-master
[ ip-address ]
Table 330 Enabling or Disabling an Interface to Receive an NTP Message
Operation Command
Enable an interface to receive an NTP message undo ntp-service in-interface
disable
Disable an interface from receiving an NTP
message
ntp-service in-interface disable