PIM-SSM configuration example

Network requirements

As shown in Figure 35:

Figure 35: Network diagram

Table 9: Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Switch A

Vlan-int100

10.110.1.1/24

Switch D

Vlan-int300

10.110.5.1/24

Switch A

Vlan-int101

192.168.1.1/24

Switch D

Vlan-int101

192.168.1.2/24

Switch A

Vlan-int102

192.168.9.1/24

Switch D

Vlan-int105

192.168.4.2/24

Switch B

Vlan-int200

10.110.2.1/24

Switch E

Vlan-int104

192.168.3.2/24

Switch B

Vlan-int103

192.168.2.1/24

Switch E

Vlan-int103

192.168.2.2/24

Switch C

Vlan-int200

10.110.2.2/24

Switch E

Vlan-int102

192.168.9.2/24

Switch C

Vlan-int104

192.168.3.1/24

Switch E

Vlan-int105

192.168.4.1/24

Configuration procedure

  1. Assign an IP address and subnet mask to each interface according to Figure 35. (Details not shown.)

  2. Configure OSPF on the switches in the PIM-SSM domain to make sure the following conditions are met: (Details not shown.)

    • The switches are interoperable at the network layer.

    • The switches can dynamically update their routing information.

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

    # On Switch A, enable IP multicast routing.

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

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

    [SwitchA] interface vlan-interface 100
    [SwitchA-Vlan-interface100] igmp enable
    [SwitchA-Vlan-interface100] igmp version 3
    [SwitchA-Vlan-interface100] quit
    

    # Enable PIM-SM on the other interfaces.

    [SwitchA] interface vlan-interface 101
    [SwitchA-Vlan-interface101] pim sm
    [SwitchA-Vlan-interface101] quit
    [SwitchA] interface vlan-interface 102
    [SwitchA-Vlan-interface102] pim sm
    [SwitchA-Vlan-interface102] quit
    

    # Enable IP multicast routing, IGMP, and PIM-SM on Switch B and Switch C in the same way Switch A is configured. (Details not shown.)

    # Enable IP multicast routing and PIM-SM on Switch D and Switch E in the same way Switch A is configured. (Details not shown.)

  4. Configure the SSM group range:

    # Configure the SSM group range as 232.1.1.0/24 on Switch A.

    [SwitchA] acl number 2000
    [SwitchA-acl-basic-2000] rule permit source 232.1.1.0 0.0.0.255
    [SwitchA-acl-basic-2000] quit
    [SwitchA] pim
    [SwitchA-pim] ssm-policy 2000
    [SwitchA-pim] quit
    

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

Verifying the configuration

# Display PIM information on Switch A.

[SwitchA] display pim interface
 Interface           NbrCnt HelloInt   DR-Pri     DR-Address
 Vlan100             0      30         1          10.110.1.1     (local)
 Vlan101             1      30         1          192.168.1.2
 Vlan102             1      30         1          192.168.9.2

# Send an IGMPv3 report from Host A to join the multicast source and group (10.110.5.100, 232.1.1.1). (Details not shown.)

# Display PIM routing table information on Switch A.

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

 (10.110.5.100, 232.1.1.1)
     Protocol: pim-ssm, Flag:
     UpTime: 00:13:25
     Upstream interface: Vlan-interface101
         Upstream neighbor: 192.168.1.2
         RPF prime neighbor: 192.168.1.2
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface100
             Protocol: igmp, UpTime: 00:13:25, Expires: 00:03:25

# Display PIM routing table information on Switch D.

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

 (10.110.5.100, 232.1.1.1)
     Protocol: pim-ssm, Flag: LOC
     UpTime: 00:12:05
     Upstream interface: Vlan-interface300
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface105
             Protocol: pim-ssm, UpTime: 00:12:05, Expires: 00:03:25

The output shows that switches on the SPT path (Switch A and Switch D) have generated the correct (S, G) entries.