Mailinglist Archive: opensuse (4237 mails)

< Previous Next >
Re: [SLE] ntp host setting
  • From: Jim Cunning <jcunning@xxxxxxxxxxxxxxx>
  • Date: Fri, 6 Aug 2004 22:37:03 -0700 (PDT)
  • Message-id: <Pine.LNX.4.58.0408062229470.17667@xxxxxxxxxxxxxxxxxxx>
On Aug 7 at 12:43am, Jorge Fábregas wrote:

> On Saturday 07 August 2004 12:36 am, C Hamel wrote:
> > The IPs in the 1st two lines of ntp.conf are 127.127.1.0.  Is that correct,
> > or should they be 127.0.0.1?
>
> It should be 127.0.0.1 (the loopback device ip, e.g. localhsot)...but why do
> you have that ip there? There should be the ip address of the NTP servers
> your machine is going to connect to... or are you serving some ntp clients?

The address 127.127.1.0 is indeed correct. If one reads the beginning
lines of the default /etc/ntp.conf, there is an explanation:

## Radio and modem clocks by convention have addresses in the
## form 127.127.t.u, where t is the clock type and u is a unit
## number in the range 0-3.
##
## Most of these clocks require support in the form of a
## serial port or special bus peripheral. The particular
## device is normally specified by adding a soft link
## /dev/device-u to the particular hardware device involved,
## where u correspond to the unit number above.
##
## Generic DCF77 clock on serial port (Conrad DCF77)
## Address: 127.127.8.u
## Serial Port: /dev/refclock-u
[...]
##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized

If you want to reference a real ntp server, you must include the IP
address of each as indicated in the remainder of the config file (tho'
you can also include the dns name):

##
## Outside source of synchronized time
##
## server xx.xx.xx.xx # IP address of server
server tock.cs.unlv.edu #### for example

Jim Cunning

< Previous Next >
Follow Ups