例:動的 LNS MLPPP サブスクライバの設定
この例では、動的L2TPネットワークサーバ(LNS)マルチリンク(MLPPP)加入者を設定する方法を示します。
要件
この例では、以下のハードウェアとソフトウェアのコンポーネントを使用しています。
MPC2を搭載したMXシリーズ
Junos OS リリース 13.3 以降
動的 LNS MLPPP サブスクライバを設定する前に、以下が完了していることを確認してください。
インラインサービス()インターフェイスを使用してトンネルグループを設定する場合は、LNS加入者のインラインサービス(
si
si
)インターフェイスを有効にします。PPPoE および LNS 加入者向けのインライン サービス インターフェイスの有効化を参照してください。LNS加入者向けのインラインサービス(
si
)インタフェースを設定。 PPPoE および LNS 加入者向けのインライン サービス インターフェイスの設定を参照してください。サービス インターフェイスのプールを使用してトンネル グループを設定する場合は、LNS 加入者用のサービス デバイス プールを設定します。 PPPoE および LNS 加入者のロード バランシングのためのサービス デバイス プールの設定を参照してください。
概要
MLPPP 加入者は、2 つの IFL(論理インターフェイス)、メンバー リンク、およびバンドルで構成されます。動的 LNS MLPPP 加入者の場合、動的プロファイルを使用して動的メンバーリンク IFL を設定します。メンバーリンク動的プロファイルには、 family mlppp
バンドル動的プロファイルとサービスインターフェイス(si
)、またはサービスインターフェイスのプールを含むステートメントが含まれます。この情報は、動的バンドル IFL の作成に使用されます。
各ダイナミックバンドルは、ダイナミックメンバーリンクを1つだけ受け入れます。複数の動的メンバー・リンクが同じ動的バンドルに結合しようとすると、システムは新しいメンバー・セッションに失敗します。
図1 は、MXシリーズがMLPPPバンドルを終端するLNSとして動作しているネットワークを、異なるタイプのトラフィックがどのように通過するかを示しています。
トポロジ

次の 3 つのドメインは、LNS ネットワークを介してトラフィックを通過させることが示されています。
PPP ドメイン - データと音声のトラフィックが含まれます。
MLPPPドメイン:データトラフィックのみを含みます
L2TPドメイン—すべてのタイプのトラフィックが含まれます
構成
動的 LNS MLPPP サブスクライバを設定するには、次のタスクを実行します。
- CLIクイック構成
- サービス インターフェイスと L2TP アクセス プロファイル属性のプールを持つトンネル グループの設定
- 混合モードをサポートしない動的 LNS メンバー リンク IFL の動的プロファイルの設定
- 混合モードをサポートする動的LNSメンバーリンクIFLの動的プロファイルの設定
- 動的バンドルIFLの動的プロファイルの設定
- 結果
CLIクイック構成
この例をすばやく設定するには、次のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、 階層レベルのCLI [edit]
にコマンドをコピーして貼り付けます。
[edit] set access profile ce-l2tp-profile2 client ce-lac-3 user-group-profile ce-lac-1-gp set access profile ce-l2tp-profile2 client ce-lac-3 l2tp multilink set access profile ce-l2tp-profile2 client ce-lac-3 l2tp maximum-sessions-per-tunnel 2000 set access profile ce-l2tp-profile2 client ce-lac-3 l2tp shared-secret “password” set access profile ce-l2tp-profile2 client ce-lac-3 l2tp dynamic-profile ml-lns-member-prof set services l2tp tunnel-group dyn-l2tp-tunnel-group l2tp-access-profile ce-l2tp-profile2 set services l2tp tunnel-group dyn-l2tp-tunnel-group aaa-access-profile ce-authenticator set services l2tp tunnel-group dyn-l2tp-tunnel-group local-gateway address 10.1.1.1 set services l2tp tunnel-group dyn-l2tp-tunnel-group service-device-pool pool1 set services l2tp tunnel-group dyn-l2tp-tunnel-group dynamic-profile ml-lns-member-prof [edit] set dynamic-profiles mlp-lns-member-profile set dynamic-profiles mlp-lns-member-profile interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” set dynamic-profiles mlp-lns-member-profile interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” dial-options l2tp-interface-id dont care dedicated set dynamic-profiles mlp-lns-member-profile interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family mlppp bundle “$junos-bundle-interface-name” set dynamic-profiles mlp-lns-member-profile interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family mlppp service-device-pool pool1 set dynamic-profiles mlp-lns-member-profile interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family mlppp dynamic-profile ml-bundle-prof set dynamic-profiles mlp-lns-member-profile interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family inet [edit] set dynamic-profiles ml-bundle-prof set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access route $junos-framed-route-ip-address-prefix set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access route $junos-framed-route-ip-address-prefix next-hop $junos-framed-route-nexthop set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access route $junos-framed-route-ip-address-prefix metric $junos-framed-route-cost set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access route $junos-framed-route-ip-address-prefix preference $junos-framed-route-distance set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" access-internal route $junos-subscriber-ip-address set dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" access-internal route $junos-subscriber-ip-address qualified-next-hop $junos-interface-name set dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” set dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” encapsulation multilink-ppp set dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” mrru 1500 set dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” short-sequence set dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” fragment-threshold 320 set dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family inet set class-of-service traffic-control-profiles tcp2 set dynamic-profiles ml-bundle-prof class-of-service traffic-control-profiles tcp2 scheduler-map "$junos-cos-scheduler-map” set dynamic-profiles ml-bundle-prof class-of-service traffic-control-profiles tcp2 shaping-rate "$junos-cos-shaping-rate" set dynamic-profiles ml-bundle-prof class-of-service traffic-control-profiles tcp2 guaranteed-rate "$junos-cos-guaranteed-rate" set dynamic-profiles ml-bundle-prof class-of-service traffic-control-profiles tcp2 delay-buffer-rate “$junos-cos-delay-buffer-rate” set dynamic-profiles ml-bundle-prof class-of-service interfaces “$junos-interface-ifd-name” unit "$junos-interface-unit" set dynamic-profiles ml-bundle-prof class-of-service interfaces “$junos-interface-ifd-name” unit "$junos-interface-unit" output-traffic-control-profile tcp2 set dynamic-profiles ml-bundle-prof class-of-service interfaces “$junos-interface-ifd-name” unit "$junos-interface-unit" fragmentation-map fragmap-2
サービス インターフェイスと L2TP アクセス プロファイル属性のプールを持つトンネル グループの設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。
動的 LNS MLPPP 加入者のサービス インターフェイスと L2TP アクセス プロファイル属性のプールを使用してトンネル グループを設定するには、次の手順に従います。
アクセスプロファイルを作成します。
[edit access]
user@host#set profile ce-l2tp-profile2
L2TP(LAC)アクセスクライアントを設定します。
[edit access profile ce-l2tp-profile2]
user@host#set client ce-lac-3
このLACクライアントからトンネリングされるPPPセッションに適用するPPP属性を含むグループプロファイルを関連付けます。
[edit access profile ce-l2tp-profile2 client ce-lac-3]
user@host#set user-group-profile ce-lac-1-gp
この例では、次の L2TP アクセス プロファイル属性を設定します。
L2TP クライアントは、加入者に対してマルチリンク(MLPPP)対応です。L2TPアクセスクライアントプロファイルのステートメントは
multilink
、LACピアから着信する加入者に対してMLPPPをサポートするかどうかを判断します。クライアント(LAC)からトンネルで許可されるセッションの最大数。
クライアントの認証に使用されるトンネル パスワード(LAC)。
動的 LNS MLPPP 加入者の L2TP アクセス クライアント プロファイル内の動的プロファイル名。
メモ:dynamic-profile name
が L2TP アクセス クライアント プロファイルで定義されている場合は、動的 LNS MLPPP メンバー リンクの作成に使用されます。それ以外の場合は、dynamic-profile name
トンネル グループで定義されている が使用されます。どちらのプロファイルにも ステートメントが含まれていないfamily mlppp
場合、受信 LNS セッションは失敗します。
[edit access profile ce-l2tp-profile2 client ce-lac-3]
user@host# user@host# user@host#set l2tp multilink
set l2tp shared-secret password
user@host#set l2tp maximum-sessions-per-tunnel 2000
set dynamic-profile ml-lns-member-prof
トンネル グループを作成します。
[edit services l2tp]
user@host#set tunnel-group dyn-l2tp-tunnel-group
トンネル アクセス プロファイルを、アクセス プロファイルに定義した設定と同じに設定します。
[edit services l2tp tunnel-group dyn-l2tp-tunnel-group]
user@host#set l2tp-access-profile ce-l2tp-profile2
L2TP AAA アクセス プロファイルを設定します。
メモ:L2TP AAAアクセスプロファイルは、LNSアクセスクライアントプロファイルまたはステートメントをそれぞれ使用して、 レベルまたは
[edit services]
tunnel-group
階層レベルのいずれか[edit access]
で指定できます。階層レベルを使用して定義された L2TP AAA アクセス プロファイルは、 階層レベルを使用して[edit access]
[edit services]
定義された L2TP AAA アクセス プロファイルtunnel-group
よりも優先されます。[edit services l2tp tunnel-group dyn-l2tp-tunnel-group]
user@host#set aaa-access-profile ce-authenticator
L2TP トンネルのローカル ゲートウェイ アドレスを設定します。
[edit services l2tp tunnel-group dyn-l2tp-tunnel-group]
user@host#set local-gateway address 10.1.1.1
動的 LNS MLPPP 加入者のサービスインタフェースのプールを指定します。
[edit services l2tp tunnel-group dyn-l2tp-tunnel-group]
user@host#set service-device-pool pool1
動的 LNS MLPPP メンバーリンクの作成に使用する動的プロファイルを指定します。
[edit services l2tp tunnel-group dyn-l2tp-tunnel-group]
user@host#set dynamic-profile ml-lns-member-prof
デバイスの設定が完了したら、設定をコミットします。
[edit] user@host# commit
混合モードをサポートしない動的 LNS メンバー リンク IFL の動的プロファイルの設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。
動的LNSメンバーリンクIFLの作成に使用される は、L2TPクライアントアクセスプロファイルまたはトンネルグループのいずれかで設定できます dynamic-profile name
。 サービス インターフェイスと L2TP アクセス プロファイル属性のプールを持つトンネル グループの設定を参照してください。
次の例は、LNS MLPPP および PPP サブスクライバの設定を示していますdynamic-profile
。ステートメントにはfamily mlppp
、 dynamic-profile name
と、service-interface
service-device-pool
動的バンドルIFLの作成に使用される または のいずれかが含まれています。を設定するservice-device-pool
場合、プールからインラインサービス(si
)インターフェイスを選択し、ラウンドロビン方式を使用して動的バンドルIFLを作成します。
また、 family inet
トンネル加入者向けのメンバーリンク動的プロファイルインターフェイスで si
ステートメントを設定する必要があります。このステートメントを使用すると family inet
、L2TP 長距離ルートをインストールして、ルックアップ エンジンが制御パケットをルーティング エンジンに誘導できるようにサポートできます。
オプションで、混合モードをサポートするように動的プロファイルを設定し、PPP 加入者が動的プロファイルを使用して正常にログインできるようにすることができます。必要な追加の設定コマンドについては、 混合モード サポートを使用した動的 LNS メンバー リンク IFL の動的プロファイルの設定 を参照してください。
以前に サービスインターフェイスとL2TPアクセスプロファイル属性のプールを持つトンネルグループの設定で動的LNS MLPPPメンバーリンクを作成するために使用した動的プロファイルを指定します。
[edit dynamic-profiles]
user@host#set ml-lns-member-prof
定義済み動的インターフェイス変数 を設定して動的プロファイルのインターフェイスを設定し、 定義済みユニット番号変数 $junos-interface-ifd-name$junos-interface-unitを設定して論理インターフェイスユニットを設定します。インターフェイスとユニット番号の変数は、加入者がMXシリーズに接続するときにアクセスするインターフェイスとユニット番号に動的に置き換えられます。
メモ:PPPoE セッションの動的プロファイルのインターフェイス設定では、次のコード形式のいずれかを使用できます。
set interfaces pp0
または
set interfaces “$junos-interface-ifd-name”
この例では、
set interfaces “$junos-interface-ifd-name”
.[edit dynamic-profiles ml-lns-member-prof]
user@host#set interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”
$junos-interface-ifd-nameインターフェイスでは、L2TPインターフェイスのダイヤルオプションを設定して、論理インターフェイスが一度に1つのセッションをホストできることを指定します(専用)。
[edit dynamic-profiles ml-lns-member-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host#set dial-options l2tp-interface-id dont care dedicated
LNS MLPPP サブスクライバの MLPPP サポートを有効にし、事前定義された動的バンドル インターフェイス変数 $junos-bundle-interface-nameを設定して動的バンドル インターフェイス(IFL)を設定します。
メモ:このステートメントは
family mlppp
、基礎となるインターフェイスから着信する加入者に対して MLPPP がサポートされているかどうかを判断します。[edit dynamic-profiles ml-lns-member-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host#set family mlppp bundle “$junos-bundle-interface-name”
動的 LNS MLPPP 加入者のサービスインタフェースのプールを指定します。
[edit dynamic-profiles ml-lns-member-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family mlppp]
user@host#set service-device-pool pool1
バンドルの動的プロファイル名を指定します。
[edit dynamic-profiles ml-lns-member-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit” family mlppp]
user@host#set dynamic-profile ml-bundle-prof
LNS サブスクライバと LNS 長距離ルートのサポートを有効にします。
[edit dynamic-profiles ml-lns-member-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host#set family inet
デバイスの設定が完了したら、設定をコミットします。
[edit] user@host# commit
混合モードをサポートする動的LNSメンバーリンクIFLの動的プロファイルの設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。
オプションで、混合モードをサポートするように動的プロファイルを設定し、PPP 加入者が動的プロファイルを使用して正常にログインできるようにすることができます。
次の例は、動的プロファイルの混合モードをサポートするために必要な追加設定を示しています。
以下の設定コマンドは、「 CLIクイック・コンフィギュレーション」 セクションには含まれていません。
以前に サービスインターフェイスとL2TPアクセスプロファイル属性のプールを持つトンネルグループの設定で動的LNS MLPPPメンバーリンクを作成するために使用した動的プロファイルを指定します。
[edit dynamic-profiles]
user@host#set ml-lns-member-prof
カスタマー構内機器(CPE)が動的仮想ルーティングおよび転送(VRF)PPP加入者用である場合、ルーティングインスタンスとそのインターフェイスを設定する必要があります。
[edit dynamic-profiles ml-lns-member-prof]
user@host#set routing-instances "$junos-routing-instance" interface "$junos-interface-name"
ルーティングオプションのアクセスルートを設定します。
[edit dynamic-profiles ml-lns-member-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name"]
user@host#set routing-options access route $junos-framed-route-ip-address-prefix
ルーターのネクストホップ、メトリック、およびプリファレンスを設定します。
[edit dynamic-profiles ml-lns-member-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access route $junos-framed-route-ip-address-prefix]
user@host# user@host#set next-hop $junos-framed-route-nexthop
user@host#set metric $junos-framed-route-cost
set preference $junos-framed-route-distance
ルーティングオプションの内部アクセスルートを設定します。
[edit dynamic-profiles ml-lns-member-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name"]
user@host#set routing-options access-internal route $junos-subscriber-ip-address
内部ルートの修飾ネクストホップを設定します。
[edit dynamic-profiles ml-lns-member-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access-internal route $junos-subscriber-ip-address ]
user@host#set qualified-next-hop $junos-interface-name
混合モードサポートなしの動的 LNS メンバーリンク IFL の動的プロファイルの設定で説明されている手順に従って、動的プロファイルの基本設定を行います。
メモ:混合モードのサポートを有効にするには、CPE が PPP 加入者である場合、番号なしアドレス、および入出力フィルタもステートメント
family inet
に追加する必要があります。[edit dynamic-profiles ml-lns-member-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host#
user@host#set family inet unnumbered-address $junos-loopback-interface
set family inet filter input "$junos-input-filter" output "$junos-output-filter”
CPE が PPP 加入者である場合は、サービス クラスを設定し、トラフィック制御プロファイルを定義する必要もあります。
[edit dynamic-profiles ml-lns-member-prof class-of-service]
user@host#set traffic-control-profiles tc-profile
トラフィック制御プロファイルでは、スケジューラ マップ、シェーピング レート、オーバーヘッド アカウンティング、保証レート、および遅延バッファ レートの設定を定義します。
[edit dynamic-profiles ml-lns-member-prof class-of-service traffic-control-profiles tc-profile]
user@host# user@host# user@host# user@host#set scheduler-map "$junos-cos-scheduler-map"
set overhead-accounting "$junos-cos-shaping-mode" bytes "$junos-cos-byte-adjust"
set guaranteed-rate "$junos-cos-guaranteed-rate"
user@host#set shaping-rate "$junos-cos-shaping-rate"
set delay-buffer-rate "$junos-cos-delay-buffer-rate"
定義済み動的インターフェイス変数 を設定して動的プロファイルのインターフェイスを設定し、 定義済みユニット番号変数 $junos-interface-ifd-name$junos-interface-unitを設定して論理インターフェイスユニットを設定します。
[edit dynamic-profiles ml-lns-member-prof class-of-service]
user@host#set interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”
動的プロファイル インターフェイスでは、出力トラフィック制御プロファイル、分類子、および書き換えルールの設定を定義します。
[edit dynamic-profiles ml-lns-member-prof class-of-service interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host# user@host#set output-traffic-control-profile tc-profile
user@host#set classifiers dscp GEN-CLASSIFIER-IN
set rewrite-rules dscp GEN-RW-OUT-DSCP
デバイスの設定が完了したら、設定をコミットします。
[edit] user@host# commit
動的バンドルIFLの動的プロファイルの設定
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。
動的バンドル IFL の動的プロファイルを設定するには、動的プロファイル内で ステートメントを指定します encapsulation multilink-ppp
。動的バンドルIFLの は dynamic profile
、動的PPPoEおよびLNSメンバーリンクIFLの から参照 dynamic profile
されます。
ステートメントは fragmentation-maps
、class-of-serviceを使用して静的に設定し、バンドル動的プロファイルで割り当てる必要があります。オプションの MLPPP パラメータ(MRRU、ショート シーケンス、フラグメントしきい値)を設定することもできます。次に、動的バンドル IFL の動的プロファイルを設定する例を示します。
バンドルの動的プロファイル名を指定します。
[edit dynamic-profiles}
user@host#set ml-bundle-prof
MLPPPメンバーリンクは認証とルーティングインスタンスの割り当てを処理しますが、デフォルト以外のルーティングインスタンスが割り当てられている場合は、割り当てられたルーティングインスタンスの下でバンドルIFLを設定する必要があります。そのため、バンドル動的プロファイルでルーティングインスタンスも設定する必要があります。
[edit dynamic-profiles ml-bundle-prof]
user@host#set routing-instances "$junos-routing-instance" interface "$junos-interface-name"
ルーティングオプションのアクセスルートを設定します。
[edit dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name"]
user@host#set routing-options access route $junos-framed-route-ip-address-prefix
ルーターのネクストホップ、メトリック、およびプリファレンスを設定します。
[edit dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access route $junos-framed-route-ip-address-prefix]
user@host# user@host#set next-hop $junos-framed-route-nexthop
user@host#set metric $junos-framed-route-cost
set preference $junos-framed-route-distance
ルーティングオプションの内部アクセスルートを設定します。
[edit dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name"]
user@host#set routing-options access-internal route $junos-subscriber-ip-address
内部ルートの認定ネクストホップを設定します。
[edit dynamic-profiles ml-bundle-prof routing-instances "$junos-routing-instance" interface "$junos-interface-name" routing-options access-internal route $junos-subscriber-ip-address]
user@host#set qualified-next-hop $junos-interface-name
定義済み動的インターフェイス変数 を設定して動的プロファイルのインターフェイスを設定し、 定義済みユニット番号変数 $junos-interface-ifd-name$junos-interface-unitを設定して論理インターフェイスユニットを設定します。インターフェイスとユニット番号の変数は、加入者がMXシリーズに接続するときにアクセスするインターフェイスとユニット番号に動的に置き換えられます。
[edit dynamic-profiles ml-bundle-prof]
user@host#set interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”
ステートメント
encapsulation multilink-ppp
を設定して、動的プロファイルのMLPPPバンドリングを有効にします。[edit dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host#set encapsulation multilink-ppp
この例では、次の MLPPP オプションを設定します。
mrru
—1500〜4500バイトの範囲で受信した再構築ユニットの最大値を指定します。fragment-threshold
—128〜16,320バイトの範囲のすべてのパケットおよび転送クラスに適用されます。short-sequence
- MLPPP のヘッダー形式を決定します。デフォルトはlong-sequence
です。
[edit dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host# user@host#set mrru 1500
user@host#set fragment-threshold 320
set short-sequence
MLPP 加入者のサポートを有効にします。
[edit dynamic-profiles ml-bundle-prof interfaces “$junos-interface-ifd-name” unit “$junos-interface-unit”]
user@host#set family inet
サポートを有効にするには
fragmentation-maps
、サービスクラスを設定し、トラフィック制御プロファイルを定義する必要があります。[edit dynamic-profiles ml-bundle-prof class-of-service]
user@host#set traffic-control-profiles tcp2
トラフィック制御プロファイルでは、スケジューラ マップ、シェーピング レート、保証レート、遅延バッファ レートの設定を定義します。
[edit dynamic-profiles ml-bundle-prof class-of-service traffic-control-profiles tcp2]
user@host# user@host# user@host#set scheduler-map "$junos-cos-scheduler-map"
set guaranteed-rate "$junos-cos-guaranteed-rate"
user@host#set shaping-rate "$junos-cos-shaping-rate"
set delay-buffer-rate "$junos-cos-delay-buffer-rate"
事前定義された動的インターフェイス変数 を設定して動的プロファイルの基礎となるインターフェイスを設定し、事前定義されたユニット番号変数 $junos-interface-ifd-name$junos-interface-unitを設定して論理インターフェイスユニットを設定します。インターフェイスとユニット番号の変数は、加入者がMXシリーズに接続するときにアクセスするインターフェイスとユニット番号に動的に置き換えられます。
[edit dynamic-profiles ml-bundle-prof class-of-service]
user@host#set interfaces “$junos-interface-ifd-name” unit "$junos-interface-unit"
動的プロファイルインターフェイスの場合、出力トラフィック制御プロファイルを定義します。
[edit dynamic-profiles ml-bundle-prof class-of-service interfaces “$junos-interface-ifd-name” unit "$junos-interface-unit"]
user@host#set output-traffic-control-profile tcp2
動的プロファイルバンドルに必要で、リンクのフラグメンテーションとインターリーブ(LFI)を有効にするために使用されるフラグメンテーションマップを定義します。
[edit dynamic-profiles ml-bundle-prof class-of-service interfaces “$junos-interface-ifd-name” unit "$junos-interface-unit"]
user@host#set fragmentation-map fragmap-2
デバイスの設定が完了したら、設定をコミットします。
[edit] user@host# commit
結果
コンフィギュレーションモードから、、show services
show dynamic-profiles
、およびの各show access
コマ ンドを入力し 、コンフィギュレーションを確認します。出力結果に意図した設定内容が表示されない場合は、この例の手順を繰り返して設定を修正します。
user@host# show access profile ce-l2tp-profile2 access profile { ce-l2tp-profile2 { client ce-lac-3 { user-group-profile ce-lac-1-gp; l2tp { multilink; interface-id not-used; maximum-sessions-per-tunnel 2000; shared-secret "$9$2wgUHQF/9pB"; dynamic-profile ml-lns-member-prof; } } } }
user@host# show services l2tp tunnel-group dyn-l2tp-tunnel-group services { l2tp { tunnel-group dyn-l2tp-tunnel-group { l2tp-access-profile ce-l2tp-profile2; aaa-access-profile ce-authenticator; local-gateway { address 10.1.1.1; } service-device-pool pool1; dynamic-profile ml-lns-member-prof; } } }
混合モードを使用しない動的LNSメンバーリンクIFLの動的プロファイル:
user@host# show dynamic-profiles mlp-lns-member-profile dynamic-profile mlp-lns-member-profile { interface $junos-interface-ifd-name { unit $junos-interface-unit” { dial-options { l2tp-interface-id dont-care; dedicated; } family mlppp { bundle $junos-bundle-interface-name ; service-device-pool pool1; dynamic-profile mlp-bundle-profile; } family inet { } } } }
混合モードを使用した動的LNSメンバーリンクIFLの動的プロファイル:
user@host# show dynamic-profiles mlp-lns-member-profile dynamic-profile ml-lns-member-prof { routing-instances { "$junos-routing-instance" { interface "$junos-interface-name"; routing-options { access { route $junos-framed-route-ip-address-prefix { next-hop $junos-framed-route-nexthop; metric $junos-framed-route-cost; preference $junos-framed-route-distance; } } access-internal { route $junos-subscriber-ip-address { qualified-next-hop $junos-interface-name; } } } } } } interfaces "$junos-interface-ifd-name" { unit "$junos-interface-unit" { dial-options { l2tp-interface-id l2tp-encapsulation; dedicated; } family mlppp { bundle $junos-bundle-interface-name; service-device-pool pool2; dynamic-profile ml-bundle-prof; } family inet { unnumbered-address $junos-loopback-interface; filter { input "$junos-input-filter"; output "$junos-output-filter"; } } } class-of-service { traffic-control-profiles { tc-profile { scheduler-map "$junos-cos-scheduler-map"; shaping-rate "$junos-cos-shaping-rate"; overhead-accounting "$junos-cos-shaping-mode" bytes "$junos-cos-byte-adjust"; guaranteed-rate "$junos-cos-guaranteed-rate"; delay-buffer-rate "$junos-cos-delay-buffer-rate"; } } interfaces { "$junos-interface-ifd-name" { unit "$junos-interface-unit" { output-traffic-control-profile tc-profile; classifiers { dscp GEN-CLASSIFIER-IN; } rewrite-rules { dscp GEN-RW-OUT-DSCP; } } } } } }
user@host# show dynamic-profiles ml-bundle-prof dynamic-profile ml-bundle-prof { routing-instances { "$junos-routing-instance" { interface "$junos-interface-name"; routing-options { access { route $junos-framed-route-ip-address-prefix { next-hop $junos-framed-route-nexthop; metric $junos-framed-route-cost; preference $junos-framed-route-distance; } } access-internal { route $junos-subscriber-ip-address { qualified-next-hop $junos-interface-name; } } } } } } interfaces "$junos-interface-ifd-name" { unit "$junos-interface-unit" { encapsulation multilink_ppp; mrru 1500; short-sequence; fragment-threshold 320; family inet } } } class-of-service { traffic-control-profiles { tcp2 { scheduler-map "$junos-cos-scheduler-map"; shaping-rate "$junos-cos-shaping-rate"; guaranteed-rate "$junos-cos-guaranteed-rate"; delay-buffer-rate "$junos-cos-delay-buffer-rate"; } } interfaces { "$junos-interface-ifd-name" { unit "$junos-interface-unit" { output-traffic-control-profile tcp2; fragmentation-map fragmap-2 } } } }
検証
設定が正常に機能していることを確認します。
加入者情報の確認
目的
LNS 上の動的 MLPPP の加入者情報が正しいことを確認します。
アクション
user@host> show subscribers extensive
Type: L2TP
User Name: lns-client
IP Address: 198.51.100.20
IP Netmask: 255.255.255.0
Logical System: default
Routing Instance: default
Interface: si-1/0/0.1073741824
Interface type: Dynamic
Dynamic Profile Name: ml-lns-member-prof
Dynamic Profile Version: 1
State: Active
Radius Accounting ID: 20
Session ID: 20
Bundle Session ID: 21
Login Time: 2011-04-11 10:55:13 PDT
Type: MLPPP
User Name: lns-client
IP Address: 198.51.100.20
IP Netmask: 255.255.255.0
Logical System: default
Routing Instance: default
Interface: si-3/0/0.1073741825
Interface type: Dynamic
Dynamic Profile Name: ml-bundle-prof
Dynamic Profile Version: 1
State: Active
Radius Accounting ID: 21
Session ID: 21
Underlying Session ID: 20
Login Time: 2011-04-11 07:55:59 PDT
意味
インターフェイスの加入者情報は、インターフェイス si-1/0/0.1073741824
タイプが dynamic の MLPPP に対して設定されています。
動的 MLPPP 対応サブスクライバによる混合モード サポートの検証
目的
動的 MLPPP 対応加入者を使用して、混合モード インターフェイスが単一リンク PPP に対して正しくネゴシエートされたことを確認します。
アクション
user@host> show interfaces extensive pp0.1073741832
Logical interface pp0.1073741832 (Index 489) (SNMP ifIndex 712)
(Generation 299)
Flags: Up Point-To-Point SNMP-Traps 0x4000 Encapsulation: PPPoE
PPPoE:
State: SessionUp, Session ID: 40,
Session AC name: haverhill1, Remote MAC address: 00:00:5e:00:53:72,
Underlying interface: ge-1/0/0.44 (Index 376)
Traffic statistics:
Input bytes : 1213
Output bytes : 1672
Input packets: 41
Output packets: 49
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Local statistics:
Input bytes : 159
Output bytes : 1424
Input packets: 10
Output packets: 18
Transit statistics:
Input bytes : 1054 0 bps
Output bytes : 248 0 bps
Input packets: 31 0 pps
Output packets: 31 0 pps
IPv6 transit statistics:
Input bytes : 0
Output bytes : 0
Input packets: 0
Output packets: 0
Keepalive settings: Interval 45 seconds, Up-count 1, Down-count 3
LCP state: Opened
NCP state: inet: Opened, inet6: Opened, iso: Not-configured, mpls:
Not-configured
CHAP state: Closed
PAP state: Success
Protocol inet, MTU: 65531, Generation: 384, Route table: 0
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Is-Primary
Destination: Unspecified, Local: 10.0.0.1, Broadcast: Unspecified,
Generation: 297
Protocol inet6, MTU: 65531, Generation: 385, Route table: 0
Addresses, Flags: Is-Primary
Destination: Unspecified, Local: 2030::1
Generation: 298
Destination: Unspecified, Local: fe80::2a0:a50f:fc64:6ef2
Generation: 299
意味
動的 MLPPP 対応サブスクライバが単一のリンク PPP をネゴシエートすると、結果は非 MLPPP サブスクライバと同じです。バンドルIFLまたはSDBセッションは作成されません。
LAC インターフェイス上でのトンネリング MLPPP の検証
目的
MLPPP over LACメンバーリンクIFLが正しいことを確認します。
アクション
user@host> show interfaces extensive pp0.1073756921
Logical interface pp0.1073756921 (Index 482) (SNMP ifIndex 706)
(Generation 15542)
Flags: Up Point-To-Point SNMP-Traps 0x4000 Encapsulation: PPPoE
PPPoE:
State: SessionUp, Session ID: 37,
Session AC name: haverhill, Remote MAC address: 00:00:5e:00:53:82,
Underlying interface: ge-1/0/0.2040 (Index 457)
Traffic statistics:
Input bytes : 273
Output bytes : 270
Input packets: 13
Output packets: 10
Local statistics:
Input bytes : 138
Output bytes : 155
Input packets: 6
Output packets: 3
Transit statistics:
Input bytes : 135 0 bps
Output bytes : 115 0 bps
Input packets: 7 0 pps
Output packets: 7 0 pps
Keepalive settings: Interval 45 seconds, Up-count 1, Down-count 3
LCP state: Opened
NCP state: inet: Not-configured, inet6: Not-configured, iso: Not-configured, mpls:
Not-configured
CHAP state: Closed
PAP state: Closed
Protocol inet, MTU: 1492, Generation: 15534, Route table: 0
Flags: Sendbcast-pkt-to-re
Protocol mlppp, Multilink bundle: si-1/0/0.1073756922
Service device pool: sipool-1, Dynamic profile: ml-bundle-prof
MTU: 1526, Generation: 15533, Route table: 0
意味
PPPoE MLPPPセッションがトンネリングされると、バンドルとメンバーリンクのバインディングは維持されます。バンドルIFLは制御パスと転送パスには参加しませんが、ユーザーインターフェイスには残ります。