Example: Configuring admin-scoped PIM-SM
Network configuration
As shown in Figure 57:
OSPF runs on the network.
VOD streams are sent to receiver hosts in multicast. The entire PIM-SM domain is divided into admin-scoped zone 1, admin-scoped zone 2, and the global-scoped zone. Switch B, Switch C, and Switch D are ZBRs of the three zones, respectively.
Source 1 and Source 2 send different multicast data to the multicast group 239.1.1.1. Host A receives the multicast data only from Source 1, and Host B receives the multicast data only from Source 2. Source 3 sends multicast data to multicast group 224.1.1.1. Host C is a multicast receiver for the multicast group 224.1.1.1.
VLAN-interface 101 of Switch B acts as a C-BSR and a C-RP for admin-scoped zone 1, and VLAN-interface 105 of Switch D acts as a C-BSR and a C-RP for admin-scoped zone 2. Both of the two interfaces are designated to multicast group range 239.0.0.0/8. VLAN-interface 109 of Switch F acts as a C-BSR and a C-RP for the global-scoped zone, and is designated to all the multicast groups that are not in the range 239.0.0.0/8.
IGMPv2 runs between Switch A, Switch E, Switch I, and the receivers that directly connect to them, respectively.
Figure 57: Network diagram
Table 11: Interface and IP address assignment
Device | Interface | IP address | Device | Interface | IP address |
---|---|---|---|---|---|
Switch A | Vlan-int100 | 192.168.1.1/24 | Switch D | Vlan-int105 | 10.110.5.2/24 |
Switch A | Vlan-int101 | 10.110.1.1/24 | Switch D | Vlan-int108 | 10.110.7.1/24 |
Switch B | Vlan-int200 | 192.168.2.1/24 | Switch D | Vlan-int107 | 10.110.8.1/24 |
Switch B | Vlan-int101 | 10.110.1.2/24 | Switch E | Vlan-int400 | 192.168.4.1/24 |
Switch B | Vlan-int103 | 10.110.2.1/24 | Switch E | Vlan-int104 | 10.110.4.2/24 |
Switch B | Vlan-int102 | 10.110.3.1/24 | Switch E | Vlan-int108 | 10.110.7.2/24 |
Switch C | Vlan-int300 | 192.168.3.1/24 | Switch F | Vlan-int109 | 10.110.9.1/24 |
Switch C | Vlan-int104 | 10.110.4.1/24 | Switch F | Vlan-int107 | 10.110.8.2/24 |
Switch C | Vlan-int105 | 10.110.5.1/24 | Switch F | Vlan-int102 | 10.110.3.2/24 |
Switch C | Vlan-int103 | 10.110.2.2/24 | Switch G | Vlan-int500 | 192.168.5.1/24 |
Switch C | Vlan-int106 | 10.110.6.1/24 | Switch G | Vlan-int109 | 10.110.9.2/24 |
Switch H | Vlan-int110 | 10.110.10.1/24 | Source 1 | — | 192.168.2.10/24 |
Switch H | Vlan-int106 | 10.110.6.2/24 | Source 2 | — | 192.168.3.10/24 |
Switch I | Vlan-int600 | 192.168.6.1/24 | Source 3 | — | 192.168.5.10/24 |
Switch I | Vlan-int110 | 10.110.10.2/24 |
Procedure
Assign an IP address and subnet mask to each interface, as shown in Figure 57. (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 the receiver-side interface (VLAN-interface 100).
[SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] igmp enable [SwitchA-Vlan-interface100] quit
# Enable PIM-SM on VLAN-interface 101.
[SwitchA] interface vlan-interface 101 [SwitchA-Vlan-interface101] pim sm [SwitchA-Vlan-interface101] quit
# Enable IP multicast routing, IGMP, and PIM-SM on Switch E and Switch I in the same way Switch A is configured. (Details not shown.)
# On Switch B, enable IP multicast routing, and enable PIM-SM on each interface.
<SwitchB> system-view [SwitchB] multicast routing [SwitchB-mrib] quit [SwitchB] interface vlan-interface 200 [SwitchB-Vlan-interface200] pim sm [SwitchB-Vlan-interface200] quit [SwitchB] interface vlan-interface 101 [SwitchB-Vlan-interface101] pim sm [SwitchB-Vlan-interface101] quit [SwitchB] interface vlan-interface 102 [SwitchB-Vlan-interface102] pim sm [SwitchB-Vlan-interface102] quit [SwitchB] interface vlan-interface 103 [SwitchB-Vlan-interface103] pim sm [SwitchB-Vlan-interface103] quit
# Enable IP multicast routing and PIM-SM on Switch C, Switch D, Switch F, Switch G, and Switch H in the same way Switch B is configured. (Details not shown.)
Configure admin-scoped zone boundaries:
# On Switch B, configure VLAN-interface 102 and VLAN-interface 103 as the boundaries of admin-scoped zone 1.
[SwitchB] interface vlan-interface 102 [SwitchB-Vlan-interface102] multicast boundary 239.0.0.0 8 [SwitchB-Vlan-interface102] quit [SwitchB] interface vlan-interface 103 [SwitchB-Vlan-interface103] multicast boundary 239.0.0.0 8 [SwitchB-Vlan-interface103] quit
# On Switch C, configure VLAN-interface 103 and VLAN-interface 106 as the boundaries of admin-scoped zone 2.
<SwitchC> system-view [SwitchC] interface vlan-interface 103 [SwitchC-Vlan-interface103] multicast boundary 239.0.0.0 8 [SwitchC-Vlan-interface103] quit [SwitchC] interface vlan-interface 106 [SwitchC-Vlan-interface106] multicast boundary 239.0.0.0 8 [SwitchC-Vlan-interface106] quit
# On Switch D, configure VLAN-interface 107 as the boundary of admin-scoped zone 2.
<SwitchD> system-view [SwitchD] interface vlan-interface 107 [SwitchD-Vlan-interface107] multicast boundary 239.0.0.0 8 [SwitchD-Vlan-interface107] quit
Configure C-BSRs and C-RPs:
# On Switch B, configure the service scope of RP advertisements.
[SwitchB] acl basic 2001 [SwitchB-acl-ipv4-basic-2001] rule permit source 239.0.0.0 0.255.255.255 [SwitchB-acl-ipv4-basic-2001] quit
# Configure VLAN-interface 101 as a C-BSR and a C-RP for admin-scoped zone 1.
[SwitchB] pim [SwitchB-pim] c-bsr 10.110.1.2 scope 239.0.0.0 8 [SwitchB-pim] c-rp 10.110.1.2 group-policy 2001 [SwitchB-pim] quit
# On Switch D, configure the service scope of RP advertisements.
[SwitchD] acl basic 2001 [SwitchD-acl-ipv4-basic-2001] rule permit source 239.0.0.0 0.255.255.255 [SwitchD-acl-ipv4-basic-2001] quit
# Configure VLAN-interface 105 as a C-BSR and a C-RP for admin-scoped zone 2.
[SwitchD] pim [SwitchD-pim] c-bsr 10.110.5.2 scope 239.0.0.0 8 [SwitchD-pim] c-rp 10.110.5.2 group-policy 2001 [SwitchD-pim] quit
# On Switch F, configure VLAN-interface 109 as a C-BSR and a C-RP for the global-scoped zone.
<SwitchF> system-view [SwitchF] pim [SwitchF-pim] c-bsr 10.110.9.1 [SwitchF-pim] c-rp 10.110.9.1 [SwitchF-pim] quit
Verifying the configuration
# Display BSR information on Switch B.
[SwitchB] display pim bsr-info Scope: non-scoped State: Accept Preferred Bootstrap timer: 00:01:44 Elected BSR address: 10.110.9.1 Priority: 64 Hash mask length: 30 Uptime: 00:01:45 Scope: 239.0.0.0/8 State: Elected Bootstrap timer: 00:00:06 Elected BSR address: 10.110.1.2 Priority: 64 Hash mask length: 30 Uptime: 00:04:54 Candidate BSR address: 10.110.1.2 Priority: 64 Hash mask length: 30
# Display BSR information on Switch D.
[SwitchD] display pim bsr-info Scope: non-scoped State: Accept Preferred Bootstrap timer: 00:01:44 Elected BSR address: 10.110.9.1 Priority: 64 Hash mask length: 30 Uptime: 00:01:45 Scope: 239.0.0.0/8 State: Elected Bootstrap timer: 00:01:12 Elected BSR address: 10.110.5.2 Priority: 64 Hash mask length: 30 Uptime: 00:03:48 Candidate BSR address: 10.110.5.2 Priority: 64 Hash mask length: 30
# Display BSR information on Switch F.
[SwitchF] display pim bsr-info Scope: non-scoped State: Elected Bootstrap timer: 00:00:49 Elected BSR address: 10.110.9.1 Priority: 64 Hash mask length: 30 Uptime: 00:11:11 Candidate BSR address: 10.110.9.1 Priority: 64 Hash mask length: 30
# Display RP information on Switch B.
[SwitchB] display pim rp-info BSR RP information: Scope: non-scoped Group/MaskLen: 224.0.0.0/4 RP address Priority HoldTime Uptime Expires 10.110.9.1 192 180 00:03:39 00:01:51 Scope: 239.0.0.0/8 Group/MaskLen: 239.0.0.0/8 RP address Priority HoldTime Uptime Expires 10.110.1.2 (local) 192 180 00:07:44 00:01:51
# Display RP information on Switch D.
[SwitchD] display pim rp-info BSR RP information: Scope: non-scoped Group/MaskLen: 224.0.0.0/4 RP address Priority HoldTime Uptime Expires 10.110.9.1 192 180 00:03:42 00:01:48 Scope: 239.0.0.0/8 Group/MaskLen: 239.0.0.0/8 RP address Priority HoldTime Uptime Expires 10.110.5.2 (local) 192 180 00:06:54 00:02:41
# Display RP information on Switch F.
[SwitchF] display pim rp-info BSR RP information: Scope: non-scoped Group/MaskLen: 224.0.0.0/4 RP address Priority HoldTime Uptime Expires 10.110.9.1 (local) 192 180 00:00:32 00:01:58