60
2.
Configure Switch B:
# Enable IGMP snooping globally.
<SwitchB> system-view
[SwitchB] igmp-snooping
[SwitchB-igmp-snooping] quit
# Create VLAN 2, assign HundredGigE 1/0/2 to the VLAN, and enable IGMP snooping for the
VLAN.
[SwitchB] vlan 2
[SwitchB-vlan2] port hundredgige 1/0/2
[SwitchB-vlan2] igmp-snooping enable
[SwitchB-vlan2] quit
# Create VLAN 3, assign HundredGigE 1/0/3 to the VLAN, and enable IGMP snooping in the
VLAN.
[SwitchB] vlan 3
[SwitchB-vlan3] port hundredgige 1/0/3
[SwitchB-vlan3] igmp-snooping enable
[SwitchB-vlan3] quit
# Create VLAN 4, assign HundredGigE 1/0/4 to the VLAN, and enable IGMP snooping in the
VLAN.
[SwitchB] vlan 4
[SwitchB-vlan4] port hundredgige 1/0/4
[SwitchB-vlan4] igmp-snooping enable
[SwitchB-vlan4] quit
# Create VLAN 10, and enable IGMP snooping for the VLAN.
[SwitchB] vlan 10
[SwitchB-vlan10] igmp-snooping enable
[SwitchB-vlan10] quit
# Configure HundredGigE 1/0/1 as a hybrid port, and assign the port to VLAN 10 as a tagged
VLAN member.
[SwitchB] interface hundredgige 1/0/1
[SwitchB-HundredGigE1/0/1] port link-type hybrid
[SwitchB-HundredGigE1/0/1] port hybrid vlan 10 tagged
[SwitchB-HundredGigE1/0/1] quit
# Configure VLAN 10 as a multicast VLAN, and assign VLAN 2 through VLAN 4 as sub-VLANs
to multicast VLAN 10.
[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.