例:静的な基盤となる VLAN Demux インターフェイス上の動的 PPPoE 加入者インターフェイスのアグリゲート イーサネット上での設定
この例では、集約されたイーサネット・バンドル上で動的PPPoE加入者インターフェイスを設定して、加入者リンクの冗長性を提供する方法を示しています。
要件
集合型イーサネット上の VLAN デモマックス インターフェイス上の PPPoE には、以下のハードウェアとソフトウェアが必要です。
MXシリーズ5Gユニバーサルルーティングプラットフォーム
MPC
Junos OS リリース 11.2 以降
この機能を設定する前に、デバイス初期化以外の特別な設定は必要ありません。
概要
集合型イーサネット・バンドルは、イーサネット・リンクで接続されたルーターとネットワーク・デバイス間のリンク冗長性を可能にします。この例では、集約型イーサネット インターフェイスを介した動的 PPPoE 加入者に対して、中間静的 VLAN デモマックス インターフェイス ae0
を使用してリンク冗長性を設定する方法を説明します demux0.100
。サンプルタスクには、2メンバーの集約型イーサネットバンドルの設定、PPPoE加入者インターフェイスの基礎となる静的VLANデモマックスインターフェイスの設定、動的PPPoE加入者インターフェイスを確立する動的プロファイルの設定などが含まれます。
動的PPPoEプロファイル(pppoe-profile
)は、PPPoE加入者インターフェイスを作成します。また、PPPoE サーバーとして機能するようルーターを設定し、インターフェイスに明示的な IP アドレスを割り当てることなく、指定されたアドレスからローカル アドレスを取得できるようにします。pppoe-profile
動的プロファイルは、PPPoEファミリー()属性で設定された静的な中間VLAN demuxインターフェイス(demux0.100
family pppoe
)に割り当てられます。この動的プロファイルには、以下の事前定義変数が含まれています。
$junos-interface-unit
- 動的 PPPoE 論理インターフェイスの論理ユニット番号を表します。この事前定義変数は、加入者がログインする際に、ルーターが提供するユニット番号に動的に置き換えられます。$junos-underlying-interface
-基になるイーサネット インターフェイスの名前を表します。この事前定義変数は、加入者がログインする際に、ルーターが提供するインターフェイス名に動的に置き換えられます。
この例では、考えられるすべての設定の選択肢を表示するわけではありません。
構成
手順
CLI クイックコンフィギュレーション
集約されたイーサネット上の静的なVLAN demuxインターフェイスを介して動的PPPoE加入者のリンク冗長性を迅速に設定するには、以下のコマンドをコピーしてテキストファイルに貼り付け、改行を削除して、コマンドをCLIにコピーアンドペーストします。
[edit] set chassis aggregated-devices ethernet device-count 1 set interfaces ge-5/0/3 gigether-options 802.3ad ae0 set interfaces ge-5/0/3 gigether-options 802.3ad primary set interfaces ge-5/1/2 gigether-options 802.3ad ae0 set interfaces ge-5/1/2 gigether-options 802.3ad backup set interfaces ae0 flexible-vlan-tagging set interfaces ae0 aggregated-ether-options link-protection set interfaces demux0 unit 100 vlan-id 100 set interfaces demux0 unit 100 demux-options underlying-interface ae0 set interfaces demux0 unit 100 family pppoe access-concentrator pppoe-server-1 set interfaces demux0 unit 100 family pppoe duplicate-protection set interfaces demux0 unit 100 family pppoe dynamic-profile pppoe-profile edit dynamic-profiles pppoe-profile edit interfaces pp0 unit $junos-interface-unit set pppoe-options underlying-interface $junos-underlying-interface set pppoe-options server set family inet unnumbered-address lo0.0 top
手順
次の例では、設定階層内のさまざまなレベルに移動する必要があります。その方法の詳細については、 設定モードでのCLIエディターの使用を参照してください。
集約されたイーサネット上の静的VLAN demuxインターフェイス上で、動的PPPoE加入者のリンク冗長性を設定するには:
ルーター上の集合型イーサネット デバイスの数を定義します。
[edit chassis] user@host# set aggregated-devices ethernet device-count 1
静的VLAN demux加入者インターフェイスの基盤となるインターフェイスとして機能するように、2リンク集約型イーサネット論理インターフェイスを設定します。この例では、LAGバンドルは、1対1のアクティブ/バックアップリンク冗長性に設定されています。MPCレベルでリンク冗長性をサポートするために、LAGバンドルは2つの異なるMPCのポートに接続します。
[edit interfaces] user@host# set ge-5/0/3 gigether-options 802.3ad ae0 user@host# set ge-5/0/3 gigether-options 802.3ad primary user@host# set ge-5/1/2 gigether-options 802.3ad ae0 user@host# set ge-5/1/2 gigether-options 802.3ad backup
集合型イーサネット論理インターフェイスでリンク保護を有効にし、シングルおよびデュアル(スタック)VLANタグのサポートを設定します。
[edit interfaces] user@host# set ae0 aggregated-ether-options link-protection user@host# set ae0 flexible-vlan-tagging
集合型イーサネット論理インターフェイス上でVLANデモクインターフェイスを設定します。
[edit interfaces] user@host# set demux0 unit 100 vlan-id 100 user@host# set demux0 unit 100 demux-options underlying-interface ae0
動的プロファイルを含め、VLAN demuxインターフェイスでPPPoEファミリー属性を設定します。
[edit interfaces] user@host# set demux0 unit 100 family pppoe access-concentrator pppoe-server-1 user@host# set demux0 unit 100 family pppoe duplicate-protection user@host# set demux0 unit 100 family pppoe dynamic-profile pppoe-profile
PPPoE 加入者インターフェイスを作成する動的プロファイルを設定します。
[edit dynamic-profiles pppoe-profile] user@host# edit interfaces pp0 unit $junos-interface-unit [edit dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set pppoe-options underlying-interface $junos-underlying-interface user@host# set pppoe-options server user@host# set family inet unnumbered-address lo0.0
結果
設定モードから、 コマンドを入力して、集約されたデバイス設定を show chassis
確認します。コマンドを入力して、インターフェイスの設定を show interfaces
確認します。コマンドを入力して、動的プロファイル設定を show dynamic-profiles
確認します。出力に意図した設定が表示されない場合は、この例の設定手順を繰り返して修正します。
[edit] user@host# show chassis aggregated-devices { ethernet { device-count 1; } }
[edit] user@host# show interfaces ge-5/0/3 { gigether-options { 802.3ad { ae0; primary; } } } ge-5/1/2 { gigether-options { 802.3ad { ae0; backup; } } } ae0 { flexible-vlan-tagging; aggregated-ether-options { link-protection; } } demux0 { unit 100 { vlan-id 100; demux-options { underlying-interface ae0; } family pppoe { access-concentrator pppoe-server-1 duplicate-protection; dynamic-profile pppoe-profile; } } }
[edit] user@host# show dynamic-profiles pppoe-profile { interfaces { pp0 { unit $junos-interface-unit { pppoe-options { underlying-interface $junos-underlying-interface; server; } family inet { unnumbered-address lo0.0; } } } } }
デバイスの設定が完了したら、設定モードから を入力します commit
。
検証
設定が正常に機能していることを確認するには、次のタスクを実行します。
集合型イーサネット・インターフェースの構成の検証
目的
インターフェイス値が設定と一致し、リンクがアップしており、トラフィックが流れているか確認します。
アクション
動作モードから、 コマンドを show interfaces redundancy
入力します。
user@host> show interfaces redundancy Interface State Last change Primary Secondary Current status ae0 On primary ge-5/0/3 ge-5/1/2 both up
動作モードから、 コマンドを show interfaces ae0
入力します。
user@host> show interfaces ae0 Physical interface: ae0, Enabled, Physical link is Up Interface index: 128, SNMP ifIndex: 606 Link-level type: Ethernet, MTU: 1522, Speed: 1Gbps, BPDU Error: None, MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled, Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0 Device flags : Present Running Interface flags: SNMP-Traps Internal: 0x4000 Current address: 00:00:5e:00:53:d0, Hardware address: 00:00:5e:00:53:d0 Last flapped : 2011-03-11 13:24:18 PST (2d 03:34 ago) Input rate : 1984 bps (2 pps) Output rate : 0 bps (0 pps) Logical interface ae0.32767 (Index 69) (SNMP ifIndex 709) Flags: SNMP-Traps 0x4004000 VLAN-Tag [ 0x0000.0 ] Encapsulation: ENET2 Statistics Packets pps Bytes bps Bundle: Input : 371259 2 46036116 1984 Output: 0 0 0 0 Protocol multiservice, MTU: Unlimited Flags: Is-Primary
意味
出力は show interfaces redundancy
、冗長リンク設定と、両方のリンクインターフェイスが立ち上がっていることを示しています。出力は show interfaces ae0
、集約されたイーサネットインターフェイスがアップしており、論理インターフェイスでトラフィックが受信されていることを示しています。
demux0インターフェイス設定の検証
目的
VLAN demuxインターフェイスに、設定されたPPPoEファミリー属性と、集約されたイーサネット・バンドル内のメンバー・リンクが表示されていることを確認します。
アクション
動作モードから、 コマンドを show interfaces demux0
入力します。
user@host> show interfaces demux0.100 Logical interface demux0.100 (Index 76) (SNMP ifIndex 61160) Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.100 ] Encapsulation: ENET2 Demux: Underlying interface: ae0 (Index 199) Link: ge-5/0/3 ge-5/1/2 Input packets : 2 Output packets: 18575 Protocol pppoe Dynamic Profile: pppoe-profile, Service Name Table: None, Max Sessions: 16000, Duplicate Protection: On, AC Name: pppoe-server-1
または、 を入力 show pppoe underlying-interfaces detail
して、設定されたすべての基本インターフェイスの状態とPPPoEファミリー設定を表示できます。また、出力は、VLAN ごとに PPPoE ネゴシエーションに関する情報も提供します。
意味
出力は、基になるインターフェイスの名前、集約されたバンドルのメンバー・リンク、およびPPPoEファミリー構成を示しています。出力は、トラフィックが論理インターフェイスに存在する場合のパケット数を示しています。