例:同じ VLAN Demux インターフェイス上での動的 DHCP IP Demux および PPPoE Demux インターフェイスの同時設定
この例では、同じ動的 VLAN demux インターフェイス上で、動的 DHCP IP demux と PPPoE demux インターフェイスの両方を設定する方法を示します。この例では、IPv4の設定を提供しています。ただし、IPv6 アドレッシングを使用して、同じ VLAN インターフェイス上でイーサネット/DHCP および PPPoE インターフェイスを介して同時 IP を設定することもできます。
要件
開始する前に、DHCP リレーまたは DHCP ローカル サーバーのいずれかを設定してください。これらのコンポーネントのいずれかを設定する方法については、 拡張DHCPリレーエージェントの概要 または レガシーDHCPと拡張DHCPの違いについてを参照してください。
概要
ステートメントの family pppoe
導入により、PPPoEは排他的カプセル化設定として扱われることはなく、複数のプロトコルインターフェイススタックでVLANインターフェイスを設定できます。例えば、IP over Ethernet/DHCP および PPPoE インターフェイスを単一の VLAN インターフェイス上で同時に設定できます。
構成
- 加入者アクセス インターフェイスの準備
- ループバック インターフェイスの準備
- 動的な単一タグ付き VLAN を作成するための動的プロファイルの設定
- 動的デュアルタグ付き VLAN を作成するための動的プロファイルの設定
- 動的 IP Demux インターフェイスを作成するための動的プロファイルの設定
- 動的 PPPoE インターフェイスを作成するための動的プロファイルの設定
加入者アクセス インターフェイスの準備
CLI クイックコンフィギュレーション
加入者がルーターにアクセスする集合型イーサネットインターフェイスを迅速に設定するには、次の手順に従います。
[edit] set chassis aggregated-devices ethernet device-count 1 set interfaces ge-5/0/9 gigether-options 802.3ad ae0 set interfaces ge-5/1/9 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux accept any set interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux ranges ranges 1000-1500 set interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux accept any set interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux ranges 1501-2000,any set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp link-protection
手順
同じVLANインターフェイス上で複数のプロトコルインターフェイススタックを同時に設定する場合、DHCPまたはPPPoEクライアントが最初にルーターにアクセスする物理インターフェイスを設定する必要があります。受信クライアントと同じVLANタグをインターフェイスに指定することをお勧めします。この例では、柔軟なVLANタグを使用して、同じイーサネットポート上の論理インターフェイスで802.1Q VLANシングルタグとデュアルタグフレームの送信を同時にサポートします。
動的 VLAN を自動的に作成するには、インターフェイスに VLAN 範囲タイプ(単一またはスタック)、動的プロファイルリファレンス、VLAN で使用する特定の範囲も含める必要があります。
加入者アクセス用の物理インターフェイスを設定するには:
加入者が最初にルーターにアクセスする物理インターフェイスにアクセスします。
[edit] user@host# edit interfaces ge-5/0/9
物理インターフェイスが属する集合型イーサネットインターフェイスを指定します。
[edit interfaces ge-5/0/9] user@host# set gigether-options 802.3ad ae0
集約されたイーサネット・バンドルに割り当てる各インターフェイスについて、ステップ1とステップ2を繰り返します。
[edit] user@host# set interfaces ge-5/1/9 gigether-options 802.3ad ae0
集合型イーサネット インターフェイスにアクセスします。
[edit] user@host# edit interfaces ae0
集合型イーサネット・インターフェースで使用する VLAN タギングを指定します。
[edit interfaces ae0] user@host# set flexible-vlan-tagging
スタンザを
auto-configure
編集して、VLANを自動的に設定します。[edit interfaces ae0] user@host# edit auto-configure
vlan-ranges
単一タグ付き VLAN のスタンザを編集します。[edit interfaces ae0 auto-configure] user@host# edit vlan-ranges
単一タグ付き VLAN を動的に作成するためにインターフェイスに使用する動的 VLAN プロファイルを指定します。
[edit interfaces ae0 auto-configure vlan-ranges] user@host# edit dynamic-profile Auto-VLAN-Demux
VLANプロファイルが受け入れるVLANイーサネットパケットタイプを指定します。
[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set accept any
動的プロファイルで使用する VLAN 範囲を指定します。次の例では、VLAN ID の下限値を 1000、上位 VLAN ID の上限を 1500 に指定しています。
[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set ranges 1000-1500
stacked-vlan-ranges
デュアルタグ付き VLAN のスタンザを編集します。[edit interfaces ae0 auto-configure] user@host# edit stacked-vlan-ranges
デュアルタグ付き VLAN を動的に作成するためにインターフェイスに使用する動的 VLAN プロファイルを指定します。
[edit interfaces ae0 auto-configure stacked-vlan-ranges] user@host# edit dynamic-profile Auto-Stacked-VLAN-Demux
スタックされた VLAN プロファイルが受け入れる VLAN イーサネット パケット タイプを指定します。
[edit interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux] user@host# set accept any
動的プロファイルで使用する外側および内側のスタック VLAN 範囲を指定します。以下の例では、1501~2000の外側のスタックVLAN ID範囲(単一タグVLANで重複するVLAN IDを回避するため)と、任意の内部スタックVLAN ID範囲(内側スタックVLAN IDの範囲は1~4094)を指定しています。
[edit interfaces ge-5/0/9 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux] user@host# set ranges 1501-2000,any
(オプション)集合型イーサネット・インタフェースでLACPパケットの送信を有効にします。
[edit interfaces ae0] user@host# set aggregated-ether-options lacp active
集合型イーサネット・インターフェースがリンク・プロテクションを使用することを指定します。
[edit interfaces ae0] user@host# set aggregated-ether-options link-protection
ループバック インターフェイスの準備
CLI クイックコンフィギュレーション
この例で必要なループバックインターフェイスを迅速に設定するには、次の手順に従います。
[edit] set interfaces lo0.0 unit 0 family inet address 100.100.100.1/32
手順
動的に作成されるインターフェイスの番号なしアドレスおよび優先ソースアドレスとして使用するために、ループバックインターフェイスを設定する必要があります。
この例で必要なループバックインターフェイスを設定するには:
ループバックインターフェイスを設定します。
[edit] user@host# edit interfaces lo0.0
ループバックインターフェイスがinetパケットを受け入れることを指定します。
[edit interfaces lo0 unit 0] user@host# edit family inet
ループバックインターフェイスのIPアドレスを指定します。
[edit interfaces lo0 unit 0 family inet] user@host# set address 100.100.100.1/32
動的な単一タグ付き VLAN を作成するための動的プロファイルの設定
CLI クイックコンフィギュレーション
例の単一タグ付き VLAN を動的に作成するために使用する動的プロファイルを迅速に設定するには、次の手順に示します。
[edit] set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux-source inet set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit proxy-arp set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-id $junos-vlan-id set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux options underlying-interface $junos-interface-ifd-name set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred source-address 100.100.100.1 set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe duplicate-protection set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe dynamic-profile PPP-Base-PAP
手順
動的DHCP IP demuxと動的PPPoEインターフェイスの両方が、単一タグ付きVLANインターフェイス上に同時に存在するためには、まずVLANインターフェイスが存在する必要があります。
VLANインターフェイスを自動的に作成する動的プロファイルを設定するには:
VLAN インターフェイスを自動的に作成するための動的プロファイルを作成します。
[edit] user@host# edit dynamic-profiles Auto-VLAN-Demux
動的 VLAN プロファイルで demux インターフェイスを使用することを指定します。
[edit dynamic-profiles “Auto-VLAN-Demux”] user@host# edit interfaces demux0
動的プロファイルに、demux インターフェイスユニット値を動的VLANに適用することを指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
demux ソースが IPv4(inet)パケットを受け入れることを指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-source inet
(オプション)動的に作成された各インターフェイスが、ARP要求のターゲットアドレスにアクティブなルートがある限り、任意のARP要求に応答するように指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
VLAN ID を動的に作成することを指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set vlan-id $junos-vlan-id
動的VLANの論理基盤インターフェイスを指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-interface-ifd-name
VLAN デモマックス インターフェイスが、IP over Ethernet/DHCP 加入者向けに inet ファミリー パケットを受け入れることを指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family inet
ループバックアドレスを、inetファミリーの番号なしアドレスと優先ソースアドレスとして指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 100.100.100.1
VLAN demux インターフェイスが PPPoE 加入者向けの pppoe ファミリー パケットを受け入れることを指定します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family pppoe
同じ VLAN インターフェイス上の同じ PPPoE 加入者に対して、複数の PPPoE セッションが作成されないようにします。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set duplicate-protection
ダイナミックPPPインターフェイスプロファイルを任意の動的PPPインターフェイスに適用します。
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set dynamic-profile PPP-Base-PAP
動的デュアルタグ付き VLAN を作成するための動的プロファイルの設定
CLI クイックコンフィギュレーション
例のスタック/デュアルタグ付きVLANを動的に作成するために使用する動的プロファイルを迅速に設定するには、
[edit] set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux-source inet set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit proxy-arp set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-tags outer $junos-stacked-vlan-id set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-tags inner $junos-vlan-id set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux options underlying-interface $junos-interface-ifd-name set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred source-address 100.100.100.1 set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe duplicate-protection set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe dynamic-profile PPP-Base-PAP
手順
動的DHCP IP demuxと動的PPPoEインターフェイスの両方がVLANインターフェイス上に同時に存在するためには、まずVLANインターフェイスが存在する必要があります。
スタック/デュアルタグ付き VLAN インターフェイスを自動的に作成する動的プロファイルを設定するには:
VLAN インターフェイスを自動的に作成するための動的プロファイルを作成します。
[edit] user@host# edit dynamic-profiles Auto-Stacked-VLAN-Demux
動的 VLAN プロファイルで demux インターフェイスを使用することを指定します。
[edit dynamic-profiles “Auto-Stacked-VLAN-Demux”] user@host# edit interfaces demux0
動的プロファイルに、demux インターフェイスユニット値を動的VLANに適用することを指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
demux ソースが IPv4(inet)パケットを受け入れることを指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-source inet
(オプション)動的に作成された各インターフェイスが、ARP要求のターゲットアドレスにアクティブなルートがある限り、任意のARP要求に応答するように指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
外部 VLAN ID が動的に作成されるように指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set vlan-id -tags outer $junos-stacked-vlan-id
内部 VLAN ID が動的に作成されるように指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set vlan-id -tags inner $junos-vlan-id
動的VLANの論理基盤インターフェイスを指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-interface-ifd-name
VLAN デモマックス インターフェイスが、IP over Ethernet/DHCP 加入者向けに inet ファミリー パケットを受け入れることを指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family inet
ループバックアドレスを、inetファミリーの番号なしアドレスと優先ソースアドレスとして指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 100.100.100.1
VLAN demux インターフェイスが PPPoE 加入者向けの pppoe ファミリー パケットを受け入れることを指定します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family pppoe
同じ demux 基盤インターフェイス上で、別の動的 PPPoE 論理インターフェイスがアクティブ化されないようにします。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set duplicate-protection
ダイナミックPPPインターフェイスプロファイルを任意の動的PPPインターフェイスに適用します。
[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set dynamic-profile PPP-Base-PAP
動的 IP Demux インターフェイスを作成するための動的プロファイルの設定
CLI クイックコンフィギュレーション
例の DHCP IP demux インターフェイスを動的に作成するために使用する動的プロファイルを迅速に設定するには、次の手順に従います。
[edit] set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit proxy-arp set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit demux-options underlying-interface $junos-underlying-interface set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit family inet demux-source $junos-subscriber-ip-address set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred-source-address 100.100.100.1
手順
IP demux インターフェイスを自動的に作成する動的プロファイルを設定するには:
IP demux インターフェイスを動的に作成するための動的プロファイルを作成します。
[edit] user@host# edit dynamic-profiles DHCP-IP-Demux
動的プロファイルで demux0 インターフェイスを使用することを指定します。
[edit dynamic-profiles DHCP-IP-Demux] user@host# edit interfaces demux0
動的プロファイルが、動的 PPPoE インターフェイスにインターフェイスユニット値を適用することを指定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
(オプション)ルーターがARPリクエストのターゲットアドレスへのアクティブなルートを持っている限り、任意のARP要求に応答するようにルーターを設定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
動的 IP demux インターフェイスの論理基盤インターフェイスを指定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-underlying-interface
動的 IP demux インターフェイスのプロトコル ファミリー情報を指定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family inet
受信加入者 IP アドレスから取得する demux 送信元アドレスを指定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set demux-source $junos-subscriber-ip-address
ループバックインターフェイスを番号なしアドレスとして指定し、デモクインターフェイスIPアドレスを動的IPデモマックスインターフェイスの優先ソースアドレスとして指定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 100.100.100.1
動的 PPPoE インターフェイスを作成するための動的プロファイルの設定
CLI クイックコンフィギュレーション
例の PPPoE インターフェイスを動的に作成するために使用する動的プロファイルを迅速に設定するには、
[edit] set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit ppp-options pap set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit pppoe-options underlying-interface $junos-underlying-interface server set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit no-keepalives set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit family inet unnumbered-address lo0.0
手順
PPPoE インターフェイスを自動的に作成するための動的プロファイルを作成します。
[edit] user@host# edit dynamic-profiles PPP-Base-PAP
動的 PPPoE プロファイルで pp0 インターフェイスを使用することを指定します。
[edit dynamic-profiles PPP-Base-PAP] user@host# edit interfaces pp0
動的プロファイルが、動的 PPPoE インターフェイスにインターフェイスユニット値を適用することを指定します。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0] user@host# edit unit $junos-interface-unit
動的に作成された PPPoE インターフェイスに PAP 認証を使用することを指定します。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set ppp-options pap
動的PPPoEインターフェイスの論理基礎インターフェイスを指定します。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set pppoe-options underlying-interface $junos-underlying-interface
ルーターが PPPoE サーバーとして機能することを指定します。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set pppoe-options server
(オプション)動的 PPPoE インターフェイスでのキープアライブ メッセージの送信を無効にします。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set no-keepalives
動的PPPoEインターフェイスのプロトコルファミリー情報を指定します。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# edit family inet
動的 PPPoE インターフェイスの番号なしアドレスとしてループバック インターフェイスを指定します。
[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set unnumbered-address lo0.0