例:ATMを介した動的PPPoE加入者インターフェイスの設定
この例では、MXシリーズ ルーター上の静的な ATM 基盤インターフェイス上に動的な PPPoE(pp0)加入者インターフェイスを作成する ATM 上の PPPoE(Point-to-Point Protocol over Ethernet)設定を示します。ルーターには、SFP(スモール フォームファクター プラガブル トランシーバー)を備えた ATM MIC を使用するモジュール ポート コンセントレータ/MPC/MIC(モジュラー インターフェイス カード)インターフェイスが必要です。
また、SFP がインストールされた ATM MIC を搭載した MXシリーズ ルーター上で、静的な ATM 基盤インターフェイス上で静 的な PPPoE インターフェイスを設定することもできます。詳細については、「 例:ATM を介した静的 PPPoE 加入者インターフェイスの設定」を参照してください。
要件
この例では、以下のソフトウェアおよびハードウェアコンポーネントを使用しています。
MXシリーズ5Gユニバーサルルーティングプラットフォーム
SFP(モデル番号MIC-3D-8OC3-2OC12-ATM)および互換性のあるMPC1またはMPC2を備えたATM MIC
始める前に:
使用しているMXシリーズルーターに、SFPがインストールされたATM MICがインストールされ、動作していることを確認します。
SFPを搭載したATM MICの互換MPCについては、 MXシリーズインターフェイスモジュールリファレンスを参照してください。
MXシリーズルーターへのMPCおよびMICの取り付けについては、ご使用のMXシリーズルーターモデルの ハードウェアガイド を参照してください。
静的ATMインターフェイスの設定方法と使用方法を必ず理解してください。
ATMインターフェイスの概要を参照してください。
動的PPPoE加入者インターフェイスの設定方法と使用方法を必ず理解しておく。
概要情報については、加入者インターフェイスとPPPoEの概要を参照してください
設定手順については、ダイナミックPPPoE加入者インターフェイスの設定を参照してください
概要
SFPとサポートされているMPCを備えたATM MICを使用することで、ATMネットワークを介して動的PPPoE加入者アクセスをサポートするようにMXシリーズルーターを設定できます。MXシリーズルーター上のPPPoE-over-ATM設定は、静的なATMの基礎となるインターフェイス上に動的に作成された1つ以上のPPPoE(pp0)加入者インターフェイスで構成されています。終端接続およびトンネル(L2TPアクセスコンセントレータ、またはLAC)接続でサポートされているほとんどのPPPoEおよび加入者サービス機能は、MXシリーズルーター上のPPPoE-over-ATM接続でもサポートされています。
オプションで、 pp0 加入者インターフェイスを作成する動的プロファイルでこれらのサービスを設定することで、サービスクラス(CoS)やファイアウォールフィルターなどの加入者サービスをPPPoE加入者インターフェイスに動的に適用できます。この例では、PPPoE動的プロファイル(pppoe-profile)CoSトラフィックシェーピングパラメーターを動的 pp0 加入者インターフェイスに適用します。この方法でCoSおよびファイアウォールフィルターを設定することで、ATM適合レイヤー5(AAL5)パーマネント仮想接続(PVC)を使用してATMネットワークを介してルーターにアクセスするPPPoE加入者に、これらのサービスを効率的かつ経済的に提供することができます。
この例では、MXシリーズルーターで動的PPPoE-over-ATM加入者アクセスを設定するための以下の基本手順を示しています。
以下のすべてを含む、
pp0加入者インターフェイス用にpppoe-profileという名前のPPPoE動的プロファイルを作成します。$junos-interface-unit事前定義された動的変数で表される論理ユニット番号$junos-underlying-interface事前定義された動的変数で表される、基盤となるATMインターフェイスの名前ルーターをPPPoEサーバーとして機能するように設定する
serverステートメント注:PPPoEクライアントとして機能するルーターの設定はサポートされていません。
IPv4(
inet)プロトコルファミリーの番号なしアドレス(lo0.0)CoSトラフィックシェーピングパラメータ
仮想パス識別子(VPI)3を使用して、ATM物理インターフェイスを-1/0/0で静的に設定します。
少なくとも以下のプロパティを使用して、ATM物理インターフェイス(at-1/0/0.2)上の論理ユニット2を静的に設定します。
PPPoE-over-ATM LLC(論理リンク制御)カプセル化(
ppp-over-ether-over-atm-llc)VPI 3の仮想回線識別子(VCI)2VPI と VCI の組み合わせにより、ATM ネットワーク経由でアクセスできるように ATM AAL5 PVC がプロビジョニングされます。
少なくともpp0動的加入者インターフェイスを作成する関連するPPPoE動的プロファイル(pppoe-profile)の名前を含む、
[edit interfaces interface-name unit logical-unit-number family pppoe]階層レベルでのPPPoE固有のオプション動的PPPoE-over-ATM設定では、動的プロファイルで定義された各
pp0インターフェイスは、動的PPPoE 加入者インターフェイスに対応します。注:MXシリーズルーター上の動的または静的PPPoE-over-ATM設定では、
[edit interfaces interface-name unit logical-unit-number]階層レベルのfamily pppoeスタンザでPPPoE固有のオプションを指定する必要があります。[edit interfaces interface-name unit logical-unit-number]階層レベルのpppoe-underlying-optionsスタンザでPPPoE固有のオプションを指定することは、これらの設定ではサポートされていません。
設定
基盤となるATMインターフェイス上で動的PPPoE加入者インターフェイスを設定するには、以下のタスクを実行します。
CLIクイックコンフィグレーション
この例をすばやく設定するには、以下のコマンドをコピーしてテキスト ファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、コマンドを [edit] 階層レベルのCLIにコピー アンド ペーストします。
# PPPoE Dynamic Profile set dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit" ppp-options chap set dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit" pppoe-options underlying-interface "$junos-underlying-interface" set dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit" pppoe-options server set dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit" no-keepalives set dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit" family inet unnumbered-address lo0.0 set dynamic-profiles pppoe-profile class-of-service traffic-control-profiles tcp-test shaping-rate 10m set dynamic-profiles pppoe-profile class-of-service interfaces pp0 unit "$junos-interface-unit" output-traffic-control-profile tcp-test # # ATM Physical Interface set interfaces at-1/0/0 atm-options vpi 3 # # Logical Unit 2 set interfaces at-1/0/0 atm-options vpi 3 set interfaces at-1/0/0 unit 2 encapsulation ppp-over-ether-over-atm-llc set interfaces at-1/0/0 unit 2 vci 3.2 set interfaces at-1/0/0 unit 2 family pppoe access-concentrator ac-pppoeoa set interfaces at-1/0/0 unit 2 family pppoe duplicate-protection set interfaces at-1/0/0 unit 2 family pppoe dynamic-profile pppoe-profile set interfaces at-1/0/0 unit 2 family pppoe max-sessions 3 set interfaces at-1/0/0 unit 2 family pppoe short-cycle-protection
PPPoE 動的プロファイルの設定
ステップバイステップの手順
pp0 加入者インターフェイスのPPPoE動的プロファイルを設定するには:
動的プロファイルに名前を付けます。
[edit] user@host# edit dynamic-profiles pppoe-profile
pp0(PPPoE)インターフェイスを設定することを指定します。[edit dynamic-profiles pppoe-profile] user@host# edit interfaces pp0
$junos-interface-unit事前定義された変数で表される論理ユニットを設定することを指定します。[edit dynamic-profiles pppoe-profile interfaces pp0] user@host# edit unit $junos-interface-unit
$junos-interface-unit変数は、加入者がログインすると、ネットワークから提供される実際のユニット番号に動的に置き換えられます。pp0インターフェイスのPPPoE固有のオプションを設定します。$junos-underlying-interface事前定義された変数で表されるATM基盤インターフェイスを設定します。[edit dynamic-profiles pppoe-profile interfaces pp0 unit “$junos-interface-unit”] user@host# set pppoe-options underlying-interface $junos-underlying-interface
$junos-underlying-interface変数は、加入者がログインすると、ネットワークから提供される基盤となるインターフェイスの実際の名前に動的に置き換えられます。リモートアクセスコンセントレータとも呼ばれるPPPoEサーバーとして機能するようにルーターを設定します。
[edit dynamic-profiles pppoe-profile interfaces pp0 unit “$junos-interface-unit”] user@host# set pppoe-options server
pp0インターフェイスのチャレンジハンドシェイク認証プロトコル(CHAP)認証を設定します。[edit dynamic-profiles pppoe-profile interfaces pp0 unit “$junos-interface-unit”] user@host# set ppp-options chap
インターフェイスでのキープアライブメッセージの送信を無効にします。
[edit dynamic-profiles pppoe-profile interfaces pp0 unit “$junos-interface-unit”] user@host# set no-keepalives
pp0インターフェイスのプロトコルファミリーを設定します。IPv4(
inet)プロトコルファミリーを設定することを指定します。[edit dynamic-profiles pppoe-profile interfaces pp0 unit “$junos-interface-unit”] user@host# edit family inet
プロトコルファミリーの番号なしアドレスを設定します。
[edit dynamic-profiles pppoe-profile interfaces pp0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 user@host# up 4
pp0 加入者インターフェイスの動的プロファイルで CoS トラフィックシェーピングパラメーターを設定します。
CoS トラフィックシェーピングパラメータを設定することを指定します。
[edit dynamic-profiles pppoe-profile] user@host# edit class-of-service
トラフィック制御プロファイルを作成します。
[edit dynamic-profiles pppoe-profile class-of-service] user@host# edit traffic-control-profiles tcp-test
トラフィックシェーピングレートを設定します。
[edit dynamic-profiles pppoe-profile class-of-service traffic-control-profiles tcp-test] user@host# set shaping-rate 10m user@host# up 2
pp0動的加入者インターフェイスにトラフィックシェーピングパラメーターを適用します。
[edit dynamic-profiles pppoe-profile class-of-service] user@host# edit interfaces pp0 unit $junos-interface-unit
出力トラフィックのスケジューリングおよびシェーピングプロファイルをインターフェイスに適用します。
[edit dynamic-profiles pppoe-profile class-of-service interfaces pp0 unit “$junos-interface-unit] user@host# set output-traffic-control-profile tcp-test
結果
設定モードの [edit] 階層レベルから、 show dynamic-profiles pppoe-profile コマンドを発行してPPPoE動的プロファイル設定の結果を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して修正します。
[edit]
user@host# show dynamic-profiles pppoe-profile
interfaces {
pp0 {
unit "$junos-interface-unit" {
ppp-options {
chap;
}
pppoe-options {
underlying-interface "$junos-underlying-interface";
server;
}
no-keepalives;
family inet {
unnumbered-address lo0.0;
}
}
}
}
class-of-service {
traffic-control-profiles {
tcp-test {
shaping-rate 10m;
}
}
interfaces {
pp0 {
unit "$junos-interface-unit" {
output-traffic-control-profile tcp-test;
}
}
}
}
動的プロファイルの設定が完了したら、設定モードから commit を入力します。
ATM物理インターフェイスの設定
ステップバイステップの手順
ATM物理インターフェイスを設定するには:
物理インターフェイス上でATM固有のオプションを設定することを指定します。
[edit interfaces at-1/0/0] user@host# edit atm-options
物理インターフェイスで1つ以上のVPIを設定します。
[edit interfaces at-1/0/0 atm-options] user@host# set vpi 3
結果
コンフィギュレーションモードの [edit] 階層レベルから、 show interfaces at-1/0/0 コマンドを発行してATM物理インターフェイスの設定結果を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して修正します。
[edit]
user@host# show interfaces at-1/0/0
atm-options {
vpi 3;
}
ATM物理インターフェイスの設定が完了したら、設定モードから commit を入力します。
論理ユニット 2 での動的 PPPoE 加入者インターフェイスの設定
ステップバイステップの手順
論理ユニット 2 で動的 PPPoE 加入者インターフェイスを設定するには:
インターフェイスでPPPoE-over-ATM LLCカプセル化を設定します。
[edit interfaces at-1/0/0 unit 2] user@host# set encapsulation ppp-over-ether-over-atm-llc
論理インターフェイスのVCIを設定します。
[edit interfaces at-1/0/0 unit 2] user@host# set vci 3.2
このステートメントは、VPI 3でVCI 2を設定します。
PPPoEプロトコルファミリーを設定することを指定します。
[edit interfaces at-1/0/0 unit 2] user@host# edit family pppoe
動的PPPoE加入者インターフェイスを作成する動的プロファイルにインターフェイスを関連付けます。
[edit interfaces at-1/0/0 unit 2 family pppoe] user@host# set dynamic-profile pppoe-profile
動的加入者インターフェイス用に追加のPPPoE固有のオプションを設定します。
[edit interfaces at-1/0/0 unit 2 family pppoe] user@host# set max-sessions 3 user@host# set duplicate-protection user@host# set short-cycle-protection user@host# set access-concentrator ac-pppoeoa
結果
設定モードの [edit] 階層レベルから、 show interfaces at-1/0/0.2 コマンドを発行して論理ユニット2のインターフェイス加入者動的PPPoEの結果を確認します。出力に意図した設定が表示されない場合は、この例の手順を繰り返して修正します。
[edit]
user@host# show interfaces at-1/0/0.2
encapsulation ppp-over-ether-over-atm-llc;
vci 3.2;
family pppoe {
access-concentrator ac-pppoeoa;
duplicate-protection;
dynamic-profile pppoe-profile;
max-sessions 3;
short-cycle-protection;
}
論理ユニット 2 で動的 PPPoE 加入者 インターフェイスの設定が完了したら、設定モードから commit を入力します。
検証
動的PPPoE加入者インターフェイスがATMインターフェイス-1/0/0.2で正しく設定されていることを確認するには、以下のタスクを実行します。
ATM物理インターフェイス設定の検証
目的
ATM 物理インターフェイス at-1/0/0 が ATM PVC で使用できるように正しく設定されていることを確認します。
アクション
動作モードから、 show interfaces at-1/0/0 コマンドを発行します。
簡潔にするために、この show コマンド出力には、at-1/0/0物理インターフェイスに関連する設定のみが含まれています。システム上のその他の設定はすべて省略記号(...)で置き換えられています。
user@host> show interfaces at-1/0/0
Physical interface: at-1/0/0, Enabled, Physical link is Up
Interface index: 173, SNMP ifIndex: 592
Link-level type: ATM-PVC, MTU: 2048, Clocking: Internal, SDH mode, Speed: OC3, Loopback: None, Payload scrambler: Enabled
Device flags : Present Running
Link flags : None
CoS queues : 8 supported, 8 maximum usable queues
Schedulers : 0
Current address: 00:00:5e:00:53:95
Last flapped : 2012-09-17 07:21:19 PDT (08:26:16 ago)
Input rate : 0 bps (0 pps)
Output rate : 0 bps (0 pps)
SDH alarms : None
SDH defects : None
VPI 3
Flags: Active
Total down time: 0 sec, Last down: Never
Traffic statistics:
Input packets: 0
Output packets: 0
...
意味
ATM-PVC リンクレベルタイプフィールドは、ATM永久仮想回線のカプセル化がATM物理インターフェイス-1/0/0で使用されていることを示します。VPI 3の Active フラグは、仮想パスが稼働しており、稼働していることを示しています。
論理ユニット 2 での動的 PPPoE 加入者インターフェイス設定の検証
目的
動的PPPoE加入者インターフェイスが論理ユニット2(at-1/0/0.2)で正しく設定されていることを確認します。
アクション
動作モードから、 show interfaces at-1/0/0.2 コマンドを発行します。
user@host> show interfaces at-1/0/0.2
Logical interface at-1/0/0.2 (Index 350) (SNMP ifIndex 1701)
Flags: Point-To-Point SNMP-Traps 0x4000 Encapsulation: PPPoE-over-ATM-LLC
Input packets : 0
Output packets: 0
Protocol pppoe
Dynamic Profile: pppoe-profile,
Service Name Table: None,
Max Sessions: 3, Max Sessions VSA Ignore: Off,
Duplicate Protection: On, Short Cycle Protection: mac-address,
AC Name: ac-pppoeoa
VCI 3.2
Flags: Active
Total down time: 0 sec, Last down: Never
Input packets : 0
Output packets: 0
意味
PPPoE-over-ATM-LLC Encapsulationフィールドは、論理インターフェイスat-1/0/0.2がPPPoE-over-ATM LLCカプセル化用に正しく設定されていることを示します。 Protocol pppoe は、PPPoEプロトコルファミリーが論理インターフェイス上で正しく設定されていることを示します。動的プロファイルフィールドは、動的プロファイル pppoe-profile が動的PPPoE 加入者インターフェイスを作成することを示します。VCI 3.2の Active フラグは、VPI 3上のVCI 2が稼働しており、稼働していることを示しています。
PPPoE基盤となるインターフェイス設定の検証
目的
基盤となるインターフェイスが、動的PPPoE-over-ATM加入者アクセス用に正しく設定されていることを確認します。
アクション
動作モードから、 show pppoe underlying-interfaces at-1/0/0.2 コマンドを発行します。
user@host> show pppoe underlying-interfaces at-1/0/0.2 detail at-1/0/0.2 Index 350 State: Static, Dynamic Profile: pppoe-profile, Max Sessions: 3, Max Sessions VSA Ignore: Off, Active Sessions: 0, Service Name Table: None, Duplicate Protection: On, Short Cycle Protection: mac-address, AC Name: ac-pppoeoa,
意味
このコマンドは、ATM論理インターフェイスat-1/0/0.2がPPPoE基盤インターフェイスとして正しく設定されていることを示します。状態フィールドの Static は、at-1/0/0/.2が静的に設定されていることを示しています。動的プロファイルフィールドは、 pppoe-profile がこのインターフェイスの作成に使用される動的プロファイルの名前であることを示しています。残りのフィールドには、 [edit interfaces at-1/0/0 unit 2 family pppoe] 階層レベルでPPPoE基盤インターフェイスに設定されたPPPoE固有のインターフェイスオプションに関する情報が表示されます。