91
Configuration procedure
1.
Configure Switch A:
# Enable IPv6 multicast routing globally.
<SwitchA> system-view
[SwitchA] ipv6 multicast routing
[SwitchA-mrib6] quit
# Create VLAN 20, and assign GigabitEthernet 1/0/2 to this VLAN.
[SwitchA] vlan 20
[SwitchA-vlan20] port gigabitethernet 1/0/2
[SwitchA-vlan20] quit
# Assign an IPv6 address to VLAN-interface 20, and enable IPv6 PIM-DM.
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ipv6 address 1::2 64
[SwitchA-Vlan-interface20] ipv6 pim dm
[SwitchA-Vlan-interface20] quit
# Create VLAN 10.
[SwitchA] vlan 10
[SwitchA-vlan10] quit
# Configure GigabitEthernet 1/0/1 as a hybrid port, and assign it to VLAN 10 as a tagged VLAN
member.
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port link-type hybrid
[SwitchA-GigabitEthernet1/0/1] port hybrid vlan 10 tagged
[SwitchA-GigabitEthernet1/0/1] quit
# Assign an IPv6 address to VLAN-interface 10, and enable MLD on this interface.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ipv6 address 2001::1 64
[SwitchA-Vlan-interface10] mld enable
[SwitchA-Vlan-interface10] quit
2.
Configure Switch B:
# Enable MLD snooping globally.
<SwitchB> system-view
[SwitchB] mld-snooping
[SwitchB-mld-snooping] quit
# Create VLAN 2, assign GigabitEthernet 1/0/2 to this VLAN, and enable MLD snooping for this
VLAN.
[SwitchB] vlan 2
[SwitchB-vlan2] port gigabitethernet 1/0/2
[SwitchB-vlan2] mld-snooping enable
[SwitchB-vlan2] quit
# Create VLAN 3, assign GigabitEthernet 1/0/3 to this VLAN, and enable MLD snooping for this
VLAN.
[SwitchB] vlan 3
[SwitchB-vlan3] port gigabitethernet 1/0/3
[SwitchB-vlan3] mld-snooping enable
[SwitchB-vlan3] quit
# Create VLAN 4, assign GigabitEthernet1/0/4 to this VLAN, and enable MLD snooping for this
VLAN.