例:動的VLAN Demuxインターフェイス上の動的IP Demux加入者インターフェイス
この例では、動的VLAN demuxインターフェイス上で動的IP demuxインターフェイスを設定する方法を説明します。
要件
開始する前に、 DHCP リレー または DHCP ローカル サーバーのいずれかを設定してください。これらのコンポーネントのいずれかを設定する方法については、 拡張DHCPリレーエージェントの概要 または レガシーDHCPと拡張DHCPの違いについてを参照してください。
また、開始する前に、 のVLAN demuxインターフェイスに関する概念情報を参照してください。
概要
静的または動的VLAN demuxインターフェイス上にスタックされたIP demuxインターフェイスを使用して、加入者インターフェイスを作成できます。IP demux インターフェイスは、IP アドレスに基づいてアクセス ネットワーク内の加入者を一意に識別するために使用されます。
構成
- 加入者アクセス インターフェイスの準備
- ループバック インターフェイスの準備
- 単一タグ付き VLAN を動的に作成する動的プロファイルの設定
- IP Demux インターフェイスを動的に作成する動的プロファイルの設定
加入者アクセス インターフェイスの準備
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 inet set interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux ranges 500-1000 set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp link-protection
手順
クライアントが最初にルーターにアクセスするインターフェイスを設定する必要があります。受信クライアントと同じVLANタグをインターフェイスに指定することをお勧めします。この例では、柔軟なVLANタグを使用して、同じイーサネットポート上の論理インターフェイスで802.1Q VLANシングルタグとデュアルタグフレームの送信を同時にサポートします。
動的 VLAN を自動的に作成する場合は、インターフェイスに VLAN 範囲タイプ(単一またはスタック)を含め、VLAN で使用する特定の範囲を含める必要があります。
加入者アクセス用のインターフェイスを設定するには:
ルーター上の集合型イーサネット・インターフェースの数を設定します。
[edit] user@host# set chassis aggregated-devices ethernet device-count 1
加入者が最初にルーターにアクセスする物理インターフェイスにアクセスします。
[edit] user@host# edit interfaces ge-5/0/9
物理インターフェイスが属する集合型イーサネットインターフェイスを指定します。
[edit interfaces ge-5/0/9] user@host# set gigether-options 802.3ad ae0
集約されたイーサネット・バンドルに割り当てる各インターフェイスについて、ステップ2とステップ3を繰り返します。
[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 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 inet
動的プロファイルで使用する VLAN 範囲を指定します。以下の例では、VLAN ID の下限値を 500 に、上位 VLAN ID の上限を 1000 に指定しています。
[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set ranges 500-1000
(オプション)集合型イーサネット・インタフェースでLACPパケットの送信を有効にします。
[edit interfaces ae0] user@host# set aggregated-ether-options lacp active
集合型イーサネット・インターフェースがリンク・プロテクションを使用することを指定します。
[edit interfaces ae0] user@host# set aggregated-ether-options lacp link-protection
ループバック インターフェイスの準備
CLI クイックコンフィギュレーション
この例で必要なループバックインターフェイスを迅速に設定するには、次の手順に従います。
[edit] set interfaces lo0.0 unit 0 family inet address 198.51.100.100/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 198.51.100.100/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 198.51.100.100
手順
動的 IP demux インターフェイスを動的 VLAN demux インターフェイス上に配置するには、まず VLAN インターフェイスが存在する必要があります。
VLAN demux インターフェイスを設定する動的プロファイルでは、ユニット、基盤となるインターフェイス名、VLAN ID の変数を指定する必要があります。動的VLAN demuxインターフェイスは、特定の加入者を関連付けて、個々の回線をVLAN IDで分離します。
動的プロファイルを設定し、動的VLAN demuxインターフェイスにアタッチして、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 demux インターフェイスが IPoE/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 198.51.100.100
IP Demux インターフェイスを動的に作成する動的プロファイルの設定
CLI クイックコンフィギュレーション
例の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 198.51.100.100
手順
IP demux インターフェイスを設定する動的プロファイルでは、ユニット、基盤となるインターフェイス名、IP アドレスの変数を指定する必要があります。動的 IP demux インターフェイスは、特定の加入者を関連付けて、個々の回線を IP アドレスで区切ります。
動的プロファイルを設定し、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
動的プロファイルが、動的 IP demux インターフェイスにインターフェイスユニット値を適用することを指定します。
[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 198.51.100.100