NTP setup

The servers are actually gateways, and are sourcing time from CERN's ip-time-1 and ip-time-2 machines, with the daq.lhcb network as client.

We currently operate two NTP servers: time01.daq.lhcb and time02.daq.lhcb. The necessary configuration files for servers and clients, working both for SLC3 and SLC4, are given below.

Server

/etc/ntp.conf:

# Prohibit general access to this service.
restrict default ignore

# Permit all access over the loopback interface.
restrict 127.0.0.1

# -- CLIENT NETWORK -------
restrict 10.135.0.0 mask 255.255.0.0 nomodify

# --- OUR TIMESERVERS -----
server ip-time-1.cern.ch
restrict 137.138.16.69 mask 255.255.255.255 nomodify notrap noquery
server ip-time-2.cern.ch
restrict 137.138.17.69 mask 255.255.255.255 nomodify notrap noquery

# --- GENERAL CONFIGURATION ---
#
# Undisciplined Local Clock. 
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10

# Drift file.  
driftfile /var/lib/ntp/drift
broadcastdelay  0.008

# Authentication delay.
authenticate yes

# Keys file. 
keys            /etc/ntp/keys

/etc/ntp/ntpservers:

ip-time-1.cern.ch
ip-time-2.cern.ch

/etc/ntp/step-tickers:

ip-time-1.cern.ch
ip-time-2.cern.ch
127.127.1.0

Client on internal (daq.lhcb) network

/etc/ntp.conf:

# Prohibit general access to this service.
restrict default nomodify notrap noquery

# Permit all access over the loopback interface. 
restrict 127.0.0.1

# --- OUR TIMESERVERS -----
server time01.daq.lhcb
restrict time01.daq.lhcb mask 255.255.255.255 nomodify notrap noquery
server time02.daq.lhcb
restrict time02.daq.lhcb mask 255.255.255.255 nomodify notrap noquery


# --- GENERAL CONFIGURATION ---
#
# Undisciplined Local Clock. 
server 127.127.1.0
fudge   127.127.1.0 stratum 10

# Drift file. 
driftfile /var/lib/ntp/drift
broadcastdelay  0.008

# Authentication delay.
authenticate yes

# Keys file. 
keys            /etc/ntp/keys

/etc/ntp/ntpservers:

time01.daq.lhcb
time02.daq.lhcb

/etc/ntp/step-tickers:

time01.daq.lhcb
time02.daq.lhcb
127.127.1.0

-- ArturBarczyk - 09 Jun 2006

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2008-03-11 - LoicBrarda
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LHCb All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback