1、自己作为ntp客户端
clock timezone BJ add 8
ntp-service unicast-server 202.120.2.101
#首先设置时区
#然后设置ntp服务器
2、自己作为服务器
clock timezone BJ add 8
ntp-service refclock-master 2
#设置时区,并配置ntp服务
3、即作为客户端又作为ntp服务器给其它设备提供ntp服务
可以将二者结合在一起,作为ntp客户端向ntp服务器同步时间。同时作为ntp服务器提供ntp服务