Experimental environment:
Linux CentOS 5.5 Two units
IP Address:
ntpserver:192.168.186.129
ntpclient:192.168.186.152
Test requirements:
Install the NTP server and deploy the implementation to allow the client to synchronize its practices normally. and analysis of the fault handling encountered during the implementation of the project.
Implementation process:
NtpServer-side deployments.
1, first check whether the NTP service installed, if the installation is not installed. The installation method is very simple RPM–IVH uninstall Rpm–e query is installed as shown;
2, to see whether the NTP boot. If you do not start our setup in 3.5 mode automatically run on OK. As shown in figure:
3, modify the NTP service configuration file; in/etc/ntp.conf. In the case of illustration, we mark out the places that need to be modified. In the description of the time with the number description can be. 1. By default, all operations of the NTP client are rejected by default in centos5.5, and Kod features are turned on. RESTRICR 127.0.0.1 is all operations that are allowed locally. 2. is to add the allowed network segment and subnet mask; Here you need to pay attention to two parameters; Nomodiy indicates that the client cannot modify the parameters of the NTP server; notrap indicates that the trap remote login option is not available; Noquery does not provide NTP service. 3. Configure the IP address on the top level of the synchronization server. 4. If you cannot communicate with the NTP server on the previous level, use local time and specify the layer of the local NTP server. 5. Set the log path for the NTP server.