Configuration of master server ntp

Post Reply
dolan23
Member
Posts: 13
Joined: 07 Dec 2023 07:56

Configuration of master server ntp

Post by dolan23 »

Hi everyone.

I have a topology of a router A connected to a router B with ospf running.
I would like to leave router A as an ntp master server and leave router B as an ntp client, the idea is to add more clients for router A later on.
I have the following configurations.

In A:

Code: Select all

A:A>config>system>time# info 
----------------------------------------------
            ntp
                ntp-server
                no authentication-check
                no shutdown
            exit
            sntp
                shutdown
            exit
            dst-zone CEST
                start first saturday september 23:59
                end first saturday april 23:59
            exit
            zone UTC
----------------------------------------------
A:A>config>system>time# 

Code: Select all

A:A>config>system>security# info 
----------------------------------------------
            per-peer-queuing
            source-address
                application ntp 10.100.10.1
            exit
            dist-cpu-protection
                policy "_default-access-policy" create
                exit
                policy "_default-network-policy" create
                exit
            exit
----------------------------------------------
A:A>config>system>security#
In B:

Code: Select all

A:B>config>system>time# info 
----------------------------------------------
            ntp
                no authentication-check
                server 10.100.10.1 prefer
                no shutdown
            exit
            sntp
                shutdown
            exit
            dst-zone CEST
                start first saturday september 23:59
                end first saturday april 23:59
            exit
            zone UTC
----------------------------------------------
A:B>config>system>time# 
The ip 10.100.10.1 is the ip system of router A.

"show" of A:

Code: Select all

A:A# show system ntp all 

===============================================================================
NTP Status
===============================================================================
Configured         : Yes                Stratum              : -
Admin Status       : up                 Oper Status          : up
Server Enabled     : Yes                Server Authenticate  : No
Clock Source       : none
Auth Check         : No                 
Current Date & Time: 2024/02/04 20:33:03 UTC
===============================================================================

===============================================================================
NTP Active Associations
===============================================================================
State                     Reference ID    St Type  A  Poll Reach     Offset(ms)
    Router         Remote                                            
-------------------------------------------------------------------------------
===============================================================================

===============================================================================
NTP Clients
===============================================================================
vRouter                                                    Time Last Request Rx
    Address                                                
-------------------------------------------------------------------------------
Base
    10.100.10.2                                            02/04/2024 17:32:21
===============================================================================
"show" of B

Code: Select all

A:B# show system ntp all 

===============================================================================
NTP Status
===============================================================================
Configured         : Yes                Stratum              : -
Admin Status       : up                 Oper Status          : up
Server Enabled     : No                 Server Authenticate  : No
Clock Source       : none
Auth Check         : No                 
Current Date & Time: 2016/06/16 20:32:22 UTC
===============================================================================

===============================================================================
NTP Active Associations
===============================================================================
State                     Reference ID    St Type  A  Poll Reach     Offset(ms)
    Router         Remote                                            
-------------------------------------------------------------------------------
reject                    INIT            -  srvr  -  64   ........  0.000
    Base           10.100.10.1
===============================================================================
With these configurations, Router B does not update its time.
When I use a master server on a cisco router, the times are updated, but when I use router A as master it does not work.
I don't know what command may be missing in the Nokia routers.
If anyone has any idea what it might be or what might be missing your help would be appreciated.

Regards.
mivens
Member
Posts: 262
Joined: 28 Sep 2012 06:34

Re: Configuration of master server ntp

Post by mivens »

Router B is rejecting router A. There is no stratum being sent by router A.

I believe you need to sync your router A to an NTP time source to make it work.
I do not think there is the equivalent of the Cisco commands "ntp primary" / "ntp orphan" in SR OS.
dolan23
Member
Posts: 13
Joined: 07 Dec 2023 07:56

Re: Configuration of master server ntp

Post by dolan23 »

Hi, thanks for your reply mivens.
I thought that might be the cause, but wanted to confirm with someone else.
I will have to use the Cisco router as ntp master then.

Regards.
Post Reply

Return to “7750 SR”