例:SSM マッピングの設定
SSM マッピングでは、すべてのホストが IGMPv3 をサポートしているわけではありません。SSM マッピングは、IGMPv1 または IGMPv2 メンバーシップ レポートを IGMPv3 レポートに変換します。これにより、IGMPv1 または IGMPv2 を実行しているホストは、ホストが IGMPv3 に移行するまで SSM に参加できます。
SSM マッピングは、SSM アドレッシング規則(IPv4 の場合は 232/8、IPv6 の場合は ff30::/32~ff3F::/32)に準拠するグループ アドレスすべてではなく、ポリシーに一致するすべてのグループ アドレスに適用されます。
両方のアドレス ファミリーで SSM サポートが必要な場合は、IPv4 と IPv6 に個別の SSM マップを使用することをお勧めします。IPv4 と IPv6 の両方のアドレスを含む SSM マップを(IGMP を使用して)IPv4 コンテキストのインターフェイスに適用する場合、リスト内の IPv4 アドレスのみが使用されます。そのようなアドレスがない場合は、アクションは実行されません。同様に、IPv4 アドレスと IPv6 アドレスの両方を含む SSM マップを(MLD を使用して)IPv6 コンテキストのインターフェイスに適用する場合、リスト内の IPv6 アドレスのみが使用されます。そのようなアドレスがない場合は、アクションは実行されません。
この例では、IGMPv3 に変換するグループ アドレスに一致するポリシーを作成します。次に、これらのグループ アドレスが見つかるソース アドレスにポリシーを関連付ける SSM マップを定義します。最後に、SSM マップを 1 つ以上の IGMP(IPv4 用)または MLD(IPv6 用)インターフェイスに適用します。
ssm-policy-example という名前の SSM ポリシーを作成します。ポリシー条件は、IPv4 SSM グループ アドレス 232.1.1.1/32 および IPv6 SSM グループ アドレス ff35::1/128 と一致します。その他のアドレスはすべて拒否されます。
user@router1# set policy-options policy-statement ssm-policy-example term A from route-filter 232.1.1.1/32 exact user@router1# set policy-options policy-statement ssm-policy-example term A then accept user@router1# set policy-options policy-statement ssm-policy-example term B from route-filter ff35::1/128 exact user@router1# set policy-options policy-statement ssm-policy-example term B then accept
設定がコミットされた後、 show configuration policy-options コマンドを使用してポリシー設定を検証します。
user@host> show configuration policy-options
[edit policy-options] policy-statement ssm-policy-example { term A { from { route-filter 232.1.1.1/32 exact; } then accept; } term B { from { route-filter ff35::1/128 exact; } then accept; } then reject; }
グループ アドレスは、SSM マッピングが実行されるように設定されたポリシーと一致する必要があります。
ポリシーを適用し、送信元アドレスをマルチキャスト ルーティング オプションとして設定することで、 ssm-map-ipv6-example と ssm-map-ipv4-example と呼ばれる 2 つの SSM マップを定義します。
user@host# set routing-options multicast ssm-map ssm-map-ipv6-example policy ssm-policy-example user@host# set routing-options multicast ssm-map ssm-map-ipv6-example source fec0::1 fec0::12 user@host# set routing-options multicast ssm-map ssm-map-ipv4-example policy ssm-policy-example user@host# set routing-options multicast ssm-map ssm-map-ipv4-example source 10.10.10.4 user@host# set routing-options multicast ssm-map ssm-map-ipv4-example source 192.168.43.66
設定がコミットされた後、 show configuration routing-options コマンドを使用してポリシー設定を検証します。
user@host> show configuration routing-options
[edit routing-options] multicast { ssm-map ssm-map-ipv6-example { policy ssm-policy-example; source [ fec0::1 fec0::12 ]; } ssm-map ssm-map-ipv4-example { policy ssm-policy-example; source [ 10.10.10.4 192.168.43.66 ]; } }
IPv4 と IPv6 には個別の SSM マップを推奨します。
IPv4-to-IGMP インターフェイスに SSM マップを適用し、IPv6-to-MLD インターフェイス用の SSM マップを適用します。
user@host# set protocols igmp interface fe-0/1/0.0 ssm-map ssm-map-ipv4-example user@host# set protocols mld interface fe-0/1/1.0 ssm-map ssm-map-ipv6-example
設定がコミットされた後、 show configuration protocol コマンドを使用して IGMP および MLD プロトコル設定を検証します。
user@router1> show configuration protocol
[edit protocols] igmp { interface fe-0/1/0.0 { ssm-map ssm-map-ipv4-example; } } mld { interface fe-/0/1/1.0 { ssm-map ssm-map-ipv6-example; } }
show igmp インターフェイスと show mld interface コマンドを使用して、SSM マップがインターフェイスに適用されていることを確認します。
user@host> show igmp interface fe-0/1/0.0 Interface: fe-0/1/0.0 Querier: 192.168.224.28 State: Up Timeout: None Version: 2 Groups: 2 SSM Map: ssm-map-ipv4-example
user@host> show mld interface fe-0/1/1.0 Interface: fe-0/1/1.0 Querier: fec0:0:0:0:1::12 State: Up Timeout: None Version: 2 Groups: 2 SSM Map: ssm-map-ipv6-example