Got it

Why is it impossible to simulate the NTP on eNSP?

Latest reply: Oct 9, 2014 05:42:21 10135 3 0 0 0

This post highlights the issue of why it is impossible to simulate the NTP on eNSP. Please see more below.


I made a lab of NTP between two routers with eNSP, but I can't sychnorize the clock between them. So please tell me what's the issuse in the configuration?


 

[AR1]dis cur
[V200R003C00]
#
 sysname AR1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent
#
 clock timezone BeiJing add 08:00:00
 clock daylight-saving-time Day Light Saving Time repeating 12:32 9-1 12:32 11-23
 00:00 2005 2005
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 ntp-service source-interface LoopBack0
 ntp-service unicast-peer 2.2.2.2
 ntp-service unicast-server 2.2.2.2
#
 set cpu-usage threshold 80 restore 75
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
 ip address 1.1.1.1 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 1.1.1.1 0.0.0.0
  network 10.1.1.0 0.0.0.255
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

--------------------------------------------------------------------------

[AR2]dis cur
[V200R003C00]
#
 sysname AR2
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent
#
 clock timezone BeiJing add 08:00:00
 clock daylight-saving-time Day Light Saving Time repeating 12:32 9-1 12:32 11-23
 00:00 2005 2005
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 ntp-service source-interface LoopBack0
 ntp-service refclock-master 2
#
 set cpu-usage threshold 80 restore 75
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
 ip address 2.2.2.2 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 10.1.1.0 0.0.0.255
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

=============================================

[AR1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 9        Routes : 9       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  Direct  0    0           D   127.0.0.1       LoopBack0
        2.2.2.2/32  OSPF    10   1           D   10.1.1.2        GigabitEthernet0
/0/0
       10.1.1.0/24  Direct  0    0           D   10.1.1.1        GigabitEthernet0
/0/0
       10.1.1.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0
/0/0
     10.1.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet0
/0/0
      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

=======================================================

[AR1]ping 2.2.2.2
  PING 2.2.2.2: 56  data bytes, press CTRL_C to break
    Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=255 time=70 ms
    Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 2.2.2.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/30/70 ms

====================================================

[AR1]dis ntp sta 
[AR1]dis ntp status
 clock status: synchronized
 clock stratum: 3
 reference clock ID: 2.2.2.2
 nominal frequency: 100.0000 Hz
 actual frequency: 100.0000 Hz
 clock precision: 2^18
 clock offset: 57600521.2240 ms
 root delay: 110.94 ms
 root dispersion: 9.27 ms
 peer dispersion: 10.94 ms
 reference time: 09:12:47.341 UTC Sep 29 2014(D7D3A10F.577D1FE6)

 

[AR1]dis ntp sessions
        source          reference       stra reach poll  now offset delay disper
********************************************************************************
   [245]2.2.2.2         LOCAL(0)           2  255   64   31    16h  112.1    0.0
 [12345]2.2.2.2         LOCAL(0)           2  249   64   62    16h  115.5    0.0
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured,
      6 vpn-instance

--------------------------------------------------------------------------------

[AR2] dis ntp sta
 clock status: synchronized
 clock stratum: 2
 reference clock ID: LOCAL(0)
 nominal frequency: 100.0000 Hz
 actual frequency: 100.0000 Hz
 clock precision: 2^17
 clock offset: 0.0000 ms
 root delay: 0.00 ms
 root dispersion: 10.95 ms
 peer dispersion: 10.00 ms
 reference time: 01:14:46.808 UTC Sep 30 2014(D7D48286.CF17BD8B)

 


 

[AR2] dis ntp sess 
[AR2]dis ntp sessions
        source          reference       stra reach poll  now offset delay disper
********************************************************************************
     [2]1.1.1.1         2.2.2.2            3    2   64   20      -    0.0    0.0
 [12345]127.127.1.0     LOCAL(0)           1  255   64   32      -    0.0    0.9
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured,
      6 vpn-instance

 

==================================================================

[AR1]dis clock
2014-09-29 09:16
Monday
Time Zone(BeiJing) : UTC+08:00
Daylight saving time :
         Name        : Day Light Saving Time
         Repeat mode : repeat
         Start year  : 2005
         End year    : 2005
         Start time  : 09-01 12:32:05
         End time    : 11-23 12:32:05
         Saving time : 00:00:00

 

[AR2]dis clock
2014-09-29 09:16
Tuesday
Time Zone(BeiJing) : UTC+08:00
Daylight saving time :
         Name        : Day Light Saving Time
         Repeat mode : repeat
         Start year  : 2005
         End year    : 2005
         Start time  : 09-01 12:32:05
         End time    : 11-23 12:32:05
         Saving time : 00:00:00

  • x
  • convention:

ensp_commiter
Created Sep 30, 2014 03:33:55

我们的设备里面配置时区时,是你当地时间加上或者减去几个小时 才和标准时间一致。

所以你配置时区时,应该是 minus 08:00:00

 

View more
  • x
  • convention:

shanjiguo
Created Sep 30, 2014 03:58:17

I have configed the timezone

[AR2]dis clock
2014-09-30 01:17
Tuesday
Time Zone(BeiJing) : UTC+08:00

 

[AR1]dis clock
2014-09-30 01:17
Monday
Time Zone(BeiJing) : UTC+08:00

View more
  • x
  • convention:

shanjiguo
Created Oct 9, 2014 05:42:21

is it a bug of eNSP?
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.