Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring SSM Maps for Different Groups to Different Sources

    Multiple SSM Maps and Groups for Interfaces

    You can configure multiple source-specific multicast (SSM) maps so that different groups map to different sources, which enables a single multicast group to map to different sources for different interfaces.

    Example: Configuring Multiple SSM Maps Per Interface

    This example shows how to assign more than one SSM map to an IGMP interface.

    Requirements

    This example requires Junos OS Release 11.4 or later.

    Overview

    In this example, you configure a routing policy, POLICY-ipv4-example1, that maps multicast group join messages over an IGMP logical interface to IPv4 multicast source addresses based on destination IP address as follows:

    Routing Policy Name

    Multicast Group Join Messages for a Route Filter at This Destination Address

    Multicast Source Addresses

    POLICY-ipv4-example1 term 1

    232.1.1.1

    10.10.10.4,
    192.168.43.66

    POLICY-ipv4-example1 term 2

    232.1.1.2

    10.10.10.5,
    192.168.43.67

    You apply routing policy POLICY-ipv4-example1 to IGMP logical interface fe-0/1/0.0.

    Configuration

    The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see the CLI User Guide.

    To configure this example, perform the following task:

    CLI Quick Configuration

    To quickly configure this example, copy the following configuration commands into a text file, remove any line breaks, and then paste the commands into the CLI at the [edit] hierarchy level.

    set policy-options policy-statement POLICY-ipv4-example1 term 1 from route-filter 232.1.1.1/32 exactset policy-options policy-statement POLICY-ipv4-example1 term 1 then ssm-source 10.10.10.4set policy-options policy-statement POLICY-ipv4-example1 term 1 then ssm-source 192.168.43.66set policy-options policy-statement POLICY-ipv4-example1 term 1 then acceptset policy-options policy-statement POLICY-ipv4-example1 term 2 from route-filter 232.1.1.2/32 exactset policy-options policy-statement POLICY-ipv4-example1 term 2 then ssm-source 10.10.10.5set policy-options policy-statement POLICY-ipv4-example1 term 2 then ssm-source 192.168.43.67set policy-options policy-statement POLICY-ipv4-example1 term 2 then acceptset protocols igmp interface fe-0/1/0.0 ssm-map-policy POLICY-ipv4-example1

    Step-by-Step Procedure

    To configure multiple SSM maps per interface:

    1. Configure protocol-independent routing options for route filter 232.1.1.1, and specify the multicast source addresses to which matching multicast groups are to be mapped.

      [edit policy-options policy-statement POLICY-ipv4-example1 term 1]user@host# set from route-filter 232.1.1.1/32 exactuser@host# set then ssm-source 10.10.10.4user@host# set then ssm-source 192.168.43.66user@host# set then accept
    2. Configure protocol-independent routing options for route filter 232.1.1.2, and specify the multicast source addresses to which matching multicast groups are to be mapped.

      [edit policy-options policy-statement POLICY-ipv4-example1 term 2]user@host# set from route-filter 232.1.1.2/32 exactuser@host# set then ssm-source 10.10.10.5user@host# set then ssm-source 192.168.43.67user@host# set then accept
    3. Apply the policy map POLICY-ipv4-example1 to IGMP logical interface fe-0/1/1/0.

      [edit protocols igmp interface fe-0/1/0.0]user@host# set ssm-map-policy POLICY-ipv4-example1

    Results

    After the configuration is committed, confirm the configuration by entering the show policy-options and show protocols configuration mode commands. If the command output does not display the intended configuration, repeat the instructions in this procedure to correct the configuration.

    user@host#> show policy-options
    policy-statement POLICY-ipv4-example1 {term 1 {from {route-filter 232.1.1.1/32 exact;}then {ssm-source [ 10.10.10.4 192.168.43.66 ];accept;}}term 2{from {route-filter 232.1.1.2/32 exact;}then {ssm-source [ 10.10.10.5 192.168.43.67 ];accept;}}}
     user@host# show protocols
    igmp {interface fe-0/1/0.0 {ssm-map-policy POLICY-ipv4-example1;}}

    Verification

    Confirm that the configuration is working properly.

    Displaying Information About IGMP-Enabled Interfaces

    Purpose

    Verify that the SSM map policy POLICY-ipv4-example1 is applied to logical interface fe-0/1/0.0.

    Action

    Use the show igmp interface operational mode command for the IGMP logical interface to which you applied the SSM map policy.

    user@host> show igmp interface
    Interface: fe-0/1/0.0
        Querier: 10.111.30.1
        State:         Up Timeout:    None Version:  2 Groups:      2
        SSM Map Policy: POLICY-ipv4-example1;
     
    Configured Parameters:
    IGMP Query Interval: 125.0
    IGMP Query Response Interval: 10.0
    IGMP Last Member Query Interval: 1.0
    IGMP Robustness Count: 2
    
    Derived Parameters:
    IGMP Membership Timeout: 260.0
    IGMP Other Querier Present Timeout: 255.0

    The command output displays the name of IGMP logical interface (fe-0/1/0.0), the address of the routing device that has been elected to send membership queries and group information.

    Displaying the PIM Groups

    Purpose

    Verify the Protocol Independent Multicast (PIM) source and group pair (S,G) entries.

    Action

    Use the show pim join extensive 232.1.1.1 operational mode command to display the PIM source and group pair (S,G) entries for the 232.1.1.1 group.

    Displaying the Entries in the IP Multicast Forwarding Table

    Purpose

    Verify that the IP multicast forwarding table displays the mroute state.

    Action

    Use the show multicast route extensive operational mode command to display the entries in the IP multicast forwarding table to verify that the Route state is active and that the Forwarding state is forwarding.

    Published: 2013-07-09