168
Device
Interface
IP address
Device
Interface
IP address
101 102
Switch
C
VLAN-interface
200
10.110.2.2/24
VLAN-interface
102
192.168.3.1/24
Configuration procedure
1.
Assign an IP address and subnet mask to each interface according to
. (Details not
shown.)
2.
Configure OSPF on the switches in the PIM-DM domain to make sure they are interoperable at
the network layer. (Details not shown.)
3.
Enable IP multicast routing, IGMP and PIM-DM:
# On Switch A, enable IP multicast routing, enable IGMP on VLAN-interface 100, and enable
PIM-DM on each interface.
<SwitchA> system-view
[SwitchA] multicast routing-enable
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] igmp enable
[SwitchA-Vlan-interface100] pim dm
[SwitchA-Vlan-interface100] quit
[SwitchA] interface vlan-interface 103
[SwitchA-Vlan-interface103] pim dm
[SwitchA-Vlan-interface103] quit
# Enable IP multicast routing, IGMP and PIM-DM on Switch B and Switch C in the same way
Switch A is configured. (Details not shown.)
# On Switch D, enable IP multicast routing, and enable PIM-DM on each interface.
<SwitchD> system-view
[SwitchD] multicast routing-enable
[SwitchD] interface vlan-interface 300
[SwitchD-Vlan-interface300] pim dm
[SwitchD-Vlan-interface300] quit
[SwitchD] interface vlan-interface 103
[SwitchD-Vlan-interface103] pim dm
[SwitchD-Vlan-interface103] quit
[SwitchD] interface vlan-interface 101
[SwitchD-Vlan-interface101] pim dm
[SwitchD-Vlan-interface101] quit
[SwitchD] interface vlan-interface 102
[SwitchD-Vlan-interface102] pim dm
[SwitchD-Vlan-interface102] quit
Verifying the configuration
# Display the PIM configuration information on Switch D.
[SwitchD] display pim interface
VPN-Instance: public net
Interface NbrCnt HelloInt DR-Pri DR-Address
Vlan300 0 30 1 10.110.5.1 (local)
Vlan103 1 30 1 192.168.1.2 (local)