例:動的プロファイルでの加入者の動的サービスVLANインターフェイスセットの設定
インターフェイスセットにより、加入者インターフェイスのグループに階層的なスケジューリングを提供することができます。この例では、インターフェイスセット名を指定する際に $junos-svlan-interface-set-name 内部動的変数を使用することで、デュアルタグ付きVLANの外部タグに基づいてSVLANインターフェイスで使用するインターフェイスセット名をローカルに生成できます。生成される変数の形式は physical_interface_name - outer_VLAN_tagです。
要件
開始する前に、インターフェイスセットに含める加入者インターフェイスを設定します。サポートされている動的インターフェイス設定の一般的な設定手順については、「 DHCP 加入者インターフェイスの概要」 および以下を参照してください。
動的VLANインターフェイスについては、 アグリゲートイーサネットを介した静的または動的VLAN加入者インターフェイスの設定を参照してください。
動的IP Demuxインターフェイスについては、アグリゲートイーサネットを介した静的または動的IP Demux加入者インターフェイスの設定を参照してください。
動的VLAN demuxインターフェイスについては、 動的プロファイルでVLAN demuxインターフェイスを使用した動的加入者インターフェイスの設定を参照してください。
概要
インターフェイスセットにより、加入者インターフェイスのグループに階層的なスケジューリングを提供することができます。インターフェイスセット名を指定する際に $junos-svlan-interface-set-name 内部動的変数を使用することで、デュアルタグ付きVLANの外部タグに基づいて、SVLANインターフェイスで使用するインターフェイスセット名をローカルに生成できます。生成される変数の形式は physical_interface_name - outer_VLAN_tagです。
この例には、以下のステートメントが含まれています。
interface-set—動的CoSのスケジューラの名前を設定します。この例では、$junos-svlan-interface-set-name変数を使用して、デュアルタグ付きVLANの外部タグに基づいて、SVLANインターフェイスで使用する、ローカルで生成されたインターフェイスセット名を取得します。output-traffic-control-profile—出力トラフィックのスケジューリングおよびシェーピングプロファイルをインターフェイスセットに適用します。output-traffic-control-profile-remaining—残りのトラフィックの出力トラフィックスケジューリングおよびシェーピングプロファイルをインターフェイスセットに適用します。
設定
CLIクイックコンフィグレーション
この例を簡単に設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、コマンドを [edit] 階層レベルのCLIにコピー&ペーストしてください。
[edit] set dynamic-profiles profile-dhcp-ipdemux interfaces interface-set $junos-svlan-interface-set-name interface $junos-interface-ifd-name unit $junos-underlying-interface-unit set dynamic-profiles profile-dhcp-ipdemux interfaces $junos-interface-ifd-name unit $junos-underlying-interface-unit set class-of-service traffic-control-profiles tcp1 scheduler-map schedMap set class-of-service traffic-control-profiles tcp1 shaping-rate 50m set class-of-service traffic-control-profiles tcp1 guaranteed-rate 200k set class-of-service traffic-control-profiles tcp3 scheduler-map ss1q0q1 set class-of-service traffic-control-profiles tcp3 shaping-rate 20m set class-of-service traffic-control-profiles tcp3 guaranteed-rate 5m set class-of-service interfaces interface-set ae0-111 output-traffic-control-profile tcp1 set class-of-service interfaces interface-set ae0-111 output-traffic-control-profile-remaining tcp3
手順
ステップバイステップの手順
加入者インターフェイスのSVLANインターフェイスセットを設定するには:
インターフェイスセット用に変更する動的プロファイルにアクセスします。
[edit] user@host# edit dynamic-profiles profile-dhcp-ipdemux
動的プロファイルのインターフェイス設定にアクセスします。
[edit dynamic-profiles profile-dhcp-ipdemux] user@host# edit interfaces
動的プロファイルで設定されたSVLANインターフェイスを設定します。インターフェイスセットは、加入者がログインすると動的に作成されます。
[edit dynamic-profiles profile-dhcp-ipdemux interfaces] user@host# edit interface-set $junos–svlan-interface-set-name
動的インターフェイスセット内に動的IP demuxインターフェイスの作成を含めます。
[edit dynamic-profiles profile-dhcp-ipdemux interfaces interface-set $junos-svlan-interface-set-name] user@host# set interface $junos-interface-ifd-name unit $junos-underlying-interface-unit
生成すると予想されるSVLANインターフェイス
$junos-svlan-interface-set-nameセット名にアクセスします。例えば、集合型イーサネットインターフェイスae0と外部VLANタグ111に予想されるインターフェイスセット名を指定するには、interface-set-name変数にae0-111を含めます。[edit class-of-service interfaces] user@host# edit interface-set ae0-111
SVLANインターフェイスセットにトラフィックシェーピングとキューイングパラメーターを適用します。
ヒント:インターフェイス セットは、
[edit dynamic-profiles]階層ではなく、静的[edit class-of-service]階層で設定する必要があります。[edit class-of-service interfaces interface-set ae0-111] user@host# set output-traffic-control-profile tcp1
SVLANインターフェイスセット上の残りのトラフィックに、トラフィックシェーピングとキューイングパラメーターを適用します。
[edit class-of-service interfaces interface-set ae0-111] user@host# set output-traffic-control-profile-remaining tcp3
結果
設定モードから、 show dynamic-profiles コマンドと show class-of-service コマンドを入力して設定を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@host# show dynamic-profiles
dynamic-profiles {
profile-dhcp-ipdemux {
interfaces {
interface-set "$junos-svlan-interface-set-name" {
interface "$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit";
}
}
"$junos-interface-ifd-name" {
unit "$junos-underlying-interface-unit";
}
}
}
}
user@host# show class-of-service
class-of-service {
traffic-control-profiles {
tcp1 {
scheduler-map schedMap;
shaping-rate 50m;
guaranteed-rate 200k;
}
tcp3 {
inactive: scheduler-map ss1q0q1;
shaping-rate 20m;
guaranteed-rate 5m;
}
}
interfaces {
interface-set ae0-111 {
output-traffic-control-profile tcp1;
output-traffic-control-profile-remaining tcp3;
}
}
}
検証
設定が正しいことを確認するために、以下のタスクを実行します。
インターフェイスセットに含まれるインターフェイスの検証
目的
インターフェイスセットに含まれるインターフェイスを確認します。
アクション
user@host> show class-of-service interface-set