例:集合型イーサネットを介した静的基盤VLAN Demuxインターフェイス上での動的PPPoE加入者インターフェイスの設定
この例では、集約されたイーサネットバンドルを介して動的なPPPoE加入者インターフェイスを設定し、加入者リンクの冗長性を提供する方法を示しています。
要件
集合型イーサネットを介した VLAN デモックス インターフェイス上の PPPoE には、以下のハードウェアとソフトウェアが必要です。
MXシリーズ5Gユニバーサルルーティングプラットフォーム
MPC
Junos OSリリース11.2以降
この機能を設定する前に、デバイスの初期化以外の特別な設定は必要ありません。
概要
集約型イーサネットバンドルにより、イーサネットリンクで接続されたルーターとネットワークデバイス間のリンク冗長性が可能になります。この例では、集合型イーサネットインターフェイス( ae0)と中間静的VLAN demuxインターフェイス( demux0.100)を介した動的PPPoE加入者向けのリンク冗長性を設定する方法を説明します。サンプルタスクには、2メンバーの集約型イーサネットバンドルの設定、PPPoE加入者インターフェイスの基盤となる静的VLAN demuxインターフェイスの設定、動的PPPoE加入者インターフェイスを確立する動的プロファイルの設定が含まれます。
動的PPPoEプロファイル(pppoe-profile)は、PPPoE加入者インターフェイスを作成します。また、ルーターをPPPoEサーバーとして機能するように設定し、インターフェイスに明示的なIPアドレスを割り当てることなく、指定されたアドレスからローカルアドレスを取得できるようにします。pppoe-profile動的プロファイルは、PPPoEファミリー(family pppoe)属性で設定された静的な中間VLAN demuxインターフェイス(demux0.100)に割り当てられます。この動的プロファイルには、以下の定義済み変数が含まれます。
$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 demuxインターフェイスを設定します。
[edit interfaces] user@host# set demux0 unit 100 vlan-id 100 user@host# set demux0 unit 100 demux-options underlying-interface ae0
動的プロファイルを含む、VLAN デモックスインターフェイス上の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ファミリーの設定が表示されます。出力は、論理インターフェイス上にトラフィックが存在する場合のパケット数を示しています。