例:動的VLAN Demuxインターフェイスを介した動的IP Demux加入者インターフェイス
この例では、動的VLAN demuxインターフェイス上で動的IP demuxインターフェイスを設定する方法を説明します。
要件
開始する前に、 必ずDHCPリレー または DHCPローカルサーバーを設定してください。これらのコンポーネントのいずれかの設定については、 拡張DHCPリレーエージェントの概要 またはレ ガシーDHCPと拡張DHCPの違いについてを参照してください。
また、開始する前に、VLAN デモックスインターフェイスの概念情報を以下を参照してください。
概要
静的または動的VLAN demuxインターフェイスにスタックされたIP demuxインターフェイスを使用して、加入者インターフェイスを作成できます。IP demux インターフェイスは、IP アドレスに基づいてアクセス ネットワーク内の加入者を一意に識別するために使用されます。
設定
- 加入者アクセス インターフェイスの準備
- ループバックインターフェイスの準備
- 単一タグ付き VLAN を動的に作成する動的プロファイルの設定
- IP デモックスインターフェイスを動的に作成するための動的プロファイルの設定
加入者アクセス インターフェイスの準備
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の
vlan-rangesスタンザを編集します。[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 デモックスインターフェイスを動的に作成するための動的プロファイルの設定
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 デモックスインターフェイスを自動的に作成するには、次の手順に従います。
IP デモックスインターフェイスを動的に作成するための動的プロファイルを作成します。
[edit] user@host# edit dynamic-profiles DHCP-IP-Demux
動的プロファイルがdemux0インターフェイスを使用することを指定します。
[edit dynamic-profiles DHCP-IP-Demux] user@host# edit interfaces demux0
動的プロファイルが、動的IP デモックスインターフェイスにインターフェイス単位値を適用することを指定します。
[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 デモックスインターフェイスの論理基盤インターフェイスを指定します。
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-underlying-interface
動的IP デモックスインターフェイスのプロトコルファミリー情報を指定します。
[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 demuxインターフェイスの優先ソースアドレスとして、ループバックインターフェイスを番号なしアドレスとして指定し、demuxインターフェイスの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