ntpd, ntpdate, rdate

¹Ú   
   Á¶È¸ 17712   Ãßõ 3    


궁금해서 확인해봤습니다.

* DNS 리졸빙내역
time.bora.net (203.248.240.140)
time.ewha.net (114.207.245.166)

* ntpdate time.ewha.net  실행시 캡쳐한 패킷 -> 123번 포트 사용
16:07:51.615309 IP 10.0.0.2.ntp > 114.207.245.166.ntp: NTPv4, Client, length 48
16:07:51.620379 IP 114.207.245.166.ntp > 10.0.0.2.ntp: NTPv4, Server, length 48
16:07:51.620429 IP 10.0.0.2.ntp > 114.207.245.166.ntp: NTPv4, Client, length 48
16:07:51.625493 IP 114.207.245.166.ntp > 10.0.0.2.ntp: NTPv4, Server, length 48
16:07:51.625532 IP 10.0.0.2.ntp > 114.207.245.166.ntp: NTPv4, Client, length 48
16:07:51.630399 IP 114.207.245.166.ntp > 10.0.0.2.ntp: NTPv4, Server, length 48
16:07:51.630435 IP 10.0.0.2.ntp > 114.207.245.166.ntp: NTPv4, Client, length 48
16:07:51.635405 IP 114.207.245.166.ntp > 10.0.0.2.ntp: NTPv4, Server, length 48

* rdate -s time.bora.net   실행시 캡쳐한 패킷 -> 37번 포트 사용
16:06:43.357404 IP 10.0.0.2.46607 > time.bora.net.time: Flags [S], seq 2642715429, win 65535, options [mss 1460,nop,wscale 6,sac
16:06:43.361895 IP time.bora.net.time > 10.0.0.2.46607: Flags [S.], seq 1200549318, ack 2642715430, win 49248, options [nop,nop,
16:06:43.361917 IP 10.0.0.2.46607 > time.bora.net.time: Flags [.], ack 1, win 1026, options [nop,nop,TS val 2586383464 ecr 34170
16:06:43.366456 IP time.bora.net.time > 10.0.0.2.46607: Flags [P.], seq 1:5, ack 1, win 49248, options [nop,nop,TS val 341704755
16:06:43.366466 IP time.bora.net.time > 10.0.0.2.46607: Flags [F.], seq 5, ack 1, win 49248, options [nop,nop,TS val 3417047555 
16:06:43.366479 IP 10.0.0.2.46607 > time.bora.net.time: Flags [.], ack 6, win 1025, options [nop,nop,TS val 2586383476 ecr 34170
16:06:43.366504 IP 10.0.0.2.46607 > time.bora.net.time: Flags [F.], seq 1, ack 6, win 1026, options [nop,nop,TS val 2586383476 e
16:06:43.004294 IP time.bora.net.time > 10.0.0.2.46607: Flags [.], ack 2, win 49248, options [nop,nop,TS val 3417047555 ecr 2586

[ ~ # ] egrep "time|ntp" /etc/services 
time 37/tcp   timserver
time 37/udp   timserver
ntp 123/tcp   #Network Time Protocol
ntp 123/udp   #Network Time Protocol


vmware는 가상머신에서 시간이 이상하게 빨리가는 문제가 있더군요.

rc.conf에 ntpd_enable="YES" 세팅했는데 대몬이 안떠있길래 보니 1000초이상 차이나면 대몬이 안뜨네요.

대몬 띄워놓으면 왠지 든든하긴 하지만 또 죽을까봐 보다 확실한방법으로 일단 이렇게 크론탭에 걸어놨습니다.

1  *   *   *   *   root    /usr/sbin/ntpdate time.ewha.net  > /dev/null 2>&1
REDHAT °è¿­ ±âÁØÀ¸·Î º¸¸é...

==============================================================
1. /etc/ntp.conf ¿¡
tinker panic À» 0 À¸·Î ¼³Á¤ÇØ ÁÖ°í

2. /etc/ntp/step-tickers ¿¡ ÃÖÃÊ ±âµ¿½Ã ½ÌÅ©ÇÒ NTP ¼­¹ö¸¦ ÁöÁ¤ÇÑ´Ù.
==============================================================

ÀÌÁ¤µµ¸é, tick ÀÌ ºñ Á¤»óÀûÀ϶§µµ NTP ¼­ºñ½º ÀÚü°¡ Á״´ٴø°¡, VM ¾ÈÂÊ¿¡¼­
ºñ Á¤»óÀûÀÎ tick À» ¾ò´Â Çö»óÀ» "¼­ºñ½º °¡´ÉÇÑ ¼öÁØ" À¸·Î ÁÙÀÏ ¼ö ÀÖ½À´Ï´Ù.

 * http://kb.vmware.com/kb/1006427


Á¦¸ñPage 15/28
2016-10   17826   À¯µ¿ÈÆ
2014-02   17784   HEUo±è¿ë¹Î
2014-05   17713   ¹Ú
2018-11   17708   Galvanizer
2011-12   17660   MikroTikÀÌÁø
2016-07   17645   inquisitive
2016-10   17583   Å×Å©ÀξÆÆ®21
2016-03   17575   ¿¥ºê¸®¿À
2019-01   17334   °£Àå°ÔÀå
2016-10   17314   stone92±è°æ¹Î
2021-08   17308   ½ºÄµl¹ÎÇö±â
2016-06   17277   ¹«¾Æ
2018-08   17275   ±èÇö¸°
2014-05   17226   ±èȲÁß
2017-03   17152   Á¦¿ÂÇÁ·Î
2018-09   17058   ¾ç½Ã¿­
2014-05   16966   ±èȲÁß
2015-02   16965   ÁÒ¯
2016-04   16823   ¹Ú¹®Çü
2017-04   16769   ÇູÁý