Example: Configuring PIM-DM
Network configuration
As shown in Figure 55:
OSPF runs on the network.
VOD streams are sent to receiver hosts in multicast. The receiver groups of different organizations form stub networks, and one or more receiver hosts exist on each stub network.
The entire PIM domain operates in the dense mode.
Host A and Host C are multicast receivers on two stub networks.
IGMPv2 runs between Switch A and N1, and between Switch B, Switch C, and N2.
Figure 55: 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 C | Vlan-int102 | 192.168.3.1/24 |
Switch A | Vlan-int103 | 192.168.1.1/24 | Switch D | Vlan-int300 | 10.110.5.1/24 |
Switch B | Vlan-int200 | 10.110.2.1/24 | Switch D | Vlan-int103 | 192.168.1.2/24 |
Switch B | Vlan-int101 | 192.168.2.1/24 | Switch D | Vlan-int101 | 192.168.2.2/24 |
Switch C | Vlan-int200 | 10.110.2.2/24 | Switch D | Vlan-int102 | 192.168.3.2/24 |
Procedure
Assign an IP address and subnet mask for each interface, as shown in Figure 55. (Details not shown.)
Configure OSPF on the switches in the PIM-DM domain. (Details not shown.)
Enable IP multicast routing, IGMP, and PIM-DM:
# On Switch A, enable IP multicast routing.
<SwitchA> system-view [SwitchA] multicast routing [SwitchA-mrib] quit
# Enable IGMP on VLAN-interface 100 (the interface that connects to the stub network).
[SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] igmp enable [SwitchA-Vlan-interface100] quit
# Enable PIM-DM on VLAN-interface 103.
[SwitchA] interface vlan-interface 103 [SwitchA-Vlan-interface103] pim dm [SwitchA-Vlan-interface103] quit
# Enable IP multicast routing, IGMP, and PIM-DM on Switch B and Switch C in the same way Switch A is configured. (Details not shown.)
# On Switch D, enable IP multicast routing, and enable PIM-DM on each interface.
<SwitchD> system-view [SwitchD] multicast routing [SwitchD-mrib] quit [SwitchD] interface vlan-interface 300 [SwitchD-Vlan-interface300] pim dm [SwitchD-Vlan-interface300] quit [SwitchD] interface vlan-interface 103 [SwitchD-Vlan-interface103] pim dm [SwitchD-Vlan-interface103] quit [SwitchD] interface vlan-interface 101 [SwitchD-Vlan-interface101] pim dm [SwitchD-Vlan-interface101] quit [SwitchD] interface vlan-interface 102 [SwitchD-Vlan-interface102] pim dm [SwitchD-Vlan-interface102] quit
Verifying the configuration
# Display PIM information on Switch D.
[SwitchD] display pim interface Interface NbrCnt HelloInt DR-Pri DR-Address Vlan300 0 30 1 10.110.5.1 (local) Vlan103 1 30 1 192.168.1.2 (local) Vlan101 1 30 1 192.168.2.2 (local) Vlan102 1 30 1 192.168.3.2 (local)
# Display PIM neighboring relationships on Switch D.
[SwitchD] display pim neighbor Total Number of Neighbors = 3 Neighbor Interface Uptime Expires Dr-Priority Mode 192.168.1.1 Vlan103 00:02:22 00:01:27 1 192.168.2.1 Vlan101 00:00:22 00:01:29 3 192.168.3.1 Vlan102 00:00:23 00:01:31 5
# Send an IGMP report from Host A to join multicast group 225.1.1.1. (Details not shown.)
# Send multicast data from multicast source 10.110.5.100/24 to multicast group 225.1.1.1. (Details not shown.)
# Display PIM routing entries on Switch A.
[SwitchA] display pim routing-table Total 1 (*, G) entry; 1 (S, G) entry (*, 225.1.1.1) Protocol: pim-dm, Flag: WC UpTime: 00:04:25 Upstream interface: NULL Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: Vlan-interface100 Protocol: igmp, UpTime: 00:04:25, Expires: - (10.110.5.100, 225.1.1.1) Protocol: pim-dm, Flag: ACT UpTime: 00:06:14 Upstream interface: Vlan-interface103 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: pim-dm, UpTime: 00:04:25, Expires: -
# Display PIM routing entries on Switch D.
[SwitchD] display pim routing-table Total 0 (*, G) entry; 1 (S, G) entry (10.110.5.100, 225.1.1.1) Protocol: pim-dm, Flag: LOC ACT UpTime: 00:03:27 Upstream interface: Vlan-interface300 Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 2 1: Vlan-interface103 Protocol: pim-dm, UpTime: 00:03:27, Expires: - 2: Vlan-interface102 Protocol: pim-dm, UpTime: 00:03:27, Expires: -
The output shows the following information:
Switches on the SPT path (Switch A and Switch D) have the correct (S, G) entries.
Switch A has the correct (*, G) entry.