Community discussions

MikroTik App
 
marrold
Member
Member
Topic Author
Posts: 427
Joined: Wed Sep 04, 2013 10:45 am

Disable announcing NTP server in DHCP

Fri Oct 30, 2015 4:52 pm

A friend is currently trying to prevent NTP servers being announced to DHCP clients. The NTP sever is disabled, and no NTP server is set in the DHCP network section, but clients are still receiving NTP servers via DHCP (Its using those setup in the NTP client section)

Any ideas? Thanks.
[matthew@HQ] /system ntp server> print
              enabled: no
            broadcast: no
            multicast: no
             manycast: no
  broadcast-addresses:

The client element is active-

[matthew@HQ] /system ntp client> print
          enabled: yes
             mode: unicast
      primary-ntp: 139.143.5.30
    secondary-ntp: 139.143.5.31
  dynamic-servers:
  
  [matthew@HQ] /ip dhcp-server network> print detail

 1 ;;; Main LAN
   address=10.10.10.0/24 gateway=10.10.10.254 dns-server=10.10.10.254,8.8.4.4 wins-server="" ntp-server="" caps-manager="" dhcp-option=""

  
 
strasharo
just joined
Posts: 3
Joined: Fri Dec 08, 2017 7:56 pm

Re: Disable announcing NTP server in DHCP

Sun Jul 15, 2018 5:32 am

Same for me, DHCP server is announcing the NTP server from its SNTP client configuration, althought it's not configured to provide NTP server to it's DHCP clients. Is there a way to disable the announcement of NTP server to the DHCP clients somehow?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Disable announcing NTP server in DHCP

Thu Jul 19, 2018 10:41 am

What does /ip dhcp-server network export show?
 
sid5632
Long time Member
Long time Member
Posts: 554
Joined: Fri Feb 17, 2017 6:05 pm

Re: Disable announcing NTP server in DHCP

Thu Jul 19, 2018 11:38 am

This is like the DNS bug again, but in NTP.
You'd have thought they'd check both when fixing one, but it seems not.
 
elitist
just joined
Posts: 1
Joined: Mon May 18, 2020 10:53 am

Re: Disable announcing NTP server in DHCP

Mon May 18, 2020 11:11 am

This behavior still seems to be on v6.45.9 (long-term).

It would be nice to configure this behavior - as I do not believe it's possible to do it if you do configure it by hand.

Having said that - having no NTP servers set in the DHCP scope should not be sending NTP servers to DHCP requests.
 
pgf
just joined
Posts: 20
Joined: Fri Feb 18, 2022 6:56 pm

Re: Disable announcing NTP server in DHCP

Tue Mar 15, 2022 6:33 pm

Still true in 6.49.3.

The ntp servers are being offered via DHCP options, even though no DHCP options are configured. I really want to be able to enable this on a per-network basis.
 
vetash
just joined
Posts: 6
Joined: Tue Feb 07, 2017 10:09 pm

Re: Disable announcing NTP server in DHCP

Tue Mar 22, 2022 12:01 pm

Issue is still persist in v7.1.1
 
Experimentator
Frequent Visitor
Frequent Visitor
Posts: 64
Joined: Sat Nov 24, 2012 9:12 pm

Re: Disable announcing NTP server in DHCP

Tue Apr 16, 2024 8:41 pm

This is interesting!
I just came across this very same issue in v7.14.2.

I'd say this needs to be made configurable: if enabled, DHCP Server should either announce NTP address(es) used by the NTPClient or address(es) configured under '/ip/dhcp-server/network/'.
But if 'NTP Servers' option is NOT enabled in '/ip/dhcp-server/network/' - obviously, no NTP address should be announced.

Is there a reason why it's not made to work like this? (for about 10 years already)

Who is online

Users browsing this forum: arjuneu, DanMos79, vingjfg and 25 guests