50
[SwitchB-vlan4] quit
# Create VLAN 10, and enable IGMP snooping for this VLAN.
[SwitchB] vlan 10
[SwitchB-vlan10] igmp-snooping enable
[SwitchB-vlan10] quit
# Configure GigabitEthernet 1/0/1 as a hybrid port, and assign it to VLAN 10 as a tagged VLAN
member.
[SwitchB] interface gigabitethernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] port link-type hybrid
[SwitchB-GigabitEthernet1/0/1] port hybrid vlan 10 tagged
[SwitchB-GigabitEthernet1/0/1] quit
# Configure VLAN 10 as a multicast VLAN, and configure VLAN 2 through VLAN 4 as
sub-VLANs.
[SwitchB] multicast-vlan 10
[SwitchB-mvlan-10] subvlan 2 to 4
[SwitchB-mvlan-10] quit
Verifying the configuration
# Display information about all multicast VLANs on Switch B.
[SwitchB] display multicast-vlan
Total 1 multicast VLANs.
Multicast VLAN 10:
Sub-VLAN list(3 in total):
2-4
Port list(0 in total):
# Display information about multicast groups in multicast VLANs on Switch B.
[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
:
•
IGMPv2 runs on Switch A. IGMPv2 snooping runs on Switch B.
•
Switch A acts as the IGMP querier.
•
The multicast source sends multicast data to multicast group 224.1.1.1. Host A, Host B, and
Host C are receivers. They belong to VLAN 2 through VLAN 4, respectively.