[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9871.0. "Does NTP support alias'ed addresses ?" by NNTPD::"[email protected]" (Avi Koski) Mon May 19 1997 09:39

Hi,

Does the NTP (Network Time Protocol) support alias'ed IP addreses ?

On digital Unix V4.0B we have configured for tu0 an alias'ed IP to the
same NIC card. In the level of ping, ftp & telnet using the alias'ed IP
works with no problems. However, an NTP client cannot be sychronized with
an alias'ed IP. Is any solution for that?

Thanks,
Avi
[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
9871.1should workSMURF::DUSTINMon May 19 1997 11:086
    Is the alias within the same subnet as the primary address?
    If so, this should work ok.  Can you supply more details of
    your configuration, ie. addresses, NTP config files, etc.?
    
    John
    
9871.2NTP alias & configuration filesNNTPD::"[email protected]"Avi KoskiThu May 22 1997 11:39394
Hi,

The alias is within the same subnet as the primary address.
(ifconfig tu0 alias 16.190.64.112)

Trying to run ntpsetup on the client with the alias'ed NTP server name FAILS.

# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
*LOCAL(1)        LOCAL(1)         3 l   10   64  377     0.00    0.000   10.48

1) /etc/hosts
   ----------
#
# HISTORY
# 
# @(#)$RCSfile: hosts,v $ $Revision: 1.1.5.2 $ (DEC) $Date: 1995/05/16
16:19:31
 $ 
# 
# Description:  The hosts file associates hostnames with IP addresses.
#
# Syntax:  nnn.nnn.nnn.nnn hostname.domain.name [alias_1,...,alias_n]
[#comment
s]
#
# nnn.nnn.nnn.nnn       the IP address of the host
# hostname.domain.name  the fully qualified hostname, including the domainname
# alias_n               other names or abbreviations for this host
# #comments             text following the comment character (#) is ignored
#
127.0.0.1       localhost
16.190.64.16    mars
16.190.64.50    vlad.iso.dec.com        vlad    #Bind Nameserver
16.190.64.175   simcha.iso.dec.com      simcha  #NTP server name
16.190.64.112   cochva.iso.dec.com      cochva  #NTP alias server name
16.190.64.5     akiva.iso.dec.com       akiva   #NTP client

2) /etc/rc.config
   --------------
#!/bin/sh
#
# *****************************************************************
# *                                                               *
# *    Copyright (c) Digital Equipment Corporation, 1991, 1996    *
# *                                                               *
# *   All Rights Reserved.  Unpublished rights  reserved  under   *
# *   the copyright laws of the United States.                    *
# *                                                               *
# *   The software contained on this media  is  proprietary  to   *
# *   and  embodies  the  confidential  technology  of  Digital   *
# *   Equipment Corporation.  Possession, use,  duplication  or   *
# *   dissemination of the software and media is authorized only  *
# *   pursuant to a valid written license from Digital Equipment  *
# *   Corporation.                                                *
# *                                                               *
# *   RESTRICTED RIGHTS LEGEND   Use, duplication, or disclosure  *
# *   by the U.S. Government is subject to restrictions  as  set  *
# *   forth in Subparagraph (c)(1)(ii)  of  DFARS  252.227-7013,  *
# *   or  in  FAR 52.227-19, as applicable.                       *
# *                                                               *
# *****************************************************************
#
# HISTORY
#
# @(#)$RCSfile: rc.config,v $ $Revision: 4.2.10.2 $ (DEC) $Date: 1995/08/25
19:25
:22 $
#
# The variables set by the netsetup program that are required for network
# configuration are as follows:
#
# HOSTNAME - host name of the system
#
# NUM_NETCONFIG - number of network devices currently configured
#
# MAX_NETDEVS - maximum number of network devices that can be configured
#               which is currently set by netsetup to a value of 16
#
# NETDEV_n - network device name for network devices currently
#            configured, where n is 0 to MAX_NETDEVS - 1
#            for example, NETDEV_0="ln0"
#
# IFCONFIG_n - ifconfig parameters for network devices currently
#              configured, where n is 0 to MAX_NETDEVS - 1
#              (see ifconfig(8) manual page)
#              for example, IFCONFIG_0="130.124.1.20 netmask 255.255.255.0"
#
# RWHOD - "yes" if rwhod is enabled, blank or "no" if rwhod is disabled
#
# ROUTED - "yes" if routed is enabled, blank or "no" if routed is disabled
#
# ROUTED_FLAGS - routed flags (see routed(8) manual page)
#
# ROUTER - "yes" if the system is set up to be an Internet Protocol router,
#          otherwise, blank or "no"
#
# GATED - "yes" if gated is enabled, blank or "no" if gated is disabled
#
# GATED_FLAGS - gated flags (see gated(8) manual page)
#
DISPLAYTYPE=
HOSTNAME="simcha.iso.dec.com"
NUM_NETCONFIG="1"
MAX_NETDEVS="24"
NETDEV_0="ln0"
NETDEV_1=
NETDEV_2=
NETDEV_3=
NETDEV_4=
NETDEV_5=
NETDEV_6=
NETDEV_7=
IFCONFIG_0="16.190.64.175 netmask 255.0.0.0"
IFCONFIG_1=
IFCONFIG_2=
IFCONFIG_3=
IFCONFIG_4=
IFCONFIG_5=
IFCONFIG_6=
IFCONFIG_7=
RWHOD=
ROUTED=
ROUTED_FLAGS=
ROUTER=
GATED=
GATED_FLAGS=
JOIND=
JOIND_FLAGS=
PAGERAW="1"
PAGEFILE="/dev/rz3b"
PARTITION="rz3b"
PARTITIONTYPE="RZ26L"
PAGEMINSZ=0
PAGEMAXSZ=0
QUOTA_CONFIG=
export DISPLAYTYPE HOSTNAME NUM_NETCONFIG QUOTA_CONFIG
export NETDEV_0 NETDEV_1 NETDEV_2 NETDEV_3 NETDEV_4 NETDEV_5 NETDEV_6 NETDEV_7
export IFCONFIG_0 IFCONFIG_1 IFCONFIG_2 IFCONFIG_3 IFCONFIG_4 IFCONFIG_5
export IFCONFIG_6 IFCONFIG_7 RWHOD ROUTED ROUTED_FLAGS GATED GATED_FLAGS
export ROUTER MAX_NETDEVS JOIND JOIND_FLAGS
export PAGERAW PAGEFILE PARTITION PARTITIONTYPE PAGEMINSZ PAGEMAXSZ
INST_SERVER="rz"
export INST_SERVER
XLOGIN="cde"
export XLOGIN
LAT_SETUP="1"
export LAT_SETUP
ENVMON_CONFIGURED="0"
export ENVMON_CONFIGURED
NIS_CONF="YES"
export NIS_CONF
NIS_TYPE="CLIENT"
export NIS_TYPE
NIS_DOMAIN="ssdu"
export NIS_DOMAIN
NIS_ARGS="-s -S ssdu,mars"
export NIS_ARGS
NFS_CONFIGURED="1"
export NFS_CONFIGURED
NFSSERVING="0"
export NFSSERVING
NFSLOCKING="1"
export NFSLOCKING
MOUNTOPTS="-i -n"
export MOUNTOPTS
NONROOTMOUNTS="0"
export NONROOTMOUNTS
NUM_TCPD="8"
export NUM_TCPD
NUM_UDPD="8"
export NUM_UDPD
NUM_PROPLISTD="0"
export NUM_PROPLISTD
PCNFSD="0"
export PCNFSD
NUM_NFSIOD="7"
export NUM_NFSIOD
AUTOMOUNT="1"
export AUTOMOUNT
AUTOMOUNT_ARGS=""
export AUTOMOUNT_ARGS
BIND_CONF="NO"
export BIND_CONF
BIND_SERVERTYPE="CLIENT"
export BIND_SERVERTYPE
BIND_SERVERARGS="NOT_CONFIGURED"
export BIND_SERVERARGS
SENDMAIL_ARGS=" -o8 "
export SENDMAIL_ARGS
XNTPD_CONF="YES"
export XNTPD_CONF
XNTPD_SERV1="cochva.iso.dec.ocm"
export XNTPD_SERV1
XNTPD_OPTS="-g"
export XNTPD_OPTS
MAILLOCKING="5"
export MAILLOCKING

3) /etc/ntp.conf
   -------------
# cat /etc/ntp.conf
#
# *****************************************************************
# *                                                               *
# *    Copyright (c) Digital Equipment Corporation, 1991, 1996    *
# *                                                               *
# *   All Rights Reserved.  Unpublished rights  reserved  under   *
# *   the copyright laws of the United States.                    *
# *                                                               *
# *   The software contained on this media  is  proprietary  to   *
# *   and  embodies  the  confidential  technology  of  Digital   *
# *   Equipment Corporation.  Possession, use,  duplication  or   *
# *   dissemination of the software and media is authorized only  *
# *   pursuant to a valid written license from Digital Equipment  *
# *   Corporation.                                                *
# *                                                               *
# *   RESTRICTED RIGHTS LEGEND   Use, duplication, or disclosure  *
# *   by the U.S. Government is subject to restrictions  as  set  *
# *   forth in Subparagraph (c)(1)(ii)  of  DFARS  252.227-7013,  *
# *   or  in  FAR 52.227-19, as applicable.                       *
# *                                                               *
# *****************************************************************
#
# HISTORY
#
# @(#)$RCSfile: ntp.conf,v $ $Revision: 4.2.5.2 $ (DEC) $Date: 1995/03/23
19:13:2
9 $
#
#  XNTPD Configuration File (template for NTP V3)
#
#
# Specify a filename for the "driftfile" created by xntpd.
# /etc/ntp.drift is the default.
#
driftfile /etc/ntp.drift
#
#
#
#
# Specify several NTP servers and/or peers (See the xntpd documentation
# for recommendations on selecting servers and peers).
# NOTE: Be sure to specify the version number of the server/peer:
#
#               peer host1 version 2        # xntpd V2
#               server host2 version 1      # ntpd V1
#               server host3 version 3      # xntpd V3
#
#
# For further information on configuration options, see the xntpd
# documentation.  If you have a local accurate clock (radio clock, etc),
# you will need to specify further configuration options.
peer 127.127.1.1

4) ntpsetup session on the client
   --------
Script started on Thu May 22 13:45:11 1997
# ntpsetup

        ********************************************************************
        *                                                                  *
        *               Network Time Protocol (NTP V3) Setup               *
        *                                                                  *
        ********************************************************************



^G        NTP has already been installed on this host.

Would you like to change the current NTP configuration (y/n) [no default]? y

        Default answers are shown in square brackets ([]).  To use a default 
        answer, press RETURN.

        Authentication mode
        -------------------
        Authentication mode causes the server to synchronize with peers only
        if the peer has been correctly authenticated using a trusted key and
        key identifier.

        In choosing to enable authentication, you must already know the key
        number and the key identifier in order to correctly configure each 
        host name and the /etc/ntp.keys file.

        If you do not know this information, enter 'n' in response to the next
        question. See the Network Administration manual and ntp.conf(4) for
        information on authentication.


Would you like to enable authentication (y/n) [n]? 

        NTP Server/Peer Selection
        -------------------------
        During the selection of servers and peers, you will be asked 
        for a hostname, and for the mode, server or peer, to be
        associated to each hostname.


        Press RETURN to terminate the list.

Hostname of NTP server/peer [no default]: cochva

Mode for cochva (server or peer)  (s/p) [s]?
Looking up host cochva ... found.

Is cochva running ntpd (V1) or xntpd (V2 or V3) (V1/V2/V3) [V3]?

Hostname of NTP server/peer [no default]:

        The list of NTP servers is:
        server cochva  version 3

Enter "r" to REDO the servers list, "e" to EXIT the ntpsetup
procedure,  or "c" to CONTINUE [no default]: c

        Created ntp.conf


        IMPORTANT NOTE
        --------------
        If any of the NTP servers you specified are not in
        the same IP subnet as your system, you must run either
        routed or gated in order to access them.  Please
        see the networking documentation to set up one of
        these services.

[ Press RETURN to continue ] :



        Xntpd (the NTP daemon) Options
        ------------------------------
        NOTE: The default answers are RECOMMENDED.

        Correct large time differences, -g
        ----------------------------------

        If your system time differs from the network time by more
        than 1000 seconds while xntpd is running, the daemon will
        suspect that something is very wrong with your system or
        your servers.  It will then log a message to the syslog and
        exit, to allow the system manager to resolve the problem.

        The -g option allows xntpd to correct large time differences
        without logging a message or exiting.  It should be used by
        systems which are not monitored very closely by a system
        manager (such as workstations).

Would you like to use the -g option (y/n) [y]?

        Prevent time getting set backwards, -x
        -------------------------------------------

        The -x option prevents xntpd from correcting time when the offset
        is negative. This can happen for example if the server(s) have
        fallen behind for some reason.

Would you like to use the -x option (y/n) [n]?

        Configuring your system to run NTP... done.

        Starting the NTP daemon (xntpd)...
Setting kernel timezone variable
Setting the current time and date with ntpdate
Ntpdate failed.
Network Time Service started

        To monitor NTP, enter "/usr/bin/ntpq -p".


        ******  NTPSETUP Complete ******
# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
==============================================================================
 cochva.iso.dec. 0.0.0.0         16 u    -   64    0     0.00    0.000 16000.0
# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 cochva.iso.dec. 0.0.0.0         16 u    -   64    0     0.00    0.000 16000.0
# ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
 cochva.iso.dec. 0.0.0.0         16 u    -   64    0     0.00    0.000 16000.0
# exit
#
script done on Thu May 22 13:46:20 1997

Thanks,
Avi

[Posted by WWW Notes gateway]
9871.3Looks like ntp.conf is wrongNNTPD::"[email protected]"Brian HaleyTue May 27 1997 18:3220
Hi,

This line in /etc/ntp.conf on the client is wrong, it's setting you up
as a local reference clock:

   peer 127.127.1.1

How did that get there from running your ntpsetup excerpt?  The line
that should be there is:

   server cochva  version 3

Are you sure you cut and pasted the right file?  I would ask the same
question about rc.config because XNTP_SERV1 should not be fully
qualified, it should just be cochva because that's what you gave as
the time server's name in ntpsetup.  Maybe someone hand-edited these
files afterwards?

-Brian
[Posted by WWW Notes gateway]