Example: Configuring MLD SSM mapping
Network configuration
As shown in Figure 104:
OSPFv3 runs on the network.
The IPv6 PIM-SM domain uses the SSM model for IPv6 multicast delivery. The SSM group range is FF3E::/64.
MLDv2 runs on VLAN-interface 400 of Router D. The receiver host runs MLDv1, and does not support MLDv2. The receiver host cannot specify IPv6 multicast sources in its membership reports.
Source 1, Source 2, and Source 3 send IPv6 multicast packets to multicast groups in IPv6 SSM group range FF3E::/64.
Configure the MLD SSM mapping feature on Switch D so that the receiver host will receive IPv6 multicast data only from Source 1 and Source 3.
Figure 104: Network diagram
Table 22: Interface and IPv6 address assignment
Device | Interface | IPv6 address | Device | Interface | IPv6 address |
---|---|---|---|---|---|
Source 1 | — | 1001::1/64 | Source 3 | — | 3001::1/64 |
Source 2 | — | 2001::1/64 | Receiver | — | 4001::1/64 |
Switch A | Vlan-int100 | 1001::2/64 | Switch C | Vlan-int300 | 3001::2/64 |
Switch A | Vlan-int101 | 1002::1/64 | Switch C | Vlan-int103 | 3002::1/64 |
Switch A | Vlan-int104 | 1003::1/64 | Switch C | Vlan-int102 | 2002::2/64 |
Switch B | Vlan-int200 | 2001::2/64 | Switch D | Vlan-int400 | 4001::2/64 |
Switch B | Vlan-int101 | 1002::2/64 | Switch D | Vlan-int103 | 3002::2/64 |
Switch B | Vlan-int102 | 2002::1/64 | Switch D | Vlan-int104 | 1003::2/64 |
Procedure
Assign an IPv6 address and prefix length to each interface, as shown in Table 22. (Details not shown.)
Configure OSPFv3 on the switches in the IPv6 PIM-SM domain. (Details not shown.)
Enable IPv6 multicast routing, and enable IPv6 PIM-SM and MLD:
# On Switch D, enable IPv6 multicast routing.
<SwitchD> system-view [SwitchD] ipv6 multicast routing [SwitchD-mrib6] quit
# Enable MLDv2 on the receiver-side interface (VLAN-interface 400).
[SwitchD] interface vlan-interface 400 [SwitchD-Vlan-interface400] mld enable [SwitchD-Vlan-interface400] mld version 2 [SwitchD-Vlan-interface400] quit
# Enable IPv6 PIM-SM on the other interfaces.
[SwitchD] interface vlan-interface 103 [SwitchD-Vlan-interface103] ipv6 pim sm [SwitchD-Vlan-interface103] quit [SwitchD] interface vlan-interface 104 [SwitchD-Vlan-interface104] ipv6 pim sm [SwitchD-Vlan-interface104] quit
# On Switch A, enable IPv6 multicast routing.
<SwitchA> system-view [SwitchA] ipv6 multicast routing [SwitchA-mrib6] quit
# Enable IPv6 PIM-SM on each interface.
[SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] ipv6 pim sm [SwitchA-Vlan-interface100] quit [SwitchA] interface vlan-interface 101 [SwitchA-Vlan-interface101] ipv6 pim sm [SwitchA-Vlan-interface101] quit [SwitchA] interface vlan-interface 104 [SwitchA-Vlan-interface104] ipv6 pim sm [SwitchA-Vlan-interface104] quit
# Configure Switch B and Switch C in the same way Switch A is configured. (Details not shown.)
Configure the IPv6 SSM group range:
# On Switch D, specify FF3E::/64 as the IPv6 SSM group range.
[SwitchD] acl ipv6 basic 2000 [SwitchD-acl-ipv6-basic-2000] rule permit source ff3e:: 64 [SwitchD-acl-ipv6-basic-2000] quit [SwitchD] pim ipv6 [SwitchD-pim6] ssm-policy 2000 [SwitchD-pim6] quit
# Configure Switch A, Switch B and Switch C in the same way Switch D is configured. (Details not shown.)
Configure MLD SSM mappings on Switch D.
[SwitchD] mld [SwitchD-mld] ssm-mapping 1001::1 2000 [SwitchD-mld] ssm-mapping 3001::1 2000 [SwitchD-mld] quit
Verifying the configuration
# Display MLD SSM mappings for IPv6 multicast group FF3E::101 on Switch D.
[SwitchD] display mld ssm-mapping ff3e::101 Group: FF3E::101 Source list: 1001::1 3001::1
# On Switch D, display information about MLD multicast groups that hosts have dynamically joined.
[SwitchD] display mld group MLD groups in total: 1 Vlan-interface400(FE80::101): MLD groups reported in total: 1 Group address: FF3E::101 Last reporter: FE80::1 Uptime: 00:02:04 Expires: Off
# Display IPv6 PIM routing entries on Switch D.
[SwitchD] display ipv6 pim routing-table Total 0 (*, G) entry; 2 (S, G) entry (1001::1, FF3E::101) Protocol: pim-ssm, Flag: UpTime: 00:13:25 Upstream interface: Vlan-interface104 Upstream neighbor: 1003::1 RPF prime neighbor: 1003::1 Downstream interface(s) information: Total number of downstreams: 1 1: Vlan-interface400 Protocol: mld, UpTime: 00:13:25, Expires: - (3001::1, FF3E::101) Protocol: pim-ssm, Flag: UpTime: 00:13:25 Upstream interface: Vlan-interface103 Upstream neighbor: 3002::1 RPF prime neighbor: 3002::1 Downstream interface(s) information: Total number of downstreams: 1 1: Vlan-interface400 Protocol: mld, UpTime: 00:13:25, Expires: -