API Guide
Identifier GUID-DA92D9A4-F1B8-4947-9E79-FAB527E19BB9
Version 6
Status Translation approved
启用 NTP
默认情况下,NTP 处于禁用状态。要启用 NTP,请配置系统同步的 NTP 服务器。要配置多个服务器,请多次输入命令。多个服务器
可能会影响 CPU 资源。
• 在 CONFIGURATION 模式下输入系统同步的 NTP 服务器的 IP 地址。
ntp server ip-address
查看系统时钟状态
OS10(config)# do show ntp status
system peer: 0.0.0.0
system peer mode: unspec
leap indicator: 11
stratum: 16
precision: -22
root distance: 0.00000 s
root dispersion: 1.28647 s
reference ID: [73.78.73.84]
reference time: 00000000.00000000 Mon, Jan 1 1900 0:00:00.000
system flags: monitor ntp kernel stats
jitter: 0.000000 s
stability: 0.000 ppm
broadcastdelay: 0.000000 s
authdelay: 0.000000 s
查看计算的 NTP 同步变量
OS10(config)# do show ntp associations
remote local st poll reach delay offset disp
=======================================================================
10.16.150.185 10.16.151.123 16 1024 0 0.00000 0.000000 3.99217
OS10# show ntp associations
remote local st poll reach delay offset disp
=======================================================================
10.16.150.185 10.16.151.123 16 1024 0 0.00000 0.000000 3.99217
Identifier
GUID-6BBDA778-6622-45E2-B7E5-44C2A297B7CA
Version 5
Status Translation approved
转播
接收时间信息的广播,并在系统中设置接口,以通过广播接收 NTP 信息。默认情况下,在所有活动接口上启用 NTP。如果禁用某个
接口上的 NTP,系统会丢弃发送到该接口的任何 NTP 数据包。
1. 设置接口以接收处于 INTERFACE 模式的 NTP 数据包。
ntp broadcast client
2. 在 INTERFACE 模式下禁用接口上的 NTP。
ntp disable
配置 NTP 广播
OS10(config)# interface ethernet 1/1/10
OS10(conf-if-eth1/1/10)# ntp broadcast client
禁用 NTP 广播
OS10(config)# interface ethernet 1/1/10
OS10(conf-if-eth1/1/10)# ntp disable
174
系统管理