337
Figure 96 Network diagram
Configuration procedures
1.
Enable IPv6 forwarding and assign an IP address and prefix length to each interface according
to
. (Details not shown.)
2.
Configure Switch A:
# Create VLAN 101 through VLAN 104 and assign GigabitEthernet 1/0/1 through
GigabitEthernet 1/0/4 to the four VLANs respectively.
<SwitchA> system-view
[SwitchA] vlan 101
[SwitchA-vlan101] port gigabitethernet 1/0/1
[SwitchA-vlan101] quit
[SwitchA] vlan 102
[SwitchA-vlan102] port gigabitethernet 1/0/2
[SwitchA-vlan102] quit
[SwitchA] vlan 103
[SwitchA-vlan103] port gigabitethernet 1/0/3
[SwitchA-vlan103] quit
[SwitchA] vlan 104
[SwitchA-vlan104] port gigabitethernet 1/0/4
[SwitchA-vlan104] quit
# Enable IPv6 multicast routing globally. Enable IPv6 PIM-DM on VLAN-interface 101,
VLAN-interface 102 and VLAN-interface 104, and enable MLD on VLAN-interface 104.
[SwitchA] multicast ipv6 routing-enable
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] pim ipv6 dm
[SwitchA-Vlan-interface101] quit
[SwitchA] interface vlan-interface 102
[SwitchA-Vlan-interface102] pim ipv6 dm
[SwitchA-Vlan-interface102] quit
[SwitchA] interface vlan-interface 104
[SwitchA-Vlan-interface104] pim ipv6 dm
[SwitchA-Vlan-interface104] mld enable