Server(Windows2000 or WindowsXP):
Method 1:
Step 1: Specify the master time server. InDoSMode Input"Net time/setsntp: pool.ntp.org"Here we specifyPool.ntp.orgIt is the master time server or another address.
Step 2: Start synchronization with the master time server. Close firstWindows TimeAnd then enable the service. You can"Management tools"Of"Service"You can also useDoSMode Input"Net stop w32time","Net start w32time".
Step 3: SetWindows TimeThe service is started automatically. In"Management tools"Of"Service"Interface. Note ThisWindowsThe host cannot be added to any domain; otherwise, it cannot be started.Windows TimeService. At this time, thisWindowsThe computer is already the customer of the master time server. It will automatically proofread the time with the master time server each time the computer starts. If the network is disconnected, the computer will also pass45The time will be automatically proofread again in minutes. Note that the computer clock and standard time error cannot exceed12Hours. Otherwise, the system cannot automatically proofread and must be manually corrected.
Step 4: make the computer a time server for the computer inside the LAN to proofread the time. Run"Regedit"Set"Hkey_local_machine_system_currentcontrolset_services_w32time_parameters"In
LocalntpChange1You can.
Method 2:
Install a third partyNTPServer software, recommendedNTP v4.1
1.During installation, the system prompts you to set the server address and enterNTPServerIPAddress
2. ntpdControl: Control Panel->;Management tools->;Component Service-Networktimeprotocol
3.Can be startedNtpdDaemon maintains time synchronization
4.InC: \ winntThere isNTPConfiguration FileNTP. conf
Set:
Server 127.127.1.0 prefer
Fudge 127.127.1.0 stratum 10
5.OKNTPWork?: Ntpq? CP
Client:
The main task of the client is to connect to the time server in the LAN to keep the computer clock synchronized with the server. MinuteLinux,
Windows 98,2000,XPSeveral cases
1, Linux Host
In fact, the above introduction Linux In the system NTP Service, as mentioned above NTP The Time Service is also a time service customer.
End, as long as /Etc/NTP. conf File "Server pool.ntp.org" Change "Server Internal time server IP
Address " You can. If you do not want to use NTP Service, also available NTP The Ntpdate Command, as long as the manual execution
"Ntpdate Time Server IP Address " You can. If you want to enable automatic synchronization every day, you can place this command in Cron , Pay attention to the same
Computer NTP Service and Ntpdate Command cannot be used at the same time.
2 , Windows2000 Host
Perform the first three steps when setting the time server.
3 , Windows XP Host
You can press Windows2000 Host method settings, you can also double-click the clock icon in the lower right corner of the taskbar to open " Date and Time Attributes "
Dialog box, in "Internet Time " Card selected " Automatic and Internet Time Server Synchronization " , And fill in the server
Time Server IP Address.
4 , Windows 98 Host
Third-party software needs to be installed. Recommended Achron . The software is easy to operate. "Hostname or IP address"
Enter the time server in the LAN IP Address, "Protocol" Select SNTP You can. Of course in Windows 98 Run on Computer
"Net time Machine name or IP Address /Set/Yes" It may also work with other Windows The computer synchronizes the clock on the premise that these computers are
Same CIDR Block and installed Netbios Protocol. Put this command in Autoexec. bat To enable automatic
.