Example: Configuring IGMP SSM mapping

Network configuration

As shown in Figure 39:

Configure the IGMP SSM mapping feature on Switch D so that the receiver host can receive multicast data only from Source 1 and Source 3.

Figure 39: Network diagram

Table 8: Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Source 1

133.133.1.1/24

Source 3

133.133.3.1/24

Source 2

133.133.2.1/24

Receiver

133.133.4.1/24

Switch A

Vlan-int100

133.133.1.2/24

Switch C

Vlan-int300

133.133.3.2/24

Switch A

Vlan-int101

192.168.1.1/24

Switch C

Vlan-int103

192.168.3.1/24

Switch A

Vlan-int104

192.168.4.2/24

Switch C

Vlan-int102

192.168.2.2/24

Switch B

Vlan-int200

133.133.2.2/24

Switch D

Vlan-int400

133.133.4.2/24

Switch B

Vlan-int101

192.168.1.2/24

Switch D

Vlan-int103

192.168.3.2/24

Switch B

Vlan-int102

192.168.2.1/24

Switch D

Vlan-int104

192.168.4.1/24

Procedure

  1. Assign an IP address and subnet mask to each interface, as shown in Figure 39. (Details not shown.)

  2. Configure OSPF on the switches in the PIM-SM domain. (Details not shown.)

  3. Enable IP multicast routing, PIM-SM, and IGMP:

    # On Switch D, enable IP multicast routing.

    <SwitchD> system-view
    [SwitchD] multicast routing
    [SwitchD-mrib] quit
    

    # Enable IGMPv3 on the receiver-side interface (VLAN-interface 400).

    [SwitchD] interface vlan-interface 400
    [SwitchD-Vlan-interface400] igmp enable
    [SwitchD-Vlan-interface400] igmp version 3
    [SwitchD-Vlan-interface400] quit
    

    # Enable PIM-SM on the other interfaces.

    [SwitchD] interface vlan-interface 103
    [SwitchD-Vlan-interface103] pim sm
    [SwitchD-Vlan-interface103] quit
    [SwitchD] interface vlan-interface 104
    [SwitchD-Vlan-interface104] pim sm
    [SwitchD-Vlan-interface104] quit
    

    # On Switch A, enable IP multicast routing.

    <SwitchA> system-view
    [SwitchA] multicast routing
    [SwitchA-mrib] quit
    

    # Enable PIM-SM on each interface.

    [SwitchA] interface vlan-interface 100
    [SwitchA-Vlan-interface100] pim sm
    [SwitchA-Vlan-interface100] quit
    [SwitchA] interface vlan-interface 101
    [SwitchA-Vlan-interface101] pim sm
    [SwitchA-Vlan-interface101] quit
    [SwitchA] interface vlan-interface 104
    [SwitchA-Vlan-interface104] pim sm
    [SwitchA-Vlan-interface104] quit
    

    # Configure Switch B and Switch C in the same way Switch A is configured. (Details not shown.)

  4. Configure the SSM group range:

    # On Switch D, specify 232.1.1.0/24 as the SSM group range.

    [SwitchD] acl basic 2000
    [SwitchD-acl-ipv4-basic-2000] rule permit source 232.1.1.0 0.0.0.255
    [SwitchD-acl-ipv4-basic-2000] quit
    [SwitchD] pim
    [SwitchD-pim] ssm-policy 2000
    [SwitchD-pim] quit
    

    # Configure the SSM group range on Switch A, Switch B, and Switch C in the same way Switch D is configured. (Details not shown.)

  5. Configure IGMP SSM mappings on Switch D.

    [SwitchD] igmp
    [SwitchD-igmp] ssm-mapping 133.133.1.1 2000
    [SwitchD-igmp] ssm-mapping 133.133.3.1 2000
    [SwitchD-igmp] quit
    

Verifying the configuration

# Display IGMP SSM mappings for multicast group 232.1.1.1 on Switch D.

[SwitchD] display igmp ssm-mapping 232.1.1.1
 Group: 232.1.1.1
 Source list:
        133.133.1.1
        133.133.3.1

# On Switch D, display information about IGMP multicast groups that hosts have dynamically joined.

[SwitchD] display igmp group
IGMP groups in total: 1
 Vlan-interface400(133.133.4.2):
  IGMP groups reported in total: 1
   Group address   Last reporter   Uptime      Expires
   232.1.1.1       133.133.4.1     00:02:04    off

# Display PIM routing entries on Switch D.

[SwitchD] display pim routing-table
 Total 0 (*, G) entry; 2 (S, G) entry

 (133.133.1.1, 232.1.1.1)
     Protocol: pim-ssm, Flag:
     UpTime: 00:13:25
     Upstream interface: Vlan-interface104
         Upstream neighbor: 192.168.4.2
         RPF prime neighbor: 192.168.4.2
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface400
             Protocol: igmp, UpTime: 00:13:25, Expires: -

 (133.133.3.1, 232.1.1.1)
     Protocol: pim-ssm, Flag:
     UpTime: 00:13:25
     Upstream interface: Vlan-interface103
         Upstream neighbor: 192.168.3.1
         RPF prime neighbor: 192.168.3.1
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface400
             Protocol: igmp, UpTime: 00:13:25, Expires: -