NTP in UBuntu. The Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable- latency.

Slides:



Advertisements
Similar presentations
Copyright © 2014 EMC Corporation. All Rights Reserved. Basic Network Configuration for File Upon completion of this module, you should be able to: Configure.
Advertisements

The Gilda User Interface Discipline: Grid Computing, 07/08-2 Practical classes Inês Dutra, DCC/FCUP.
Keeping You Connected Through Citrix Access your applications Access your network shares and documents Access your …and do it remotely!
File sharing. Connect the two win 7 systems with LAN card Open the network.
© 2010 VMware Inc. All rights reserved VMware ESX and ESXi Module 3.
Cisco Confidential 1 © 2011 Cisco and/or its affiliates. All rights reserved.
Remote Accessing Your Home Computer Using VNC and a Dynamic DNS Name.
Firewalls CS158B Don Tran. What is a Firewall? A firewall can be a program or a device that controls access to a network.
Installing a DHCP Server role on Windows Server 2008 R2 in a home network. This is intended as a guide to install the DHCP role on a Domain Controller.
CIS 193A – Lesson10 Protecting Your Network. CIS 193A – Lesson10 Focus Question What information contained in packets can be used as matching criteria.
Lesson 3 Introduction to Networking Concepts Lesson 3.
CNT-150VT. Question #1 Your name Question #2 Your computer number ##
1 ISA Server 2004 Installation & Configuration Overview By Nicholas Quinn.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Configuring the MagicInfo Pro Display
INFS 752 Summer Juan Salazar Please right click the symbol in the lower right corner, and then press preview, to hear the presentation for each page.
Microsoft Internet Security and Acceleration (ISA) Server 2004 is an advanced packet checking and application-layer firewall, virtual private network.
Lab How to Use WANem Last Update Copyright 2011 Kenneth M. Chipps Ph.D. 1.
Objectives Define IP Address To be able to assign an IP address with its Subnet Mask and Default Gateway to a PC that operates using Windows 7 or Fedora.
Day 14 Introduction to Networking. Unix Networking Unix is very frequently used as a server. –Server is a machine which “serves” some function Web Server.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
Jabberd Quick Installation Guide. The jabberd server is the original open-source server implementation of the Jabber protocol, and is the most popular.
9th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
12th EELA Tutorial for Users and System Administrators E-infrastructure shared between Europe and Latin America User Interface installation.
UNIT - III. Time Server It is a daemon that runs on one machine and to which other systems synchronize their system clocks. It is a service that provides.
Configuring IQmol for Windows machines, use version!
4th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
General rules 1. Rule: 2. Rule: 3. Rule: 10. Rule: Ask questions ……………………. 11. Rule: I do not know your skill. If I tell you things you know, please stop.
Network Time Protocol Objectives Contents to learn how to setup ntp
FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin America BDII Server Installation and Configuration.
E-infrastructure shared between Europe and Latin America Introduction to the tutorial for site managers Vanessa Hamar Universidad de Los.
Network Time Protocol Objectives Contents to learn how to setup ntp
Third EELA Tutorial for Managers and Users E-infrastructure shared between Europe and Latin America CE + WN installation and configuration.
12th EELA TUTORIAL - USERS AND SYSTEM ADMINISTRATORS FP6−2004−Infrastructures−6-SSA E-infrastructure shared between Europe and Latin.
How to setup DSS V6 iSCSI Failover with XenServer using Multipath Software Version: DSS ver up55 Presentation updated: February 2011.
Source NAT Configuration Example Alcatel-Lucent Security Products Configuration Example Series.
INTERNET APPLICATIONS CPIT405 Install a web server and analyze packets.
GLite WN Installation Giuseppe LA ROCCA INFN Catania ACGRID-II School 2-14 November 2009 Kuala Lumpur - Malaysia.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Network Time ● Jonathan Schipp ● Dubois County Linux User Group ● August 7 th, 2011 ● jonschipp (at) gmail.com.
9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.
LINUX - SAMBA
Unit 7: DHCP, APIPA and NTP. Static versus dynamic IP addressing Dynamic IP addresses can change each time you connect to the Internet, while static IP.
Dynamic Host Configuration Protocol
Virtual Private Network Access for Remote Networks
beas group AG Beas sql guide Martin Heigl CTO
VMware ESX and ESXi Module 3.
IP Routing using Packet Tracer Simulator
Troubleshooting a Network
Introduction to Networking Concepts
FIREWALL configuration in linux
Lab 2: Packet Capture & Traffic Analysis with Wireshark
Module 8: Networking Services
Network Commands 2 Linux Ubuntu A.S.
Troubleshooting Network Communications
LINUX ADMINISTRATION 1
BOOTP and DHCP Objectives
Introduction to Computers
Firewall Exercise.
User Defined Functions
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Chapter 7: Access Control Lists
POV-Clients Sync.
Hardware Appliance Installation and Configuration
has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.
Module 12 Network Configuration
OS7030 – How to upgrade the software to v4.93
How to install and manage exchange server 2010 OP Saklani.
Presentation transcript:

NTP in UBuntu

The Network Time Protocol (NTP) is a protocol for synchronizing the clocks of computer systems over packet-switched, variable- latency data networks. NTP uses UDP port 123 as its transport layer. It is designed particularly to resist the effects of variable latency (Jitter).

Using NTP is a great way to keep your system clock set correctly. It works by contacting a number of servers around the world, asking them for the time and then calculating what the correct local time is from their responses.

If you have install ntpdate package before you need to uninstall using the following command – sudo aptitude remove ntpdate

Install NTP server in Ubuntu – sudo aptitude install ntp This will install all the required packages for NTP.

Configure NTP Server The configuration file for ntpd is located at /etc/ntp.conf. The default Ubuntu file probably requires some modification for optimal performance.You need to edit the /etc/ntp.conf file using the following command sudo nano /etc/ntp.conf

Example Configuration You need to add a number of servers to the server list. The Debian default is pool.ntp.org which works but isn’t always amazingly accurate because it makes no attempt to use time servers near you. If you want more accuracy use the time servers either on your continent (for instance europe.pool.ntp.org) or your country (for instance uk.pool.ntp.org) one of your local country servers.The optimal number of servers to listen to is three but two will also give a good accuracy. If your ISP runs a time server for you it is worth including it in your server list as it will often be more accurate than the pooled servers and will help keep the load down on the pool.

using the following two servers for configuration server ntp0.pipex.net server ntp1.pipex.net Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server. restrict otherntp.server.org mask nomodify notrap noquery restrict ntp.research.gov mask nomodify notrap noquery The mask statement is really a subnet mask limiting access to the single IP address of the remote NTP servers.

If this server is also going to provide time for other computers, such as PCs, other Linux servers and networking devices, then you’ll have to define the networks from which this server will accept NTP synchronization requests. You do so with a modified restrict statement removing the noquery keyword to allow the network to query your NTP server. The syntax is: – restrict mask nomodify notrap In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network.

We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords – restrict Save the file and exit Now you need to restart NTP server for these settings to take effect using the following command – sudo /etc/init.d/ntp restart

Determining If NTP Is Synchronized Properly Use the ntpq command to see the servers with which you are synchronized. It provided you with a list of configured time servers and the delay, offset and jitter that your server is experiencing with them. For correct synchronization, the delay and offset values should be non-zero and the jitter value should be under 100. – sudo ntpq -np

In the output of above command A star by any one of the chosen server names means that the system clock is synchronising with the NTP clock. If you don’t have a star (as in the example above) it means that the clocks are unreachable, already synchronized to this server or has an outrageous synchronization distance.

Try running ntpdate (you will need to stop the ntp server) with your first ntp server as an argument. This will set your system clock fairly accuratly and mean that the server will be able to choose a clock to synchronize with.

Firewall Configuration for NTP NTP servers communicate with one another using UDP with a destination port of 123. Unlike most UDP protocols, the source port isn’t a high port (above 1023), but 123 also. You’ll have to allow UDP traffic on source/destination port 123 between your server and the Stratum 1/2 server with which you are synchronizing.

NTP Linux Client Configuration If you want to configure ntp client you need to install the following packages – sudo aptitude install ntp ntp-simple ntpdate

Configuring NTP client You need to edit the /etc/ntp.conf file you need to point the following settings to NTP server ip address sudo nano /etc/ntp.conf Server configuration settings server

Configuring NTP client Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server. – restrict default notrust nomodify nopeer Localhost configuration – restrict In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network.

Configuring NTP client We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords – restrict Now you need to save and exit the file Run ntpdate command against your server – sudo ntpdate Restart ntp service using the following command – sudo /etc/init.d/ntp restart

Windows Clients Configuration Windows machines use a simplified version of NTP called Simple Network Time Protocol (SNTP), and can synchronize with NTP servers. In order to synchronize with your new server, double click on the time and go to the "Internet Time" tab. Put the IP address of your server in the "Server" field. or You can download Automachron from here and install in your windows xp/2000 machineshere

References protocol-ntp-server-and-clients-setup-in- ubuntu.html