例:集合型イーサネットを介した動的基盤VLAN Demuxインターフェイス上での動的PPPoE加入者インターフェイスの設定
この例では、集約されたイーサネットバンドルを介して動的なPPPoE加入者インターフェイスを設定し、加入者リンクの冗長性を提供する方法を示しています。
要件
集合型イーサネットを介した VLAN デモックス インターフェイス上の PPPoE には、以下のハードウェアとソフトウェアが必要です。
MXシリーズ5Gユニバーサルルーティングプラットフォーム
MPC
Junos OSリリース11.2以降
この機能を設定する前に、デバイスの初期化以外の特別な設定は必要ありません。
概要
集約型イーサネットバンドルにより、イーサネットリンクで接続されたルーターとネットワークデバイス間のリンク冗長性が可能になります。この例では、中間の動的VLAN demuxインターフェイスを使用して、集合型イーサネットを介した動的PPPoE加入者のリンク冗長性を設定する方法を説明します。サンプルタスクには、2メンバーの集約型イーサネットバンドルの設定、PPPoE加入者インターフェイスの基礎となる動的VLAN demuxインターフェイスを確立する動的プロファイルの設定、動的PPPoE加入者インターフェイスを確立する動的プロファイルの設定が含まれます。
この例では、VLAN(vlan-profile)または S-VLAN(svlan-profile)デモックスインターフェイスのいずれかをインスタンス化するために、2つの異なる動的プロファイルが設定されています。これらのプロファイルは、PPPoEファミリーオプションを定義し、PPPoE加入者インターフェイスを作成する動的PPPoEプロファイル(pppoe-profile)を含みます。各プロファイルでは、動的に作成されるインターフェイスとVLAN識別子を表すために、Junos OS事前定義された変数が使用されます。これらの動的プロファイルには、以下の定義済み変数が含まれます。
$junos-interface-unit—動的VLAN demuxインターフェイスの論理ユニット番号を表します。この定義済みの変数は、加入者がログインすると、ルーターから提供されるユニット番号に動的に置き換えられます。$junos-interface-ifd-name—PPPoE 加入者インターフェイスが作成される基盤となる論理インターフェイスを表します。この定義済み変数は、加入者がログインすると、ルーターから提供される基盤となるインターフェイスの名前に動的に置き換えられます。$junos-vlan-id—VLAN 識別子を表します。この定義済み変数は、加入者がログインすると動的にVLAN IDに置き換えられます。VLAN IDは、集合型イーサネット設定で指定されたVLAN範囲内に割り当てられます。S-VLAN デモックスの場合、$junos-vlan-idは内部VLAN識別子を表します。$junos-stacked-vlan-id—スタックされたVLANの外部VLAN識別子を表します。この定義済み変数は、加入者がログインすると動的にVLAN IDに置き換えられます。VLAN IDは、集合型イーサネット設定で指定されたVLAN範囲内に割り当てられます。この変数は、VLAN demux設定には使用されません。
動的PPPoEプロファイル(pppoe-profile)は、PPPoE加入者インターフェイスを作成します。また、ルーターをPPPoEサーバーとして機能するように設定し、インターフェイスに明示的なIPアドレスを割り当てることなく、指定されたアドレスからローカルアドレスを取得できるようにします。 pppoe-profile 動的プロファイルは、動的、中間VLANおよびS-VLAN demuxインターフェイスに割り当てられます。この動的プロファイルには、以下の定義済み変数が含まれます。
$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 edit interfaces ae0 set flexible-vlan-tagging set aggregated-ether-options link-protection edit auto-configure set vlan-ranges dynamic-profile vlan-profile accept pppoe set vlan-ranges dynamic-profile vlan-profile ranges 1-4094 set stacked-vlan-ranges dynamic-profile svlan-profile accept pppoe set stacked-vlan-ranges dynamic-profile svlan-profile ranges 1-4094,1-4094 top 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 edit dynamic-profiles vlan-profile interfaces demux0 edit unit $junos-interface-unit set vlan-id $junos-vlan-id set demux-options underlying-interface $junos-interface-ifd-name set family pppoe access-concentrator pppoe-server-1 set family pppoe duplicate-protection set family pppoe dynamic-profile pppoe-profile top edit dynamic-profiles svlan-profile interfaces demux0 edit unit $junos-interface-unit set vlan-tags outer $junos-stacked-vlan-id set vlan-tags inner $junos-vlan-id set demux-options underlying-interface $junos-interface-ifd-name set family pppoe access-concentrator pppoe-server-1 set family pppoe duplicate-protection set family pppoe dynamic-profile pppoe-profile 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範囲や動的プロファイルなど、VLANとS-VLANを自動的に設定するためのパラメーターを設定します。
[edit interfaces] user@host# set ae0 auto-configure vlan-ranges dynamic-profile vlan-profile accept pppoe user@host# set ae0 auto-configure vlan-ranges dynamic-profile vlan-profile ranges 1-4094 user@host# set ae0 auto-configure stacked-vlan-ranges dynamic-profile svlan-profile accept pppoe user@host# set ae0 auto-configure stacked-vlan-ranges dynamic-profile svlan-profile ranges 1-4094,1-4094
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
PPPoEファミリー属性を含む、VLAN demux基盤インターフェイスを作成する動的プロファイルを設定します。
[edit dynamic-profiles vlan-profile] user@host# edit interfaces demux0 unit $junos-interface-unit [edit dynamic-profiles vlan-profile interfaces demux0 unit "$junos-interface-unit"] user@host# set vlan-id $junos-vlan-id user@host# set demux-options underlying-interface $junos-interface-ifd-name user@host# set family pppoe access-concentrator pppoe-server-1 user@host# set family pppoe duplicate-protection user@host# set family pppoe dynamic-profile pppoe-profile
PPPoEファミリー属性を含む、S-VLAN demux基盤となるインターフェイスを作成する動的プロファイルを設定します。
[edit dynamic-profiles svlan-profile] user@host# edit interfaces demux0 unit $junos-interface-unit [edit dynamic-profiles svlan-profile interfaces demux0 unit "$junos-interface-unit"] user@host# set vlan-tags outer $junos-stacked-vlan-id user@host# set vlan-tags inner $junos-vlan-id user@host# set demux-options underlying-interface $junos-interface-ifd-name user@host# set family pppoe access-concentrator pppoe-server-1 user@host# set family pppoe duplicate-protection user@host# set family pppoe dynamic-profile pppoe-profile
結果
設定モードから、 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;
}
auto-configure {
vlan-ranges {
dynamic-profile {
vlan-profile {
accept pppoe;
vlan-ranges 1–4094};
}
}
}
stacked-vlan-ranges {
dynamic-profile {
svlan-profile {
accept pppoe;
vlan-ranges 1–4094,1–4094;
}
}
}
}
}
[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;
}
}
}
}
}
vlan-profile {
interfaces {
demux0 {
unit "$junos-interface-unit" {
vlan-id "$junos-vlan-id";
demux-options {
underlying-interface "$junos-interface-ifd-name";
}
family pppoe {
access-concentrator pppoe-server-1;
duplicate-protection;
dynamic-profile pppoe-profile;
}
}
}
}
}
svlan-profile {
interfaces {
demux0 {
unit "$junos-interface-unit" {
vlan-tags outer "$junos-stacked-vlan-id" inner "$junos-vlan-id";
demux-options {
underlying-interface "$junos-interface-ifd-name";
}
family pppoe {
access-concentrator pppoe-server-1;
duplicate-protection;
dynamic-profile pppoe-profile;
}
}
}
}
}
デバイスの設定が完了したら、設定モードから 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出力は、集合型イーサネットインターフェイスが稼働しており、論理インターフェイスでトラフィックを受信していることを示しています。