[ntp:questions] forcing ntpd to query from a restricted interface or subnet

Anton Melser melser.anton at gmail.com
Fri May 4 15:04:24 UTC 2012


Hi,
I am cross-posting this from the CentOS list - there have been plenty
of views but no answers and I'm not sure exactly where to post...
So I have CentOS 6 (x64) - apparently nptd "Ver. 4.2.4p8". My problem
is that I have too many IPs for ntpd to do a listen on every one. So I
tried restricting both with adding -I eth0 on the command line
parameters (in /etc/sysconf/ntpd) and with the interface instruction
in /etc/ntp.conf. Neither works, and ntpd refuses to start.

...
May  3 09:40:57 MyHost ntpd[980]: Listening on interface #1005
eth1:132235, 10.132.235.1#123 Enabled
May  3 09:40:57 MyHost ntpd[980]: Listening on interface #1006
eth1:132236, 10.132.236.1#123 Enabled
May  3 09:40:57 MyHost ntpd[980]: Listening on interface #1007
eth1:132237, 10.132.237.1#123 Enabled
May  3 09:40:57 MyHost ntpd[980]: Too many sockets in use, FD_SETSIZE
1024 exceeded

Sorry if this is the wrong place to post (if so please point in the
right direction).
Cheers
Anton

-- 
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...
-> not this one! :-)


More information about the questions mailing list