




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、ESXi與NTP服務器同步的抓包測試問題:ESXi配置NTP時間同步時,當指向由Windows系統搭建的NTP服務器時,無法實現同步,而指向由Linux系統搭建的NTP服務器時,則可以實現同步。為查找問題根源,專門搭建了測試環境,進行抓包分析,研究其中發生的過程。測試環境: 序號名稱IP Address系統版本作用1ESXi Server22ESXi5.0ESXi服務器,作為NTP客戶端2Router1919Windows 2003配置了路由功能,并安裝抓包工具3NTP Server1Win
2、dows2003搭建NTP服務器4NTP Server2Rhel5.5搭建NTP服務器拓撲圖:測試ESXi使用Windows 2003搭建NTP的服務器按照VMware提供KB的建議, 0 970354356 1.配置Windows 2003,搭建NTP客戶端修改注冊表,步驟如下: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,將其NTP服務器指向由Windows搭建的NTP服務器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服務器地址4.監控數據包只有從ESXi發出的NTP包,NTP server沒有回復。5.在KB的基礎上做調整,修改注冊表,啟動NTP服務修改注冊表的鍵值:Run->regedit HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32Time TimeProvidersNtpServer內的Enabled為1,打開NTP服務器功能(默認是不開啟NTP Server服務重啟W23Time服務6.啟動NTP服務后,抓包顯示NTP服務器有了回復7.NTP數據包ESXi 發出的NTP請求包
10、是NTP版本4.Windows搭建的NTP Server的響應包是NTP版本3ESXi未完成時間同步,NTP服務器發回的響應包并未被接受。測試ESXi使用Linux搭建NTP的服務器1.配置Linux作為NTP服務器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防火墻啟動123端口2.更改ESXi的NTP服務器,將其指向Linux服務器的IP:3.NTP數據包內容1. 總共發了20個ntp請
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 正規出國勞動合同協議
- 2025年城市供水合同協議
- 2025建筑工程合作合同
- 欠款委托協議書范本
- 2025項目管理合同協議書的范本格式
- 商場煙柜轉讓合同協議
- 2025規范合同樣板:家庭裝修合同協議
- 母子拆遷協議書格式
- 品牌備案產品合同協議
- 2025購銷合同范本范例
- 2025年海淀高三二模語文試題及答案
- 上海2025屆高考模擬數學試卷02(解析版)
- 邊坡工程考試試題及答案
- 2024年中國光大銀行深圳分行招聘考試真題
- 節目招商合同協議
- 甘肅釀皮子制作方法
- 達夢數據庫培訓
- 食堂節約管理制度規范
- 綠化工程安全教育培訓
- 紅色旅游知到智慧樹章節測試課后答案2024年秋南昌大學
- 人工智能基礎知到智慧樹章節測試課后答案2024年秋北京科技大學
評論
0/150
提交評論