62
[SwitchA] multicast routing
[SwitchA-mrib] quit
# Create VLAN 20, and assign HundredGigE 1/0/2 to the VLAN.
[SwitchA] vlan 20
[SwitchA-vlan20] port hundredgige 1/0/2
[SwitchA-vlan20] quit
# Assign an IP address to VLAN-interface 20, and enable PIM-DM on the interface.
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ip address 1.1.1.2 24
[SwitchA-Vlan-interface20] pim dm
[SwitchA-Vlan-interface20] quit
# Create VLAN 10, and assign HundredGigE 1/0/1 to the VLAN.
[SwitchA] vlan 10
[SwitchA-vlan10] port hundredgige 1/0/1
[SwitchA-vlan10] quit
# Assign an IP address to VLAN-interface 10, and enable IGMP on the interface.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 10.110.1.1 24
[SwitchA-Vlan-interface10] igmp enable
[SwitchA-Vlan-interface10] quit
2.
Configure Switch B:
# Enable IGMP snooping globally.
<SwitchB> system-view
[SwitchB] igmp-snooping
[SwitchB-igmp-snooping] quit
# Create VLAN 10, assign HundredGigE 1/0/1 to the VLAN, and enable IGMP snooping for the
VLAN.
[SwitchB] vlan 10
[SwitchB-vlan10] port hundredgige 1/0/1
[SwitchB-vlan10] igmp-snooping enable
[SwitchB-vlan10] quit
# Create VLAN 2, and enable IGMP snooping for the VLAN.
[SwitchB] vlan 2
[SwitchB-vlan2] igmp-snooping enable
[SwitchB-vlan2] quit
# Create VLAN 3, and enable IGMP snooping for the VLAN.
[SwitchB] vlan 3
[SwitchB-vlan3] igmp-snooping enable
[SwitchB-vlan3] quit
# Create VLAN 4, and enable IGMP snooping for the VLAN.
[SwitchB] vlan 4
[SwitchB-vlan4] igmp-snooping enable
[SwitchB-vlan4] quit
# Configure HundredGigE 1/0/2 as a hybrid port, and configure VLAN 2 as the PVID of the
hybrid port.
[SwitchB] interface hundredgige 1/0/2
[SwitchB-HundredGigE1/0/2] port link-type hybrid
[SwitchB-HundredGigE1/0/2] port hybrid pvid vlan 2