例:PTX シリーズ パケット トランスポート ルーターでの仮想 LAN キューイングおよびシェーピングの設定
PTX シリーズ パケット トランスポート ルーターで 100 ギガビット イーサネット インターフェイスで仮想 LAN(VLAN)キューイングを有効にし、各 VLAN のトラフィック シェーピング レートを指定できます。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
Junos OS リリース 13.2 以降。
PTX5000 ルーター 1 台。
概要
この例では、10個のVLANを設定し、CoS(サービスクラス)キューイングを有効にし、各VLANのトラフィックシェーピングレートを指定する方法を示しています。すべての VLAN の総トラフィック シェーピング レートは 100 Gbps を超えることはできません。
構成
CLI クイックコンフィギュレーション
PTX5000 ルーターで VLAN キューイングとトラフィック シェーピングを設定するには、以下のコマンドをコピーしてルーターの端末ウィンドウに貼り付けます。
[edit] set interfaces et-5/0/0 vlan-tagging set interfaces et-5/0/0 per-unit-scheduler set interfaces et-5/0/0 unit 0 vlan-id 0 set interfaces et-5/0/0 unit 1 vlan-id 1 set interfaces et-5/0/0 unit 2 vlan-id 2 set interfaces et-5/0/0 unit 3 vlan-id 3 set interfaces et-5/0/0 unit 4 vlan-id 4 set interfaces et-5/0/0 unit 5 vlan-id 5 set interfaces et-5/0/0 unit 6 vlan-id 6 set interfaces et-5/0/0 unit 7 vlan-id 7 set interfaces et–5/0/0 unit 8 vlan-id 8 set interfaces et-5/0/0 unit 9 vlan-id 9 set class-of-service interfaces et-5/0/0 unit 0 shaping-rate 5g set class-of-service interfaces et-5/0/0 unit 1 shaping-rate 10g set class-of-service interfaces et-5/0/0 unit 2 shaping-rate 20g set class-of-service interfaces et-5/0/0 unit 3 shaping-rate 5g set class-of-service interfaces et-5/0/0 unit 4 shaping-rate 10g set class-of-service interfaces et-5/0/0 unit 5 shaping-rate 10g set class-of-service interfaces et-5/0/0 unit 6 shaping-rate 5g set class-of-service interfaces et-5/0/0 unit 7 shaping-rate 5g set class-of-service interfaces et-5/0/0 unit 8 shaping-rate 10g set class-of-service interfaces et-5/0/0 unit 9 shaping-rate 20g
手順
手順
PTX5000 ルーターを設定するには、
インターフェイスで 8021.q VLAN タグ付きフレームの受信と送信を有効にします。
[edit interfaces] user@host# set et-5/0/0 vlan-tagging
各論理インターフェイスのVLAN識別子を指定します。
[edit interfaces] user@host# set et-5/0/0 unit 0 vlan-id 0 user@host# set et-5/0/0 unit 1 vlan-id 1 user@host# set et-5/0/0 unit 2 vlan-id 2 user@host# set et-5/0/0 unit 3 vlan-id 3 user@host# set et-5/0/0 unit 4 vlan-id 4 user@host# set et–5/0/0 unit 5 vlan-id 5 user@host# set et-5/0/0 unit 6 vlan-id 6 user@host# set et-5/0/0 unit 7 vlan-id 7 user@host# set et-5/0/0 unit 8 vlan-id 8 user@host# set et-5/0/0 unit 9 vlan-id 9
各論理インターフェイスに割り当てる帯域幅を指定して、VLAN単位のトラフィックシェーピングを設定します。
[edit class-of-service interfaces] user@host# set et-5/0/0 unit 0 shaping-rate 5g user@host# set et-5/0/0 unit 1 shaping-rate 10g user@host# set et-5/0/0 unit 2 shaping-rate 20g user@host# set et-5/0/0 unit 3 shaping-rate 5g user@host# set et-5/0/0 unit 4 shaping-rate 10g user@host# set et-5/0/0 unit 5 shaping-rate 10g user@host# set et-5/0/0 unit 6 shaping-rate 5 g user@host# set et-5/0/0 unit 7 shaping-rate 5g user@host# set et-5/0/0 unit 8 shaping-rate 10g user@host# set et-5/0/0 unit 0 shaping-rate 20g
結果
および show class-of-service コマンドを入力して、結果をshow interfaces確認します。
user@host# show interfaces
et-5/0/0 {
vlan-tagging;
unit 0 {
vlan-id 0;
}
unit 1 {
vlan-id 1;
}
unit 2 {
vlan-id 2;
}
unit 3 {
vlan-id 3;
}
unit 4 {
vlan-id 4;
}
unit 5 {
vlan-id 5;
}
unit 6 {
vlan-id 6;
}
unit 7 {
vlan-id 7;
}
unit 8 {
vlan-id 8;
}
unit 9 {
vlan-id 9;
}
}
user@host# show class-of-service
interfaces {
et-5/0/3 {
unit 0 {
shaping-rate 5g;
}
unit 1 {
shaping-rate 10g;
}
unit 2 {
shaping-rate 20g;
}
unit 3 {
shaping-rate 5g;
}
unit 4 {
shaping-rate 10g;
}
unit 5 {
shaping-rate 10g;
}
unit 6 {
shaping-rate 5g;
}
unit 7 {
shaping-rate 5g;
}
unit 8 {
shaping-rate 10g;
}
unit 9 {
shaping-rate 20g;
}
}
}