1. Network requirements
Lanswitch 1 is connected to the multicast source through the interface Vlan-interface 10; Connect to LAN Switch 2; through interface Vlan-interface 1 1; Connect to Lanswitch3 through interface Vlan-interface 12. By running PIM-DM, multicast is realized between the receiver 1, the receiver 2 and the multicast source.
2. Network diagram
3. Configuration steps
Only the configuration steps of Lanswitch 1 are listed, and Lanswitch2 is similar to Lanswitch3.
# Start the multicast routing protocol.
System view
[H3C] Multicast Routing-Enabled
# Start the IGMP and PIM-DM protocols on the interface.
[H3C] vlan 10
[H3C-vlan 10] port Ethernet 1/0/2 to Ethernet 1/0/3.
[H3C-vlan 10] exit
[H3C] Virtual LAN 1 1
[H3C-vlan 1 1] Port Ethernet 1/0/4 to Ethernet 1/0/5.
[H3C-vlan 1 1] exit.
[H3C] Virtual LAN 12
[H3C-vlan 12] Port Ethernet 1/0/6 to Ethernet 1/0/7.
[H3C-vlan 12] Exit
[H3C] Interface Vlan- Interface 10
[H3C-Vlan- interface 10] ip address1.1.1255.255.0.0.
[H3C-Vlan- interface 10] igmp enabled.
[H3C-Vlan- interface 10] pim dm
[H3C-Vlan- interface 10] Exit
[H3C] interface Vlan- interface 1 1
[H3C-Vlan- interface 1 1] ip address 2.2.2.2 255.255.0.0.
[H3C-Vlan- interface 1 1] pim dm
[H3C-Vlan- interface 1 1] exit.
[H3C] Interface Vlan- Interface 12
[3.3.3.3 H3C VLAN interface 12] ip address 255.255.0.0.
[H3C-Vlan- interface 12] pim dm