240
Device
Interface
IP address
Device
Interface
IP address
Source N/A
10.110.1.100/24 Switch
C
VLAN-interface
200
10.110.2.1/24
Switch
A
VLAN-interface
100
10.110.1.1/24
VLAN-interface
102
192.168.2.2/24
VLAN-interface
101
192.168.1.1/24
VLAN-interface
104
192.168.4.1/24
Loop0
1.1.1.1/32 Loop0
3.3.3.3/32
Switch
B
VLAN-interface
101
192.168.1.2/24 Switch
D
VLAN-interface
103
192.168.3.2/24
VLAN-interface
102
192.168.2.1/24
VLAN-interface
104
192.168.4.2/24
VLAN-interface
103
192.168.3.1/24
Loop0 4.4.4.4/32
Loop0
2.2.2.2/32
Configuration procedure
1.
Configure IP addresses for interfaces as shown in
. (Details not shown.)
2.
Configure OSPF. (Details not shown.)
3.
Enable IP multicast routing, PIM-SM and IGMP, and configure a PIM-SM domain border:
# Enable IP multicast routing on Switch A, and enable PIM-SM on each interface.
<SwitchA> system-view
[SwitchA] multicast routing-enable
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] pim sm
[SwitchA-Vlan-interface100] quit
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] pim sm
[SwitchA-Vlan-interface101] quit
# Configure Switch B and Switch D in the same way. (Details not shown.)
# Enable IP multicast routing on Switch C, enable PIM-SM on each interface, and enable IGMP
on the host-side interface VLAN-interface 200.
<SwitchC> system-view
[SwitchC] multicast routing-enable
[SwitchC] interface vlan-interface 102
[SwitchC-Vlan-interface102] pim sm
[SwitchC-Vlan-interface102] quit
[SwitchC] interface vlan-interface 104
[SwitchC-Vlan-interface104] pim sm
[SwitchC-Vlan-interface104] quit
[SwitchC] interface vlan-interface 200
[SwitchC-Vlan-interface200] pim sm
[SwitchC-Vlan-interface200] igmp enable
[SwitchC-Vlan-interface200] quit
# Configure a PIM domain border on Switch A.
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] pim bsr-boundary
[SwitchA-Vlan-interface101] quit