例:GRE または IP-IP トンネルの CoS キューイングの設定
この例では、GREまたはIP-IPトンネルにCoSキューイングを設定する方法を示しています。
CoS キューイングは、シャーシ クラスタの GRE トンネルではサポートされていません。
要件
開始する前に、以下を行います。
GRE または IP-IP トンネリング インターフェイスを使用して、VPN で接続された本社と支社を確立します。
転送クラスとスケジューラを設定します。 例:転送クラスを出力キューに割り当て 、 例: セキュリティデバイス上のサービスクラススケジューラの設定を参照してください。
スケジューラ マップを設定し、スケジューラ マップをトンネル インターフェイスに適用します。『 例: スケジューラ マップの設定と適用』を参照してください。
分類子を設定し、トンネルインターフェイスに適用します。例 : 動作集約分類子の設定を参照してください。
書き換えルールを作成し、トンネルインターフェイスに適用します。 例: セキュリティデバイスでの書き換えルールの設定と適用を参照してください。
概要
この例では、トンネル キューイングを有効にし、GRE トンネル インターフェイスを gr-0/0/0 として定義します(または、IP-IP トンネル インターフェイスを ip-0/0/0 として定義できます)。およびユニットごとのスケジューラを設定します。その後、シェーパー定義を使用して、GRE トンネルのライン レートを 100 Mbps に設定します。
図 1 では、ルーター A にはインターフェイスge-1/0/0
を介してルーター B との間に GRE トンネルが確立されています。また、ルーターAには、インターフェイスge-1/0/1
を介してルーターCと確立されたIP-IPトンネルがあります。ルーターAは、トンネルキューイングが有効になるように設定されています。ルーターBとルーターCにはトンネルキューイングが設定されていません。

トポロジ
構成
手順
CLI クイックコンフィギュレーション
この例を迅速に設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除し、ネットワーク設定に一致させる必要がある詳細情報を変更し、コマンドを 階層レベルの [edit]
CLI にコピー アンド ペーストして、設定モードから を入力 commit
します。
set chassis fpc 0 pic 0 tunnel-queuing set interfaces gr-0/0/0 unit 0 set interfaces gr-0/0/0 per-unit-scheduler set class-of-services interfaces gr-0/0/0 unit 0 shaping-rate 100m
手順
GRE トンネルの CoS キューイングを設定するには:
デバイスでトンネルキューイングを有効にします。
[edit] user@host# set chassis fpc 0 pic 0 tunnel-queuing
GRE トンネル インターフェイスを定義します。
[edit] user@host# set interfaces gr-0/0/0 unit 0
GRE トンネル インターフェイスのユニットごとのスケジューラを定義します。
[edit] user@host# set interfaces gr-0/0/0 per-unit-scheduler
シェーパー定義を使用して GRE トンネルのライン レートを定義します。
[edit] user@host# set class-of-services interfaces gr-0/0/0 unit 0 shaping-rate 100m
結果
設定モードから、 、 、 show interfaces gr-0/0/0
コマンドを入力して設定をshow class-of-service interfaces gr-0/0/0
show chassis
確認します。出力に意図した設定が表示されない場合は、この例の設定手順を繰り返して修正します。
[edit] user@host#show class-of-service interfaces gr-0/0/0
unit 0 { shaping-rate 100m; } [edit] user@host#show interfaces gr-0/0/0
per-unit-scheduler; unit 0; [edit] user@host#show chassis
fpc 0 { pic 0 { tunnel-queuing; } }
デバイスの設定が完了したら、設定モードから を入力します commit
。
検証
設定が正しく機能していることを確認します。
GREトンネル設定のCoSキューイングの検証
目的
デバイスがトンネル設定用に正しく設定されていることを確認します。
アクション
設定モードから、 コマンドを show interfaces queue gr-0/0/0.0
入力します。
のみを入力 gr-0/0/0.0
すると、すべてのトンネルのキュー情報が表示されます。を入力 gr-0/0/0.0
すると、特定のトンネルのキュー情報が表示されます。
user@host> show interfaces queue gr-0/0/0.0 Logical interface gr-0/0/0.0 (Index 68) (SNMP ifIndex 112) Forwarding classes: 8 supported, 4 in use Egress queues: 8 supported, 4 in use Burst size: 0 Queue: 0, Forwarding classes: VOICE Queued: Packets : 7117734 7998 pps Bytes : 512476848 4606848 bps Transmitted: Packets : 4548146 3459 pps Bytes : 327466512 1992912 bps Tail-dropped packets : 0 0 pps RED-dropped packets : 2569421 4537 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 2569421 4537 pps RED-dropped bytes : 184998312 2613640 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 184998312 2613640 bps Queue: 1, Forwarding classes: GOLD Queued: Packets : 117600 0 pps Bytes : 8467200 0 bps Transmitted: Packets : 102435 0 pps Bytes : 7375320 0 bps Tail-dropped packets : 0 0 pps RED-dropped packets : 15165 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 15165 0 pps RED-dropped bytes : 1091880 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 1091880 0 bps Queue: 2, Forwarding classes: SILVER Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps Queue: 3, Forwarding classes: BRONZE Queued: Packets : 0 0 pps Bytes : 0 0 bps Transmitted: Packets : 0 0 pps Bytes : 0 0 bps Tail-dropped packets : 0 0 pps RED-dropped packets : 0 0 pps Low : 0 0 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 0 0 bps Low : 0 0 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps