49
•
Router C and Router D run IGMP on HundredGigE 1/0/1. Router A, Router B, Router C, and
Router D run PIM-SM.
•
HundredGigE 1/0/2 on Router A acts as a C-BSR and a C-RP.
To make sure Switch A forwards PIM protocol packets and multicast data packets only to the routers
that are connected to receivers, perform the following tasks:
•
On Switch A, configure IGMP snooping and PIM snooping.
•
On all PIM routers connected to Switch A, set the maximum size of a join or prune message to
1400 bytes, which is less than the path MTU.
Figure 19 Network diagram
Configuration procedure
1.
Assign an IP address and subnet mask to each interface, as shown in
. (Details not
shown.)
2.
Configure OSPF on the routers. (Details not shown.)
3.
Configure Router A:
# Enable IP multicast routing.
<RouterA> system-view
[RouterA] multicast routing
[RouterA-mrib] quit
# Enable PIM-SM on each interface.
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] pim sm
[RouterA-HundredGigE1/0/1] quit
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] pim sm
[RouterA-HundredGigE1/0/2] quit
# Set the maximum size of a join or prune message to 1400 bytes.
[RouterA] pim
[RouterA-pim] jp-pkt-size 1400
# Configure HundredGigE 1/0/2 as a C-BSR and a C-RP.
[RouterA-pim] c-bsr 10.1.1.1
[RouterA-pim] c-rp 10.1.1.1
Source 1
Receiver 1
Receiver 2
Source 2
Switch A
Router A
Router B
Router D
Router C
HGE1/0/1
1.1.1.1/24
1.1.1.100/24
2.1.1.100/24
HGE1/0/2
10.1.1.1/24
HGE1/0/1
2.1.1.1/24
HGE1/0/1
3.1.1.1/24
HGE1/0/1
4.1.1.1/24
3.1.1.100/24
4.1.1.100/24
HGE1/0/2
10.1.1.2/24
HGE1/0/2
10.1.1.3/24
HGE1/0/2
10.1.1.4/24
HGE1/0/1
HGE1/0/2
HGE1/0/3
HGE1/0/4