NTP服务器和客户端的设置及使用(EN版)
clients. Normally these packets are sent every 64 seconds. Both
xntpd and ntpdate have debug options but be aware that if you use
ntpdate -d it will only "go through the motions" and not actually
poll the network.
In this example we are using the ntp.client for ntp.conf and have
turned on xntpd -d
# /usr/lib/inet/xntpd -d & 20743 # Solaris tick = 10000 kernel vars: tickadj = 625, tick = 10000 adj_precision = 1, tvu_maxslew = 61875, tsf_maxslew = 0.0fd70a37 create_sockets(123) bind() fd 19, family 2, port 123, addr 00000000, flags=1 bind() fd 20, family 2, port 123, addr 7f000001, flags=0 bind() fd 21, family 2, port 123, addr 8194c097, flags=1 init_io: maxactivefd 21 report_event: system event 'event_restart' (0x01) status
'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010) input_handler: fd=19 length 48 from 8194c093 129.148.192.147 input_handler: fd=19 length 48 from 8194c093 129.148.192.147 input_handler: fd=19 length 48 from 8194c093 129.148.192.147 input_handler: fd=19 length 48 from 8194c093 129.148.192.147 input_handler: fd=19 length 48 from 8194c093 129.148.192.147 input_handler: fd=19 length 48 from 8194c093 129.148.192.147 input_handler: fd=19 length 48 from 8194c093 129.148.192.147
(129.148.192.147 is the host "jedi")
And at the same time we started snooping the ntp client on port 123
(ntp) we are expecting to see either multicast or broadcast NTP
packets.
# snoop -d le0 port 123 Using device /dev/le (promiscuous mode) slave-192-1 -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:42:15
1999) champ -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:42:46
1999) jedi -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:42:49
1999) jedi -> BROADCAST NTP broadcast (Thu Sep 23 16:42:50
1999) slave-192-1 -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:43:19
1999) champ -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:43:50
1999) jedi -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:43:53
1999) jedi -> BROADCAST NTP broadcast (Thu Sep 23 16:43:54
1999) slave-192-1 -> NTP.MCAST.NET NTP broadcast (Thu Sep 23 16:44:23
1999)
[size=2]7. Known Bugs[/size]
4060650 xntpd loops continuously burning cpu and leaking memory
rendering m/c unuseable
4097366 external clock hardware isn't supported by xntpd
4192098 xntpd does not synchronize with "c011 sync_alarm" on a few
Ultra 5 systems
4130698 ntp installation / upgrade instructions for Solaris 2.6
4061948 SPARC only: 2.5.1 SUNWxntp Package Is Incompatible With
Solaris 2.6
[size=2]8. Additional resources for NTP[/size]
NTP project web site:
|