76
•
All switches on the network support IP multicast.
•
Switch B and Switch C run OSPF, and have no unicast routes to Switch A.
•
Typically, the receiver host receives the multicast data from Source 1 in the OSPF domain.
Configure the switches so that the receiver host receives multicast data from Source 2, which is
outside the OSPF domain.
Figure 30 Network diagram
Configuration procedure
1.
Assign an IP address and subnet mask for each interface, as shown in
. (Details not
shown.)
2.
Configure OSPF on Switch B and Switch C. (Details not shown.)
3.
Enable IP multicast routing, and enable IGMP and PIM-DM:
# On Switch C, enable IP multicast routing.
<SwitchC> system-view
[SwitchC] multicast routing
[SwitchC-mrib] quit
# Enable IGMP on the receiver-side interface (VLAN-interface 100).
[SwitchC] interface vlan-interface 100
[SwitchC-Vlan-interface100] igmp enable
[SwitchC-Vlan-interface100] quit
# Enable PIM-DM on VLAN-interface 101.
[SwitchC] interface vlan-interface 101
[SwitchC-Vlan-interface101] pim dm
[SwitchC-Vlan-interface101] quit
# On Switch A, enable IP multicast routing.
<SwitchA> system-view
[SwitchA] multicast routing
[SwitchA-mrib] quit
# Enable PIM-DM on each interface.
[SwitchA] interface vlan-interface 300
[SwitchA-Vlan-interface300] pim dm
[SwitchA-Vlan-interface300] quit
Switch A
Switch B
Switch C
Vlan-int102
30.1.1.2/24
Vlan-int101
20.1.1.2/24
Vlan-int101
20.1.1.1/24
Vlan-int102
30.1.1.1/24
Source 1
Source 2
Receiver
40.1.1.100/24
10.1.1.100/24
Static multicast route
Vlan-int200
40.1.1.1/24
Vlan-int100
10.1.1.1/24
OSPF domain
PIM-DM
50.1.1.100/24
Vlan-int300
50.1.1.1/24