120
Device Interface IP address
Device
Interface
IP address
Router B
GigabitEthernet
2/1/2
192.168.2.1/24
Router E
GigabitEthernet
2/1/2
192.168.2.2/24
Router C
GigabitEthernet
2/1/1
10.110.2.2/24 Router E
GigabitEthernet
2/1/3
192.168.9.2/24
Configuration procedure
1. Assign an IP address and subnet mask to each interface according to Figure 44. (Details not
shown.)
2. Configure OSPF on all routers on the PIM-SM network to make sure the following conditions are
met: (Details not shown.)
{ The routers are interoperable at the network layer.
{ The routers can dynamically update their routing information.
3. Enable IP multicast routing, IGMP and PIM-SM:
# On Router A, enable IP multicast routing.
<RouterA> system-view
[RouterA] multicast routing
[RouterA-mrib] quit
# Enable IGMP on GigabitEthernet 2/1/1 (the interface that connects to the stub network).
[RouterA] interface gigabitethernet 2/1/1
[RouterA-GigabitEthernet2/1/1] igmp enable
[RouterA-GigabitEthernet2/1/1] quit
# Enable PIM-SM on the other interfaces.
[RouterA] interface gigabitethernet 2/1/2
[RouterA-GigabitEthernet2/1/2] pim sm
[RouterA-GigabitEthernet2/1/2] quit
[RouterA] interface gigabitethernet 2/1/3
[RouterA-GigabitEthernet2/1/3] pim sm
[RouterA-GigabitEthernet2/1/3] quit
# Enable IP multicast routing, IGMP and PIM-SM on Router B and Router C in the same way Router
A is configured. (Details not shown.)
# Enable IP multicast routing and PIM-SM on Router D and Router E in the same way Router A is
configured. (Details not shown.)
4. Configure C-BSRs, C-RPs, and the static RP:
# On Router E, configure the service scope of RP advertisements.
<RouterE> system-view
[RouterE] acl number 2005
[RouterE-acl-basic-2005] rule permit source 225.1.1.0 0.0.0.255
[RouterE-acl-basic-2005] quit
# Configure GigabitEthernet 2/1/3 as a C-BSR and a C-RP, and configure GigabitEthernet
2/1/2 of Router D as the static RP.
[RouterE] pim
[RouterE-pim] c-bsr 192.168.9.2
[RouterE-pim] c-rp 192.168.9.2 group-policy 2005
[RouterE-pim] static-rp 192.168.1.2