はじめに
このドキュメントは Nexus 7000、もしくは Nexus 7700 シリーズにて VDC が二つ以上存在する環境での NTP の設定、及び動作についての解説を行ないます。
概要
Nexus 7000/7700 シリーズでは VDC を設定して、同一筐体内に仮想 L3 スイッチを複数持つことができます。ですが、デフォルトでは VDC Id が “1” となる Default VDC もしくは Admin VDC でのみ動作します。これは NX-OS では NTP がカーネルに依存するサービスであり、複数の VDC で動作させる必要が無いためです。以降、Non Default VDC での NTP の設定や動作ついて説明します。
None Default VDC での NTP 設定について
None Default VDC はシステム時刻を参照します。このシステム時刻は Default VDC が NTP により同期された時刻(※時刻同期に NTP を使用している場合)です。None Default VDC で NTP を設定したとしても下記の通り、NTP は無効で同期は行なわれません。
switch# show ntp peer-status
INFO: System clock is not controlled by NTP in this VDC
You can use "clock protocol <protocol> vdc <vdc_id>"
to change the current setting.
None Default VDC を NTP クライアントとして動作させる
None Default VDC を NTP クライアントとして動作させたい場合、前節にあるコマンドで任意の VDC を NTP Client として動作させることができます。
switch(config)# clock protocol ntp vdc <VDC_ID>
この設定後、Default VDC では NTP が無効になります。
None Default VDC を NTP サーバーとして動作させる
None Default VDC であっても NTP サーバーとして動作させることができます。None Default VDC を NTP サーバーとして動作させるには以下の設定を行ないます。
switch(config)# ntp master <STRATUM_NUM> <<<< 必須
switch(config)# ### Option で以下のどちらかを設定 ###
switch(config)# ntp source <IP_ADDR>
switch(config)# ntp source-interface <INT_NAME>
"source/source-interface" はクライアントにパケットを送信する際の送信元IPとなります。以下は送信元 IP に 1.2.3.4 を設定した場合の "show ntp peer-status” の表示です。同期の参照元(remote)がローカルタイムを示す "127.127.1.0"、自身の送信元 IP(local)が設定した "1.2.3.4" になっている事が確認できます。
switch# show ntp peer-status
INFO: System clock is not controlled by NTP in this VDC
You can use "clock protocol vdc "
to change the current setting.
Total peers : 1
* - selected for sync, + - peer mode(active),
- - peer mode(passive), = - polled in client mode
remote local st poll reach delay vrf
-------------------------------------------------------------------------------
*127.127.1.0 1.2.3.4 5 16 1 0.00000
関連ドキュメント