[ntp:questions] Re: ntp on linux listen on an interface

Per Hedeland per at hedeland.org
Tue Sep 13 21:12:14 UTC 2005


In article <43263510.8000802 at gis.net> mayer at gis.net (Danny Mayer) writes:
>Per Hedeland wrote:
>> In article <dfr322$gs9$1 at news.csc.depauw.edu> Ron Croonenberg
>> <ronc at depauw.edu> writes:
>> 
>>>I am running ntp (ntpd 4.1.2) on a linux box running RHEL4.
>>>
>>>I configured an interface on that machine and want ntpd to listen and 
>>>respond on that interface.
>>>
>>>Somehow I can't get that to work. The clients get sync-ed via the 
>>>"original" ip address (the one of the hostname) but not when using the 
>>>alias of the interface that has a different ip-address.
>>>
>>>Can ntpd be configured to listen on a certain ip-address and respond as 
>>>if the response is coming from that same ip-address ?
>> 
>> 
>> Harlan rsponded to the question as read "listen *only* on a certain
>> ip-address" I believe - if you don't mind that it listens on other IP
>> addresses too, it should work already, but depending on version and OS
>> you may need to give it the -L option to have it listen on "alias"
>> addresses a.k.a. "virtual interfaces". Regardless, responses will always
>> be sent with the source address taken from the destination address of
>> the query.
>> 
>
>Per, there was a bug that I fixed a while ago which could cause this
>kind of thing to happen due to the packet arriving on the wildcard port.
>That can no longer happen so it should now always return a packet from
>the same address.

Yes, I saw that in your other followup - was this bug ever in a
"released" version? I've never come across it. Anyway, it seems we now
have three different interpretations of the OP's question, so I guess it
would be good if he would clarify...

--Per Hedeland
per at hedeland.org




More information about the questions mailing list