• 締切済み

NTPサーバについて

Solaris10のSPARK版でNTPサーバを作りたいのですが 今、/etc/inet/ntp.serverをコピーし/etc/inetntp.confを作りファイルの中を書き換えました。 restrict default nomodify notrap noquery server 133.40.41.175 server 130.69.251.23 server 127.127.1.0 fudge 127.127.1.0 stratum 10 #broadcast 224.0.1.1 ttl 4 #enable auth monitor driftfile /var/ntp/ntp.drift #statsdir /var/ntp/ntpstats/ #filegen peerstats file peerstats type day enable #filegen loopstats file loopstats type day enable #filegen clockstats file clockstats type day enable #keys /etc/inet/ntp.keys #trustedkey 0%) #requestkey 0%) #controlkey 0%) restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap logfile /var/log/ntp 同期が取れているか確認のコマンドを打つと # ntpq -p localhost: timed out, nothing received ***Request timed out となってしまいます。 何が原因なのでしょうか? 何方かご教示下さい。 宜しくお願い致します。

みんなの回答

noname#98978
noname#98978
回答No.3

>もう、OSの変更箇所は無く >ルーターの設定を行うということでしょうか? あなたのような素人がルータを触るのは危険です。 ネットワーク管理者・サーバ管理者に依頼してください。

  • mtfoggy
  • ベストアンサー率14% (37/255)
回答No.2

ntpdを動かしました。 ntpdが正常に動いていることを確認しました。 とは、どこにも書いてない。 なぜ、質問文に書かないのか?

MRc0123
質問者

補足

ntpdは動いています。 変更箇所に問題があるのかと思い 記述しなかっただけです。

noname#39970
noname#39970
回答No.1

ntpのポートが開いてない可能性。

MRc0123
質問者

補足

ということは もう、OSの変更箇所は無く ルーターの設定を行うということでしょうか? 宜しくお願い致します。

関連するQ&A

  • NTPに関する質問です。長文ですが素人ですので、是非ご教示頂ければと思

    NTPに関する質問です。長文ですが素人ですので、是非ご教示頂ければと思います。 ・以下の環境でNTPでの時刻同期を計りたいのですが、うまく行きません。  NTPサーバ → OSはFedora Core 1  NTPクライアント → Solaris 10  1.NTPサーバでのntpデーモンは起動済み。  2.NTPクライアントでのntpデーモンは起動済み。  3.NTPサーバ、クライアント両方ともNTPポート開放設定済み。   # more /etc/services   ntp 123/tcp   ntp 123/udp # Network Time Protocol  4.NTPサーバの/etc/ntp.confは以下の内容。※コメント文は省略します。   # grep -v "#" ntp.conf   restrict default ignore   restrict 127.0.0.1   fudge 127.127.1.0 stratum 10   driftfile /var/lib/ntp/drift   broadcastdelay 0.008   authenticate yes   keys /etc/ntp/keys  5.NTPクライアントの/etc/inet/ntp.confは以下の内容。   # more /etc/inet/ntp.conf   server <NTPサーバのIPアドレス> prefer   # fudge 127.127.XType.0 stratum 0   # broadcast 224.0.1.1 ttl 4   enable auth monitor   driftfile /var/ntp/ntp.drift   #statsdir /var/ntp/ntpstats/   #filegen peerstats file peerstats type day enable   #filegen loopstats file loopstats type day enable   #filegen clockstats file clockstats type day enable   #keys /etc/inet/ntp.keys   #trustedkey 0   #requestkey 0   #controlkey 0  6.NTPクライアントの/etc/inet/ntp.serverは以下の内容。   # more /etc/inet/ntp.conf   server 127.127.XType.0   fudge 127.127.XType.0 stratum 0   broadcast 224.0.1.1 ttl 4   enable auth monitor   driftfile   statsdir /var/ntp/ntpstats/   filegen peerstats file peerstats type day enable   filegen loopstats file loopstats type day enable   filegen clockstats file clockstats type day enable   #keys /etc/inet/ntp.keys   trustedkey 0   requestkey 0   controlkey 0  7.NTPクライアントよりntpdateを実行すると、以下のエラーが出る。   # ntpdate <NTPサーバのIPアドレス>   22 Apr 11:26:29 ntpdate[705]: no server suitable for synchronization found  8.NTPクライアントよりsvcadmを実行しても、同様のエラーが出る。   # svcadm disable ntp   # ntpq -p   ntpq: read: Connection refused   # svcadm enable ntp   ※以下、/var/adm/messagesの内容   Apr 22 11:42:37 <NTPクライアントのホスト名> ntpdate[734]: [ID 831711 daemon.error] no server suitable for synchronization found  このエラーの原因が分かりません。どこに原因があるのか、是非教えてください。  よろしくお願い致します。

  • NTPのrestrictについて

    ntpのrestrict定義についてどなたか教えていただけないでしょうか。 あるLinuxサーバでntp.confに以下の設定がされているとします。 (このLinuxサーバはクライアントとします。210.173.160.87、57、27がNTPサーバのIPとします。) ---------------------------------------------------------- restrict 210.173.160.87 mask 255.255.255.0 nomodify notrust notrap restrict 210.173.160.57 mask 255.255.255.0 nomodify notrust notrap restrict 210.173.160.27 mask 255.255.255.0 nomodify notrust notrap server 210.173.160.87 server 210.173.160.57 server 210.173.160.27 ---------------------------------------------------------- この場合、3つのNTPサーバに対してrestrictをオプション付きで 設定しています。この設定ですとNTPサーバからの時計合わせに 応じるが、自分の時計には使用しない・時刻の変更要求などは 無視・トラップを上げないという内容になるかと思います。 これは、NTPサーバからの悪意を持った変更要求を防ぐ意味に なるのでしょうか?それとも、この設定の仕方だとrestrictの 意味がないのでしょうか? 以上、よろしくお願いいたします。

  • Cent OS上のntpサーバ同期不可について

    【環境】 ・CentOS release 5.8 (Final) ・ntp4.2.2p1-15.el5.centos.1 【事象】 ntpq -p投入後、以下エラー表示されます。 --------------------------- localhost.localdomain: timed out, nothing received ***Request timed out ---------------------------- 【設定済項目】 ◆ntp.conf restrict default ignore restrict 127.0.0.1 restrict 210.173.160.27 nomodify notrap #ntp1.jst.mfeed.ad.jp restrict 210.173.160.57 nomodify notrap #ntp2.jst.mfeed.ad.jp restrict 210.173.160.87 nomodify notrap #ntp3.jst.mfeed.ad.jp server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift keys /etc/ntp/keys ◆hosts.allow ALL: 210.173.160.27 ALL: 210.173.160.57 ALL: 210.173.160.87 ◆iptables Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:ntp Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination ◆/var/log/messages 特にエラー表示なし ◆service ntpd status ntpd (pid 22208) を実行中... ◆netstat udp 0 0 :::123 :::* ----------------------------------------------- ntpdの再起動をしても同現象です。 困っています。 宜しくお願い致します。

  • Windows NTPをLinuxクライアントに公開したいのですが。。。

    こんにちは。 Windowsサーバ(2003)を立てているのですが、 Linuxの検証を行うために、NTPを提供したいと考えています。 URL[http://support.microsoft.com/kb/875424/ja]を参考にしながら設定を行ったところ、 Linuxから ntpdateは正常に動作するのですが、 ntpq -p を行ったところ、いつまで経っても同期してくれません remote refid st t when poll reach delay offset jitter ============================================================================== 192.168.1.1 xx.xx.xx.xx 2 u 30 64 377 0.214 1016.96 13.272 xx.xx.xx.xxは外部のNTPサーバです。 これで、先頭に *も+もつかない状態です。 どなたかご助言いただけませんでしょうか。 /etc/ntp.conf #--------------- restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1 server 192.168.1.1 prefer # server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/drift keys /etc/ntp/keys #--------------

  • NTPサーバ時刻同期の設定を教えて下さい

    FreeBSD6.1 にて NTPサーバを作成しています。 server1(FreeBSD6.1) 192.168.100.1 router1 192.168.100.2(server1側) 192.168.200.2(client側) client1(windows2000) 192.168.200.1 ntp.confは server 133.100.9.2 server 127.127.1.0 fudge 127.127.1.0 stratum 10 driftfile /var/db/ntp.drift restrict default ignore restrict 133.100.9.2 nomodify noquery notrap restrict 127.0.0.0 mask 255.0.0.0  restrict 192.168.100.0 mask 255.255.255.0 notrust nomodify noquery restrict 192.168.200.0 mask 255.255.255.0 notrust nomodify noquery rc.confには xntpd_enable="YES" xntpd_program="/usr/sbin/ntpd" xntpd_flags="-p /var/run/ntpd.pid -c /etc/ntp/ntp.conf" ntpdate_enable="YES" ntpdate_program="/usr/sbin/ntpdate" ntpdate_flags="clock.nc.fukuoka-u.ac.jp" 現在server1 を clock.nc.fukuok で時刻同期は ntpq -p にて確認し、 remote refid St *clock.nc.fukuok .GPS. 1 LOCAL(0) LOCAL(0) 10 *印がついているので外部NTPサーバとは同期がとれているように思えます。 ipfilterは使用していません。 client1(windows2000)より net time /setsntp:192.168.200.1 をしてコマンド正常終了を確認。server1とclient1の時刻誤差は12時間以内です。ping 192.168.200.1はOKです。 最初に一回だけ同期を合せようと net time \\192.168.200.1 /set /yes を行うと システムエラー53が発生。 ネットワークパスが見つかりません。と表示されました。 あとは、 client1で w32tm -once を行うと、 sending to server 48byte で止まります。 桜時計などで外部とのNTPサーバとは同期が取れます。 FreeBSDとwindowsを同期させるにはなにかFreeBSD側にソフトをインストールする必要があるのでしょうか?それとも設定がおかしいのでしょうか? すみませんが教えて下さい。

  • ntp.confの設定

    設定ファイル中の最初の2行と、restrict default ignoreの意味の違いを教えてください。両方記載されている例や、デフォルト2行をコメントアウトして、restrict default ignoreを追記しいる例がありました。 デフォルトの記載も、追記した記載も「全NTP通信許可しない」だと思っていたので困惑しています。 詳しい方がいましたら、教えてください。よろしくお願いします。 [デフォルト] restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery [追記されている場合がある] restrict default ignore

  • ntpでrestrictのネットワーク指定が効かない

    Red Hat Enterprise Linux ES v.3にて RPMに入っているntp-4.1.2-4を使用して、この サーバを内部のNTPサーバとしています。 /etc/ntp.confの中で 許可するネットワーク指定で restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap と記述しているのですが、このネットワークアドレスの NTPクライアントからなぜか時刻を合わす事ができませんでした。(クライアントもntpdを使用しています) もしやと思い、restrict 192.168.1.2 notrust nomodify notrap とIPアドレス指定をしたら、NTPクライアントから時刻 合わせを行う事ができました。 留意事項  ・このサーバと外部の公共NTPサーバの時刻合わせは   正常に完了している。  ・/etc/ntp.confの変更後、ntpdをrestartさせて   いますが、NTPサーバの時刻が十分安定してから   NTPクライアントは合わせに行っています。  ・NTPサーバとNTPクライアントの時刻は大きくずれて   いると合わせないと聞いた事があるので、実行前に   1秒単位の誤差しかないよう、dateコマンドで合わ   せました。 ネットワーク指定が効かないと、NTPクライアントの数 分記述を入れなければならないので避けたいのです。 原因と回避方法を教えてください。

  • NTPサーバについて教えてください

    RedHat Enterprise Linux ES4のサーバを社内LAN上でNTPサーバとして構築し、外部のNTPサーバと時刻同期ができるところまでは確認できましたが、社内LAN上の他のサーバ(Windows及びLinux)やPC(XP Pro)から時刻同期を行おうとしても、「時刻データが利用できなかったため、コンピュータは同期を取り直しませんでした」というメッセージが出て時刻同期ができません。 ntp.confの内容は、 ------------------------- server xxx.xxx.xxx.xxx 外部NTPサーバ restrict default ignore restrict 127.0.0.1 restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap notrust # server 127.127.1.0 # fudge 127.127.1.0 stratum 10 driftfile /etc/ntp.drift #multicastclient # listen on default 224.0.1.1 #broadcastdelay 0.008 authenticate no --------------------- のような感じです。 社内LANのIPアドレスは、192.168.10体系と192.168.11体系です。 このNTPサーバに対して、他のサーバやPCからはpingはOKで、間にfirewallが入っていたりルータが入っていたりすることはありません。 ntp.confの設定がまずいのか、RedHatのFirewallのせいか、それとも他の設定が何かあるのか、皆目見当がつきません。 どうしたらよいのか、どこか確認すべき項目はないか、などアドバイス頂ければ助かります。 よろしくお願い致します。

  • NTPサーバについて

    OS:RedHatLinux9 外向けのDNS、PROXY、メールサーバとなっているサーバにNTPサーバを構築しようと思い、/etc/ntp.confを編集し、chkconfig --level 35 ntpd onを実行して起動時にNTPサーバが自動起動するように設定しました。 ところが、OSを再起動すると起動中のメッセージに ntpd:syncronizing with time server [FAILED] と表示され、さらに起動後startxでGUI画面を立ち上げ時間を確認したところ、丁度9時間時間が進んでいました。 しかし、数分経つと正しい時間になります。 何か設定が間違っているのでしょうか? それともNTPサーバとはこういうものなのでしょうか? なお、/etc/ntp.confには restrict 外部のNTPサーバ server 外部のNTPサーバ を追加しました。(複数サーバ追加しています) また authenticate のyesをnoに変更しました。 どなたか分かる方がいらっしゃいましたら教えていただけないでしょうか? よろしくお願い致します。

  • NTPで同期が始まらない

    こんにちは。 度々すみません、NTPの設定をしましたがどうも同期が始まりません。 「ntpdate 130.69.251.23」と手動同期は成功します。 しかしntpデーモンを起動し1時間以上放置しても同期されません。 ※外部タイムサーバー参照としてます ntp.confは下記のとおりです。 --------------------------------------------------- server 133.100.9.2 # clock.nc.fukuoka-u.ac.jp server 130.69.251.23 driftfile /var/lib/ntp/drift --------------------------------------------------- でntpq -pの結果は下記となります。 remote refid st t when poll reach delay offset jitter ============================================================================== 133.100.9.2 .INIT. 16 u - 64 0 0.000 0.000 4000.00 130.69.251.23 .GPS. 1 u 27 64 377 8.015 -99970. 17262.6 同期ができれば「remote」列に「*」が表示されると思っています。 何か設定が足りないでしょうか?。 尚、「/vat/log/message」をtailしてますが特にエラーは無さそうです。 よろしくお願いします。