NTP概述:
NTP為UDP協(xié)議,端口為123,
時(shí)間配置模式分none和ntp,none缺陷設(shè)備運(yùn)行一段時(shí)間,時(shí)間會(huì)對(duì)不上,而配置ntp模式,將配置保存設(shè)備,即使斷電也不影響開(kāi)機(jī)時(shí)間,讓設(shè)備與時(shí)間服務(wù)器進(jìn)行自動(dòng)同步。
ntp server與客戶端必須要ping通
none配置:
clockprotocolnone#時(shí)間協(xié)議 clocktimezonebeijingadd8#默認(rèn)采用utc時(shí)區(qū),北京時(shí)間為utc+8 clockdatetime11402022/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-serviceenable#開(kāi)啟NTP服務(wù) clockprotocolntp clocktimezonebeijingadd8#默認(rèn)采用utc時(shí)區(qū),北京時(shí)間為utc+8 ntp-serviceunicast-server120.25.108.11#配置ntp時(shí)間服務(wù)器 displayntp-servicestatus#查看ntp狀態(tài) displayntp-servicesessions#查看ntp會(huì)話信息
注意:
可以通過(guò)多次執(zhí)行ntp-service unicast-peer命令或ntp-service ipv6 unicast-peer命令為設(shè)備指定多個(gè)被動(dòng)對(duì)等體
ntp client只需要將unicast-server指向172.16.2.1即可。
ntp-client配置:
system-view clocktimezonebeijingadd8 clockprotocolntp ntp-serviceenable ntp-serviceunicast-server172.16.2.1 saveforce
ntp-serviceenable ntp-serviceunicast-serverh3crd-wlan1.chinacloudapp.cnpriority ntp-serviceunicast-serverpool.ntp.org ntp-serviceunicast-servertime.windows.com ntp-serviceunicast-servertime.nist.gov ntp-serviceunicast-server120.25.108.11 責(zé)任編輯:彭菁
-
服務(wù)器
+關(guān)注
關(guān)注
12文章
9596瀏覽量
86986 -
客戶端
+關(guān)注
關(guān)注
1文章
296瀏覽量
16940 -
NTP
+關(guān)注
關(guān)注
1文章
208瀏覽量
14280
原文標(biāo)題:華三交換機(jī)配置ntp server
文章出處:【微信號(hào):網(wǎng)絡(luò)技術(shù)干貨圈,微信公眾號(hào):網(wǎng)絡(luò)技術(shù)干貨圈】歡迎添加關(guān)注!文章轉(zhuǎn)載請(qǐng)注明出處。
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
京準(zhǔn)電鐘:GPS時(shí)鐘服務(wù)器(NTP授時(shí)服務(wù)器)資料詳細(xì)介紹書(shū)
用NTP服務(wù)器自動(dòng)設(shè)置BB Black的時(shí)間
互聯(lián)網(wǎng)可用時(shí)間服務(wù)器地址(NTP時(shí)間服務(wù)器地址)
如何驗(yàn)證NTP服務(wù)器?
NTP服務(wù)器和北斗時(shí)鐘的區(qū)別
什么是NTP服務(wù)器 NTP服務(wù)器如何工作
NTP服務(wù)器介紹

NTP網(wǎng)絡(luò)時(shí)鐘同步服務(wù)器(授時(shí)服務(wù)器)的幾種設(shè)置方法

安徽京準(zhǔn) NTP網(wǎng)絡(luò)校時(shí)器 NTP服務(wù)器 電廠應(yīng)用方案

評(píng)論