NTP概述:
NTP為UDP協(xié)議,端口為123,
時(shí)間配置模式分none和ntp,none缺陷設(shè)備運(yùn)行一段時(shí)間,時(shí)間會(huì)對(duì)不上,而配置ntp模式,將配置保存設(shè)備,即使斷電也不影響開機(jī)時(shí)間,讓設(shè)備與時(shí)間服務(wù)器進(jìn)行自動(dòng)同步。
ntp server與客戶端必須要ping通
none配置:
clock protocol none #時(shí)間協(xié)議
clock timezone beijing add 8 #默認(rèn)采用utc時(shí)區(qū),北京時(shí)間為utc+8
clock datetime 11:55:40 2022/05/25 #實(shí)際時(shí)間
ntp server配置(172.16.2.1):
阿里云公共時(shí)間服務(wù)器120.25.108.11、182.92.12.11、203.107.6.88、120.25.115.20
ntp-service enable #開啟NTP服務(wù)
clock protocol ntp
clock timezone beijing add 8 #默認(rèn)采用utc時(shí)區(qū),北京時(shí)間為utc+8
ntp-service unicast-server 120.25.108.11 #配置ntp時(shí)間服務(wù)器
display ntp-service status #查看ntp狀態(tài)
display ntp-service sessions #查看ntp會(huì)話信息
注意:
可以通過多次執(zhí)行ntp-service unicast-peer命令或ntp-service ipv6 unicast-peer命令為設(shè)備指定多個(gè)被動(dòng)對(duì)等體
ntp client只需要將unicast-server指向172.16.2.1即可。文章來源:http://www.zghlxwxcb.cn/news/detail-530685.html
ntp-client配置:文章來源地址http://www.zghlxwxcb.cn/news/detail-530685.html
system-view
clock timezone beijing add 8
clock protocol ntp
ntp-service enable
ntp-service unicast-server 172.16.2.1
save force
ntp-service enable
ntp-service unicast-server h3crd-wlan1.chinacloudapp.cn priority
ntp-service unicast-server pool.ntp.org
ntp-service unicast-server time.windows.com
ntp-service unicast-server time.nist.gov
ntp-service unicast-server 120.25.108.11
到了這里,關(guān)于華三交換機(jī)配置ntp server的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!