例:IS-ISインターフェイス上のリンクステートPDUの送信周波数の設定
この例では、リンクステート PDU の間隔時間を変更する方法を示しています。
必要条件
開始する前に、IS-IS を設定します。IS-IS 設定例については、 例:IS-IS の設定 を参照してください。
概要
ネットワーク内の到達可能性情報を最新の状態に保つには、リンク状態プロトコルがトポロジー情報を発信、配信、取り消し、またはタイムアウトする必要があります。IS-IS では、トポロジー情報はリンク状態の PDU にエンコードされます。
デフォルトでは、ルーティングデバイスは100ミリ秒ごとに1つのリンク状態PDUをインターフェイスから送信します。この間隔を変更するには、 lsp-interval ステートメントを含めます。
lsp-interval milliseconds;
すべてのリンク状態 PDU の送信を無効にするには、間隔を 0 に設定します。
lsp-interval ステートメントを使用したリンク状態 PDU スロットリングは、隣接するルーティング デバイスへのフラッディング ペースを制御し、過負荷にならないように、また低帯域幅リンクでユーザー トラフィックが遅延しないようにします。
この例では、LAN セグメント上の IS-IS ルーティング デバイスが、1000 ミリ秒ごとにリンク状態 PDU を送信するように設定されています。
図 1 は、この例で使用されているトポロジーを示しています。
この例では、デバイス R1 の手順を説明します。
構成
プロシージャ
CLIクイック構成
この例をすばやく設定するには、次のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、 [edit] 階層レベルのCLIにコマンドをコピー&ペーストしてください。
デバイスR1
set interfaces fe-1/2/0 unit 0 description to-R2 set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.1/30 set interfaces fe-1/2/0 unit 0 family iso set interfaces lo0 unit 0 family inet address 192.168.0.1/32 set interfaces lo0 unit 0 family iso address 49.0002.0192.0168.0001.00 set protocols isis traceoptions file isis-trace set protocols isis traceoptions flag lsp set protocols isis interface fe-1/2/0.0 lsp-interval 1000 set protocols isis interface lo0.0
手順
次の例では、設定階層のいくつかのレベルに移動する必要があります。CLIのナビゲーションについては、CLIユーザー・ガイド の コンフィギュレーション・モードでのCLIエディタの使用を参照してください。
リンク状態 PDU 間隔を設定するには、次の手順を実行します。
インターフェイスを設定します。
[edit interfaces] user@R1# set fe-1/2/0 unit 0 description to-R2 user@R1# set fe-1/2/0 unit 0 family inet address 10.0.0.1/30 user@R1# set fe-1/2/0 unit 0 family iso user@R1# set lo0 unit 0 family inet address 192.168.0.1/32 user@R1# set lo0 unit 0 family iso address 49.0002.0192.0168.0001.00
インターフェイスで IS-IS を有効にします。
[edit protocols isis] user@R1# set interface fe-1/2/0.0 user@R1# set interface lo0.0
リンク状態 PDU 間隔を変更します。
[edit protocols isis interface fe-1/2/0.0] user@R1# set lsp-interval 1000
(オプション)リンク状態 PDU 操作を追跡するためのトレースを有効にします。
[edit protocols isis traceoptions] user@R1# set file isis-trace user@R1# set flag lsp
業績
設定モードから、 show interfaces コマンドと show protocols コマンドを入力して設定を確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@R1# show interfaces
fe-1/2/0 {
unit 0 {
description to-R2;
family inet {
address 10.0.0.1/30;
}
family iso;
}
}
lo0 {
unit 0 {
family inet {
address 192.168.0.1/32;
}
family iso {
address 49.0002.0192.0168.0001.00;
}
}
}
user@R1# show protocols
isis {
traceoptions {
file isis-trace;
flag lsp;
}
interface fe-1/2/0.0 {
lsp-interval 1000;
}
interface lo0.0;
}
デバイスの設定が完了したら、設定モードから commit を入力します。デバイスR2で設定を繰り返します。
検証
設定が正常に機能していることを確認します。
リンク状態 PDU 間隔の検証
目的
IS-IS インターフェイスのリンク状態 PDU 間隔設定を確認します。
アクション
動作モードから、 show isis interface extensive コマンドを入力します。
user@R1> show isis interface extensive
fe-1/2/0.0
Index: 70, State: 0x6, Circuit id: 0x1, Circuit type: 3
LSP interval: 1000 ms, CSNP interval: 10 s, Loose Hello padding
Adjacency advertisement: Advertise
Level 1
Adjacencies: 1, Priority: 64, Metric: 10
Hello Interval: 9.000 s, Hold Time: 27 s
Designated Router: R2.02 (not us)
Level 2
Adjacencies: 1, Priority: 64, Metric: 10
Hello Interval: 9.000 s, Hold Time: 27 s
Designated Router: R2.02 (not us)
意味
この出力は、リンク状態 PDU 間隔が 1000 ミリ秒に設定されていることを示しています。
リンク状態 PDU 統計の確認
目的
送受信されたリンク状態 PDU の数を確認します。
アクション
動作モードから、 show isis statistics コマンドを入力します。
user@R1> show isis statistics IS-IS statistics for R1: PDU type Received Processed Drops Sent Rexmit LSP 24 24 0 13 0 IIH 2467 24 0 836 0 CSNP 474 474 0 0 0 PSNP 0 0 0 0 0 Unknown 0 0 0 0 0 Totals 2965 522 0 849 0 Total packets received: 2965 Sent: 849 SNP queue length: 0 Drops: 0 LSP queue length: 0 Drops: 0 SPF runs: 14 Fragments rebuilt: 15 LSP regenerations: 6 Purges initiated: 0
user@R2> show isis statistics IS-IS statistics for R2: PDU type Received Processed Drops Sent Rexmit LSP 13 13 0 24 0 IIH 828 15 0 2459 0 CSNP 0 0 0 474 0 PSNP 0 0 0 0 0 Unknown 0 0 0 0 0 Totals 841 28 0 2957 0 Total packets received: 841 Sent: 2957 SNP queue length: 0 Drops: 0 LSP queue length: 0 Drops: 0 SPF runs: 17 Fragments rebuilt: 26 LSP regenerations: 11 Purges initiated: 0
意味
出力は、デバイスR1とデバイスR2で送受信されたリンクステートPDUの数を示しています。
トレース ログの確認
目的
IS-IS トレース ログをチェックして、パケット間の間隔を確認します。
アクション
動作モードから、 show log isis-trace | match lsp コマンドを入力します。
user@R1> show log isis | match lsp Jun 18 15:27:02.692031 Received L1 LSP R2.00-00, on interface fe-1/2/0.0 Jun 18 15:27:02.692753 Updating L1 LSP R2.00-00 in TED Jun 18 15:27:44.396480 Updating L1 LSP R1.00-00 in TED Jun 18 15:27:45.398077 Sending L1 LSP R1.00-00 on interface fe-1/2/0.0 Jun 18 15:28:44.689024 Received L1 LSP R2.02-00, on interface fe-1/2/0.0 Jun 18 15:28:44.689663 Updating L1 LSP R2.02-00 in TED Jun 18 15:29:15.954900 Updating L2 LSP R1.00-00 in TED Jun 18 15:29:16.955620 Sending L2 LSP R1.00-00 on interface fe-1/2/0.0 Jun 18 15:29:28.789986 Received L2 LSP R2.00-00, on interface fe-1/2/0.0 Jun 18 15:29:28.790620 Updating L2 LSP R2.00-00 in TED Jun 18 15:30:27.727892 Received L2 LSP R2.02-00, on interface fe-1/2/0.0 Jun 18 15:30:27.728519 Updating L2 LSP R2.02-00 in TED
意味
この出力は、レベル 1 およびレベル 2 のリンク状態 PDU が約 1000 ミリ秒(1 秒)ごとに送受信されていることを示しています。