Example: Configuring non-scoped PIM-SM
Network configuration
As shown in Figure 56:
OSPF runs on the network.
VOD streams are sent to receiver hosts in multicast. The receivers of different subnets form stub networks, and a minimum of one receiver host exist on each stub network.
The entire PIM-SM domain contains only one BSR.
Host A and Host C are multicast receivers on two stub networks N1 and N2.
Specify VLAN-interface 102 on Switch E as a C-BSR and a C-RP. The C-RP is designated to multicast group range 225.1.1.0/24. Specify VLAN-interface 101 of Switch D as the static RP on all the switches to back up the dynamic RP.
IGMPv2 runs between Switch A and N1, and between Switch B, Switch C, and N2.
Figure 56: Network diagram
Table 10: 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 |
Procedure
Assign an IP address and subnet mask to each interface, as shown in Figure 56. (Details not shown.)
Configure OSPF on all switches in the PIM-SM domain. (Details not shown.)
Enable IP multicast routing, and enable IGMP and PIM-SM:
# 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-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.)
Configure C-BSRs, C-RPs, and the static RP:
# On Switch E, configure the service scope of RP advertisements.
<SwitchE> system-view [SwitchE] acl basic 2005 [SwitchE-acl-ipv4-basic-2005] rule permit source 225.1.1.0 0.0.0.255 [SwitchE-acl-ipv4-basic-2005] quit
# Configure VLAN-interface 102 as a C-BSR and a C-RP.
[SwitchE] pim [SwitchE-pim] c-bsr 192.168.9.2 [SwitchE-pim] c-rp 192.168.9.2 group-policy 2005
# Configure VLAN-interface 101 of Switch D as the static RP.
[SwitchE-pim] static-rp 192.168.1.2 [SwitchE-pim] quit
# On Switch A, configure VLAN-interface 101 of Switch D as the static RP.
[SwitchA] pim [SwitchA-pim] static-rp 192.168.1.2 [SwitchA-pim] quit
# Configure the static RP on Switch B, Switch C, and Switch D 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 Vlan101 1 30 1 192.168.1.2 Vlan102 1 30 1 192.168.9.2
# Display BSR information on Switch A.
[SwitchA] display pim bsr-info Scope: non-scoped State: Accept Preferred Bootstrap timer: 00:01:44 Elected BSR address: 192.168.9.2 Priority: 64 Hash mask length: 30 Uptime: 00:11:18
# Display BSR information on Switch E.
[SwitchE] display pim bsr-info Scope: non-scoped State: Elected Bootstrap timer: 00:01:44 Elected BSR address: 192.168.9.2 Priority: 64 Hash mask length: 30 Uptime: 00:11:18 Candidate BSR address: 192.168.9.2 Priority: 64 Hash mask length: 30
# Display RP information on Switch A.
[SwitchA] display pim rp-info BSR RP information: Scope: non-scoped Group/MaskLen: 225.1.1.0/24 RP address Priority HoldTime Uptime Expires 192.168.9.2 192 180 00:51:45 00:02:22 Static RP information: RP address ACL Mode Preferred 192.168.1.2 ---- pim-sm No