We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2373167 commit e3b6caaCopy full SHA for e3b6caa
1 file changed
docs/ops/network-service/ntp.md
@@ -48,13 +48,13 @@ chrony 也提供了 NTP 服务端的功能。在如今公用 NTP 服务器池资
48
49
启用服务端功能,只需要编辑 `/etc/chrony.conf` 允许子网访问:
50
51
-```
+```shell
52
allow 192.168/16
53
```
54
55
可以在 DHCP 中下发 NTP 服务器配置,这样客户端不再需要额外的配置。这里以常见的 DHCP 服务端软件 dnsmasq 为例,编辑 `/etc/dnsmasq.conf`:
56
57
+```ini
58
dhcp-option=option:ntp-server,192.168.0.1
59
60
0 commit comments