HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- ntp configuration with multiple interfaces
Operating System - Linux
1827668
Members
3515
Online
109967
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 05:26 AM
03-10-2004 05:26 AM
ntp configuration with multiple interfaces
I'm stumped by a problem with ntp on RH 7.3 The system has two nics; eth0 is routed to a private lan, eth1 to a public lan.
static-routes has the appropriate routing controls.
It appears, however, that ntpd insists on making the connection across the public interface (judging by the output from netstat), even though the targeted time server is routed to via the private interface in static-routes.
The 254 subnet is the public one.
udp 0 0 xx.yy.254.zz:ntp *:*
udp 0 0 acutalhost.actualdomain.ntp *:*
udp 0 0 localhost.localdoma:ntp *:*
udp 0 0 *:ntp *:*
Is anyone aware of a directive in ntp.conf or a switch to ntpd to indicate interface? Or additional routing configurations for udp?
Thanks....
static-routes has the appropriate routing controls.
It appears, however, that ntpd insists on making the connection across the public interface (judging by the output from netstat), even though the targeted time server is routed to via the private interface in static-routes.
The 254 subnet is the public one.
udp 0 0 xx.yy.254.zz:ntp *:*
udp 0 0 acutalhost.actualdomain.ntp *:*
udp 0 0 localhost.localdoma:ntp *:*
udp 0 0 *:ntp *:*
Is anyone aware of a directive in ntp.conf or a switch to ntpd to indicate interface? Or additional routing configurations for udp?
Thanks....
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 05:30 AM
03-10-2004 05:30 AM
Re: ntp configuration with multiple interfaces
As far as I know:
ntp is not interface dependent, nor does it have directives.
If its running on the box and there is a route between the daemon server and the time server it will choose the best route.
I generally leave ntpd only one possible route by closing all others with iptables firewall.
Make sure the port is open only on the private lan (or intended lan) and then run ntpq -p to test communications.
SEP
ntp is not interface dependent, nor does it have directives.
If its running on the box and there is a route between the daemon server and the time server it will choose the best route.
I generally leave ntpd only one possible route by closing all others with iptables firewall.
Make sure the port is open only on the private lan (or intended lan) and then run ntpq -p
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 09:52 AM
03-10-2004 09:52 AM
Re: ntp configuration with multiple interfaces
If you are using hostnames in the ntp.conf file, I would suspect it would be a DNS issue if its going out the public interface.
If your using IP's in the ntp.conf file , then its probably a routing issue.Is the internal NTP server on the same segment as the RH 7.3 box?
Post your hosts file, ntp.conf, ifconfig, routing table and we should be able to figure it out..
BTW, we have a internal NTP server, I always run NTPDATE from cron with the NTP IP address, 3x a day..
If your using IP's in the ntp.conf file , then its probably a routing issue.Is the internal NTP server on the same segment as the RH 7.3 box?
Post your hosts file, ntp.conf, ifconfig, routing table and we should be able to figure it out..
BTW, we have a internal NTP server, I always run NTPDATE from cron with the NTP IP address, 3x a day..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2004 01:21 AM
03-11-2004 01:21 AM
Re: ntp configuration with multiple interfaces
Turns out that netstat was returning incomplete information; I found through tcpdump that the timeserver was being queried. Just didn't show up either netstat nor in messages.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP