例:ATM を介した動的 PPPoE 加入者インターフェイスの設定
この例では、MX シリーズルーター上の静的ATM基盤インターフェイス上に動的PPPoE()加入者インターフェイスを作成するATM経由のPPPoE(pp0
Point-to-Point Protocol over Ethernet)設定を示しています。ルーターには、ATM MICとスモールフォームファクタープラガブルトランシーバー(SFP)を使用するモジュールポートコンセントレータ/モジュラーインターフェイスカード(MPC/MIC)インターフェイスが必要です。
SFP を搭載した ATM MIC を搭載した MX シリーズ ルーターで、静的 ATM 基盤となるインターフェイスを介して 静的 PPPoE インターフェイスを設定することもできます。詳細については、 例:ATM 経由での静的 PPPoE 加入者インターフェイスの設定を参照してください。
要件
この例では、以下のソフトウェアおよびハードウェアコンポーネントを使用しています:
MX シリーズ 5G ユニバーサル ルーティング プラットフォーム
SFP搭載ATMMIC(モデル番号MIC-3D-8OC3-2OC12-ATM)および互換性のあるMPC1またはMPC2
始める前に:
使用している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シリーズルーターのATM経由のPPPoE接続でもサポートされています。
オプションで、加入者インターフェイスを作成する pp0
動的プロファイルでサービスを設定することで、サービスクラス(CoS)やファイアウォールフィルターなどの加入者サービスをPPPoE加入者インターフェイスに動的に適用することができます。この例では、PPPoE動的プロファイル(pppoe-profile)が、動的 pp0
加入者インターフェイスにCoSトラフィックシェーピングパラメータを適用します。この方法で CoS およびファイアウォール フィルターを設定すると、ATM 適合レイヤー 5(AAL5)固定仮想接続(PVC)を使用して ATM ネットワーク経由でルーターにアクセスする PPPoE 加入者に、これらのサービスを効率的かつ経済的に提供することができます。
この例には、MX シリーズ ルーターで動的 PPPoE-over-ATM 加入者アクセスを設定する次の基本的な手順が含まれています。
以下のすべてを含む加入者インターフェイスの
pp0
pppoe-profile という名前の PPPoE 動的プロファイルを作成します。定義済みの動的変数で表される
$junos-interface-unit
論理ユニット番号定義済みの動的変数で表される
$junos-underlying-interface
、基になる ATM インターフェイスの名前server
PPPoEサーバーとして機能するルーターを設定するステートメントメモ: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) 2。VPI と VCI の組み合わせにより、ATM ネットワーク経由でアクセスできるように ATM AAL5 PVC がプロビジョニングされます。
階層レベルでの
[edit interfaces interface-name unit logical-unit-number family pppoe]
PPPoE 固有のオプション(少なくとも、pp0 動的加入者インターフェイスを作成する関連 PPPoE 動的プロファイル(pppoe-profile)の名前を含む)動的 PPPoE-over-ATM 設定では、動的プロファイルで定義された各
pp0
インターフェイスが動的 PPPoE 加入者インターフェイスに対応します。メモ:MX シリーズ ルーターでの動的または静的な PPPoE-over-ATM 設定の場合、 階層レベルの スタンザ
[edit interfaces interface-name unit logical-unit-number]
でfamily pppoe
PPPoE 固有のオプションを指定する必要があります。これらの構成では、 階層レベルのスタンザでのpppoe-underlying-options
[edit interfaces interface-name unit logical-unit-number]
PPPoE 固有のオプションの指定はサポートされていません。
構成
基礎となる ATM インターフェイスを介して動的 PPPoE 加入者インターフェイスを設定するには、次のタスクを実行します。
CLIクイック構成
この例をすばやく設定するには、次のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、ネットワーク構成に合わせて必要な詳細を変更し、 階層レベルのCLI [edit]
にコマンドをコピーして貼り付けます。
# 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 動的プロファイルの設定
手順
加入者インターフェイスのPPPoE動的プロファイルを設定するには、 pp0
次の手順に従います。
動的プロファイルに名前を付けます。
[edit] user@host# edit dynamic-profiles pppoe-profile
(PPPoE)インターフェイスを設定する
pp0
ことを指定します。[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 インターフェイス at 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
の Link-level Type フィールドは、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
は、論理インターフェイス 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が静的に設定されていることが示されています。[ダイナミック プロファイル(Dynamic Profile)] フィールドは、このインターフェイスの作成に使用されるダイナミック プロファイルの名前を示しています pppoe-profile
。残りのフィールドには、階層レベルで PPPoE の基礎となるインターフェイス [edit interfaces at-1/0/0 unit 2 family pppoe]
に設定された PPPoE 固有のインターフェイス オプションに関する情報が表示されます。