Cloud Lab-5: How to install Network Time Server (NTP)

LAB-5 TASKS

In this Lab we perform following tasks

  1. Create a vm for NTP Server
  2. Our Perquisites configuration for NTP Server
  3. Install NTP Server
  4. NTP Client Settings

1-Create a VM for NTP Server

Use the following specs to create a VM for Cloud NTP and install OS.

o   Right Click on Server and Choose New Virtual Machine
o   Enter VM Name (Cloud-NTP) and Inventory Location
o   Select Datastore
o   Select Virtual Machine Version: select latest available
o   Select “Red hat Enterprise Linux (64-bit)” as OS Version
o   # of Virtual Processors: 1
o   Amount of RAM: 1GB
o   Network
o # of NICs: 1
o Adapter Type: VMXNET 3
o Select “Connect at Power On
o   SCSI Controller: VM Paravirtual
o   Create New Virtual Disk: 10GB
o   Use thin provision
o   Install OS.

2-Our Perquisites configuration for NTP Server

Before starting to install NTP Server. Configure following perquisite

  • Set system name (cloud-ntp.vmlab.com)
  • Configure an IP address (192.168.150.13)
  • Verify time and time zone settings (Asia/Karachi) or what ever your timezone is.
  • Enter forward and Reverse DNS Entry for cloud.ntp.vmlab.com  
  • Remove Unnecessary Service
  • Disable IPV6, IPtables and SELinux

3-Install NTP Server

Install ntp package using yum

#yum install –y ntp

cloud-lab4-ntp1

Edit /etc/ntp.conf file for Server Configuration

# vi /etc/ntp.conf

cloud-lab4-ntp2

Comment the highlighted lines in “vi /etc/ntp.conf”

cloud-lab4-ntp3

Uncomment highlight line in “vi /etc/ntp.conf”

cloud-lab4-ntp4

Start NTP Service and make it available on startup

# service ntpd  start && chkconfig ntpd on

cloud-lab4-ntp5

Verify your server. ( * ) is sign of your server working fine it will take sometime to appear.

# watch ntpq –p -n

cloud-lab4-ntp6

4-NTP Client Settings

# yum –y intall ntp

Edit /etc/ntp.conf

Comment all line start with Server and add following line

Server 192.168.150.13

*NOTE: 192.168.150.13 is NTP Server IP*

Start NTP Service and make it available on startup

# service ntpd  start && chkconfig ntpd on

Sync your time with ntp server n all client

#ntp –u 192.168.150.13

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s