例:DHCP ローカル サーバーを使用した集合型イーサネット基盤インターフェイス上での IPv4 ダイナミック VLAN デモクス インターフェイスの設定
この例では、基盤となるインターフェイスとして集合型イーサネットを使用して、IPv4 VLANデモマックスインターフェイスの動的作成を設定する方法を示します。DHCP ローカル サーバー構成では、DHCP ローカル サーバー構成の集合型イーサネット インターフェイスを一覧表示することで、加入者と VLAN デモクス インターフェイスの関連付けを可能にします。
集合型イーサネット物理インターフェイス上のVLAN demux加入者インターフェイスは、MPCのみがインストールされているMXシリーズルーターでのみサポートされています。ルーターにMPCに加えて他のカードがある場合、CLIは設定を受け入れますが、加入者インターフェイスが起動されるとエラーが報告されます。
動的VLAN demuxインターフェイスで動的加入者を設定するには:
動的に作成された VLAN デモクス インターフェイスに使用する予定の基になる集約型イーサネット インターフェイスで、VLAN タギングと VLAN 自動設定を有効にします。
interfaces { ae1 { vlan-tagging; auto-configure { vlan-ranges { dynamic-profile auto-vlanDemux-profile { accept inet; ranges { any; } } } } aggregated-ether-options { minimum-links 1; lacp { active; periodic slow; link-protection { non-revertive; } } } } }
集合型イーサネット・インターフェースの一部であるギガビット・イーサネット・インターフェースを定義します。
interfaces { ge-5/0/0 { gigether-options { 802.3ad ae1; } } ge-5/2/0 { gigether-options { 802.3ad ae1; } } }
ループバック インターフェイスを定義します。
interfaces { lo0 { unit 0 { family inet { address 127.16.1.1/32; } } } }
加入者アクセス用の動的プロファイルを設定します。
dynamic-profiles { user-profile { interfaces { "$junos-interface-ifd-name" { unit "$junos-underlying-interface-unit" { family inet; } } } } }
VLAN demux インターフェイス作成用の動的プロファイルを設定します。
dynamic-profiles { auto-vlanDemux-profile { interfaces { demux0 { unit "$junos-interface-unit" { vlan-id "$junos-vlan-id"; demux-options { underlying-interface "$junos-interface-ifd-name"; } family inet { filter { input rate_limit; output rate_limit; } unnumbered-address lo0.0 preferred-source-address 127.16.1.1; } } } } } }
加入者インターフェイスを動的に作成するために使用するアクセス方法を設定します。以下のスタンザは、動的に作成された加入者インターフェイスで使用する集合型イーサネットインターフェイス(
ae1.0
)を指定します。system { services { dhcp-local-server { group myDhcpGroup { authentication { password test; username-include { user-prefix igmp-user1; } } dynamic-profile user-profile; interface ae1.0; } } } }
集合型イーサネットインターフェイスを使用する代わりに、次のように加入者インターフェイスで使用するデバイスとして指定
demux0
することもできます。メモ:demux インターフェイスとユニット値は動的に作成されるため、demux0 インターフェイスにはユニット番号は指定されません。
system { services { dhcp-local-server { group myDhcpGroup { authentication { password test; username-include { user-prefix igmp-user1; } } dynamic-profile user-profile; interface demux0; } } } }