37
Figure 15
Network diagram
Configuration procedure
1.
Assign an IP address and subnet mask to each interface as per
2.
On Router A, enable IP multicast routing globally, enable IGMP on GigabitEthernet 2/1/1, and
enable PIM-DM on each interface.
<RouterA> system-view
[RouterA] multicast routing-enable
[RouterA] interface GigabitEthernet 2/1/1
[RouterA-GigabitEthernet2/1/1] igmp enable
[RouterA-GigabitEthernet2/1/1] pim dm
[RouterA-GigabitEthernet2/1/1] quit
[RouterA] interface GigabitEthernet 2/1/2
[RouterA-GigabitEthernet2/1/2] pim dm
[RouterA-GigabitEthernet2/1/2] quit
3.
Configure Device A:
# Enable IGMP snooping globally.
<DeviceA> system-view
[DeviceA] igmp-snooping
[DeviceA-igmp-snooping] quit
# Switch the link mode of GigabitEthernet 2/1/1 through GigabitEthernet 2/1/3 to Layer 2 mode,
create VLAN 100, assign GigabitEthernet 2/1/1 through GigabitEthernet 2/1/3 to this VLAN,
and enable IGMP snooping in the VLAN.
[DeviceA] interface GigabitEthernet 2/1/1
[DeviceA-GigabitEthernet2/1/1] port link-mode bridge
[DeviceA-GigabitEthernet2/1/1] quit
[DeviceA] interface GigabitEthernet 2/1/2
[DeviceA-GigabitEthernet2/1/2] port link-mode bridge
[DeviceA-GigabitEthernet2/1/2] quit
Source
1.1.1.1/24
Router A
IGMP querier
GE2/1/1
10.1.1.1/24
Device A
Device B
Device C
GE2/1/1
GE
2/1
/2
GE2
/1/3
GE
2/1
/1
GE2
/1/1
GE2
/1/3
GE
2/1
/5
Host A
Receiver
Host B
Host C
Receiver
VLAN 100
GE2/1/2
1.1.1.2/24