61
[SwitchB] display multicast-vlan group
Total 1 entries.
Multicast VLAN 10: Total 1 entries.
(0.0.0.0, 224.1.1.1)
Sub-VLANs (3 in total):
VLAN 2
VLAN 3
VLAN 4
The output shows that multicast group 224.1.1.1 belongs to multicast VLAN 10. Multicast VLAN 10
contains sub-VLANs VLAN 2 through VLAN 4. Switch B will replicate the multicast data of VLAN 10
to VLAN 2 through VLAN 4.
Port-based multicast VLAN configuration example
Network requirements
As shown in
•
Layer 3 device Switch A runs IGMPv2 and acts as the IGMP querier. Layer 2 device Switch B
runs IGMPv2 snooping.
•
The multicast source sends multicast data to multicast group 224.1.1.1. Receivers Host A, Host
B, and Host C belong to VLAN 2, VLAN 3, and VLAN 4, respectively.
Configure a port-based multicast VLAN on Switch B to meet the following requirements:
•
Switch A sends multicast data to Switch B through the multicast VLAN.
•
Switch B forwards the multicast data to the receivers in different user VLANs.
Figure 24 Network diagram
Configuration procedure
1.
Configure Switch A:
# Enable IP multicast routing.
<SwitchA> system-view
Source
Receiver
Host A
VLAN 2
HGE1/0/2
HGE1/0/3
HGE1/0/4
Switch B
IGMP querier
Switch A
1.1.1.1/24
Receiver
Host B
VLAN 3
Receiver
Host C
VLAN 4
HGE1/0/1
HGE1/0/1
Vlan-int10
10.110.1.1/24
HGE1/0/2
Vlan-int20
1.1.1.2/24