版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、ESXi與NTP服務(wù)器同步的抓包測(cè)試問(wèn)題:ESXi配置NTP時(shí)間同步時(shí),當(dāng)指向由Windows系統(tǒng)搭建的NTP服務(wù)器時(shí),無(wú)法實(shí)現(xiàn)同步,而指向由Linux系統(tǒng)搭建的NTP服務(wù)器時(shí),則可以實(shí)現(xiàn)同步。為查找問(wèn)題根源,專(zhuān)門(mén)搭建了測(cè)試環(huán)境,進(jìn)行抓包分析,研究其中發(fā)生的過(guò)程。測(cè)試環(huán)境: 序號(hào)名稱(chēng)IP Address系統(tǒng)版本作用1ESXi Server22ESXi5.0ESXi服務(wù)器,作為NTP客戶(hù)端2Router1919Windows 2003配置了路由功能,并安裝抓包工具3NTP Server1Win
2、dows2003搭建NTP服務(wù)器4NTP Server2Rhel5.5搭建NTP服務(wù)器拓?fù)鋱D:測(cè)試ESXi使用Windows 2003搭建NTP的服務(wù)器按照VMware提供KB的建議, 0 970354356 1.配置Windows 2003,搭建NTP客戶(hù)端修改注冊(cè)表,步驟如下:1.Enable NTP mode:Locate HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParametersSet the Type value to NTP.2.Enable the NTP Client:Locat
3、e HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfigSet the AnnounceFlags value to 5.3.Specify the upstream NTP servers to sync from:Locate HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersSet the NtpServer value to a list of at least 3 NTP servers.Example: You might
4、set the value to:,0x1 2.,0x1 3.,0x1Note: On a Windows 2008 Domain Controller, NtpServer is located in HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParameters.4.Specify a 15-minute update interval:Locate HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW
5、32TimeTimeProvidersNtpClientSet the SpecialPollInterval value to 900.5.Restart the W32time service for the changes to take effect.2.配置ESXi Server,將其N(xiāo)TP服務(wù)器指向由Windows搭建的NTP服務(wù)器1.Open the /etc/ntp.conf file in a text editor. For more information, see Editing configuration files in VMware ESXi and ESX (1
6、017022).2.Add the tos maxdist command on its own line:tos maxdist 303.Save and close the configuration file.4.Make the /etc/likewise/lsassd.conf file writable by running the command:chmod +w /etc/likewise/lsassd.conf5.Open the /etc/likewise/lsassd.conf file in a text editor. For more information, se
7、e Editing configuration files in VMware ESXi and ESX (1017022).6.Locate the sync-system-time option, uncomment it, and set the value to no:sync-system-time = no7.Save and close the configuration file.8.On ESXi, save the configuration changes to the boot bank so they persist across reboots by running
8、 the command:/sbin/auto-backup.sh9.Restart the ntpd and lsassd services for the configuration changes to take effect by running the commands:service lsassd restartservice ntpd restartNote: To restart the ntpd and lsassd services on an ESXi host, run these commands:./etc/init.d/lsassd restart./etc/in
9、it.d/ntpd restart3.配置ESXi的NTP服務(wù)器地址4.監(jiān)控?cái)?shù)據(jù)包只有從ESXi發(fā)出的NTP包,NTP server沒(méi)有回復(fù)。5.在KB的基礎(chǔ)上做調(diào)整,修改注冊(cè)表,啟動(dòng)NTP服務(wù)修改注冊(cè)表的鍵值:Run->regedit HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32Time TimeProvidersNtpServer內(nèi)的Enabled為1,打開(kāi)NTP服務(wù)器功能(默認(rèn)是不開(kāi)啟NTP Server服務(wù)重啟W23Time服務(wù)6.啟動(dòng)NTP服務(wù)后,抓包顯示NTP服務(wù)器有了回復(fù)7.NTP數(shù)據(jù)包ESXi 發(fā)出的NTP請(qǐng)求包
10、是NTP版本4.Windows搭建的NTP Server的響應(yīng)包是NTP版本3ESXi未完成時(shí)間同步,NTP服務(wù)器發(fā)回的響應(yīng)包并未被接受。測(cè)試ESXi使用Linux搭建NTP的服務(wù)器1.配置Linux作為NTP服務(wù)器1.編輯ntp.conf2.Ntp.conf配置示例:# Permit time synchronization with our time source, but do not# permit the source to query or modify the service on this system.restrict default nomodify# Permit all
11、 access over the loopback interface. This could# be tightened as well, but to do so would effect some of# the administrative functions.restrict # - CLIENT NETWORK -# Permit systems on this network to synchronize with this# time service. Do not permit those systems to modify the# configurati
12、on of this service. Also, do not use those# systems as peers for synchronization.# restrict mask nomodify notrap# - OUR TIMESERVERS - server 0.server 1.server 2.# - NTP MULTICASTCLIENT -#multicastclient# listen on default # restr
13、ict mask 55 nomodify notrap# restrict mask nomodify notrap# - GENERAL CONFIGURATION -# Undisciplined Local Clock. This is a fake driver intended for backup# and when no outside source of synchronized time is available. The# default stratum is usually
14、3, but in this case we elect to use stratum# 0. Since the server line does not have the prefer keyword, this driver# is never used for synchronization, unless no other other# synchronization source is available. In case the local host is# controlled by some external source, such as an external oscil
15、lator or# another protocol, the prefer keyword would cause the local host to# disregard all other synchronization sources, unless the kernel# modifications are in use and declare an unsynchronized condition.#server# local clockfudge stratum 10# Drift file. Put this in a directo
16、ry which the daemon can write to.# No symbolic links allowed, either, since the daemon updates the file# by creating a temporary in the same directory and then rename()'ing# it to the file.#driftfile /var/lib/ntp/driftbroadcastdelay0.008# Keys file. If you want to diddle your server at run time,
17、 make a# keys file (mode 600 for sure) and define the key number to be# used for making requests.# PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote# systems might be able to reset your clock at will. Note also that# ntpd is started with a -A flag, disabling authentication, that# will have to be removed as well.#keys/etc/ntp/keys3. Linux防火墻啟動(dòng)123端口2.更改ESXi的NTP服務(wù)器,將其指向Linux服務(wù)器的IP:3.NTP數(shù)據(jù)包內(nèi)容1. 總共發(fā)了20個(gè)ntp請(qǐng)
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五版辦公家具展會(huì)租賃與銷(xiāo)售合作合同3篇
- 二零二五年度武漢東湖風(fēng)景區(qū)旅游開(kāi)發(fā)合同3篇
- 二零二五年度藝術(shù)品共同創(chuàng)作與展覽合同2篇
- 二零二五版房屋租賃合同免責(zé)及維修保障3篇
- 二零二五版燈光照明工程設(shè)計(jì)咨詢(xún)合同2篇
- 二零二五版班組分包消防設(shè)施分包服務(wù)合同樣本3篇
- 二零二五版新媒體行業(yè)勞動(dòng)合同制度及知識(shí)產(chǎn)權(quán)保護(hù)協(xié)議2篇
- 二零二五年空調(diào)銷(xiāo)售與綠色消費(fèi)倡導(dǎo)合同3篇
- 二零二五年度鋼管模板租賃環(huán)保要求及價(jià)格評(píng)估合同3篇
- 二零二五版網(wǎng)絡(luò)安全威脅情報(bào)共享與預(yù)警服務(wù)合同范本3篇
- 2025-2030年中國(guó)糖醇市場(chǎng)運(yùn)行狀況及投資前景趨勢(shì)分析報(bào)告
- 八年級(jí)散文閱讀專(zhuān)題訓(xùn)練-八年級(jí)語(yǔ)文上冊(cè)知識(shí)梳理與能力訓(xùn)練
- 2024年杭州市中醫(yī)院高層次衛(wèi)技人才招聘筆試歷年參考題庫(kù)頻考點(diǎn)附帶答案
- 2024-2025學(xué)年人教版八年級(jí)數(shù)學(xué)上冊(cè)期末測(cè)試模擬試題(含答案)
- 《環(huán)境感知技術(shù)》2024年課程標(biāo)準(zhǔn)(含課程思政設(shè)計(jì))
- GB/T 45079-2024人工智能深度學(xué)習(xí)框架多硬件平臺(tái)適配技術(shù)規(guī)范
- 2024年安徽省銅陵市公開(kāi)招聘警務(wù)輔助人員(輔警)筆試自考練習(xí)卷二含答案
- 國(guó)家安全教育高教-第六章堅(jiān)持以經(jīng)濟(jì)安全為基礎(chǔ)
- 水處理藥劑采購(gòu)項(xiàng)目技術(shù)方案(技術(shù)方案)
- 2024年城市環(huán)衛(wèi)一體化服務(wù)合同
- 工地春節(jié)安全培訓(xùn)
評(píng)論
0/150
提交評(píng)論