163
Device Interface IP address
Switch B VLAN-interface 200 10.110.3.1/24
Switch B VLAN-interface 102 10.110.2.2/24
Switch B VLAN-interface 103 192.168.2.1/24
Switch C VLAN-interface 300 10.110.4.1/24
Switch C VLAN-interface 104 10.110.5.1/24
Switch C VLAN-interface 101 192.168.1.2/24
Switch C VLAN-interface 103 192.168.2.2/24
Switch C Loopback 0 2.2.2.2/32
Switch D VLAN-interface 400 10.110.6.1/24
Switch D VLAN-interface 500 10.110.7.1/24
Switch D VLAN-interface 104 10.110.5.2/24
Switch D Loopback 0 3.3.3.3/32
Configuration procedure
1. Assign an IP address and subnet mask to each interface according to Figure 55. (Details not
shown.)
2. Configure OSPF on the switches in the PIM-SM domains to meet the following requirements:
(Details not shown.)
{ The switches are interoperable at the network layer.
{ The switches can dynamically update routing information.
3. Enable IP multicast routing, IGMP, and PIM-SM, and configure a PIM domain border:
# On Switch A, enable IP multicast routing.
<SwitchA> system-view
[SwitchA] multicast routing
[SwitchA-mrib] quit
# Enable IGMP on VLAN-interface 100 (the interface that connects to the receiver host).
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] igmp enable
[SwitchA-Vlan-interface100] quit
# Enable PIM-SM on the other interfaces.
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] pim sm
[SwitchA-Vlan-interface101] quit
[SwitchA] interface vlan-interface 102
[SwitchA-Vlan-interface102] pim sm
[SwitchA-Vlan-interface102] quit
[SwitchA] interface loopback 0
[SwitchA-LoopBack0] pim sm
[SwitchA-LoopBack0] quit
# Enable IP multicast routing, IGMP, and PIM-SM on Switch B, Switch C, and Switch D in the same
way Switch A is configured. (Details not shown.)