Creating an RPF route

Network requirements

As shown in Figure 19:

Configure the switches so that the receiver host receives multicast data from Source 2, which is outside the OSPF domain.

Figure 19: Network diagram

Configuration procedure

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

  2. Enable OSPF on Switch B and Switch C 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, and enable IGMP and PIM-DM:

    # On Switch C, enable IP multicast routing.

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

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

    [SwitchC] interface vlan-interface 100
    [SwitchC-Vlan-interface100] igmp enable
    [SwitchC-Vlan-interface100] quit
    

    # Enable PIM-DM on VLAN-interface 101.

    [SwitchC] interface vlan-interface 101
    [SwitchC-Vlan-interface101] pim dm
    [SwitchC-Vlan-interface101] quit
    

    # On Switch A, enable IP multicast routing, and enable PIM-DM on each interface.

    <SwitchA> system-view
    [SwitchA] multicast routing
    [SwitchA-mrib] quit
    [SwitchA] interface vlan-interface 300
    [SwitchA-Vlan-interface300] pim dm
    [SwitchA-Vlan-interface300] quit
    [SwitchA] interface vlan-interface 102
    [SwitchA-Vlan-interface102] pim dm
    [SwitchA-Vlan-interface102] quit
    

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

  4. Display information about their RPF routes to Source 2 on Switch B and Switch C.

    [SwitchB] display multicast rpf-info 50.1.1.100
    [SwitchC] display multicast rpf-info 50.1.1.100
    

    No output is displayed, because no RPF routes to the source 2 exist on Switch B or Switch C.

  5. Configure a static multicast route:

    # Configure a static multicast route on Switch B, and specify Switch A as its RPF neighbor on the route to Source 2.

    [SwitchB] ip rpf-route-static 50.1.1.100 24 30.1.1.2
    

    # Configure a static multicast route on Switch C, and specify Switch B as its RPF neighbor on the route to Source 2.

    [SwitchC] ip rpf-route-static 10.1.1.100 24 20.1.1.2
    

Verifying the configuration

# Display RPF information for Source 2 on Switch B and Switch C.

[SwitchB] display multicast rpf-info 50.1.1.100
 RPF information about source 50.1.1.100:
     RPF interface: Vlan-interface102, RPF neighbor: 30.1.1.2
     Referenced route/mask: 50.1.1.0/24
     Referenced route type: multicast static
     Route selection rule: preference-preferred
     Load splitting rule: disable
[SwitchC] display multicast rpf-info 50.1.1.100
 RPF information about source 50.1.1.100:
     RPF interface: Vlan-interface101, RPF neighbor: 20.1.1.2
     Referenced route/mask: 50.1.1.0/24
     Referenced route type: multicast static
     Route selection rule: preference-preferred
     Load splitting rule: disable

The output shows that the RPF routes to Source 2 exist on Switch B and Switch C. The routes are the configured static routes.