The mld static-group command configures a static multicast group on an interface.
The undo mld static-group command deletes a static multicast group from an interface.
By default, no static multicast group is configured on an interface.
mld static-group ipv6-group-address [ inc-step-mask ipv6-group-mask-length number group-number ] [ source ipv6-source-address ]
undo mld static-group { all | ipv6-group-address [ inc-step-mask ipv6-group-mask-length number group-number ] [ source ipv6-source-address ] }
Parameter | Description | Value |
---|---|---|
ipv6-group-address | Specifies the IPv6 address of the multicast group that an interface statically joins. In batch configuration mode, this parameter specifies the initial address of the multicast group addresses. | The value is a 32-digit hexadecimal number in X:X:X:X:X:X:X:X format. The value ranges from FF00:: to FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF. |
inc-step-mask ipv6-group-mask-length | Specifies the incremental length of the step mask in batch configuration mode. | The value is an integer that ranges from 8 to 128. |
number group-number | Specifies the number of group addresses in batch configuration mode. | The value is an integer that ranges from 2 to 512. |
source ipv6-source-address | Specifies the IPv6 address of a multicast source. | The value is a 32-digit hexadecimal number in X:X:X:X:X:X:X:X format. |
all | Specifies all the multicast groups that the interface statically joins. | - |
GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, VLANIF interface view, loopback interface view
Usage Scenario
The following are two scenarios in which you can configure static multicast groups on user-side interfaces of the switch:
There are long-term group members on a shared network segment, and the switch needs to forward multicast data to these group members quickly and steadily.
A network segment has no group member or hosts on the network segment cannot send Report messages, but multicast data needs to be sent to this network segment.
After a static multicast group is configured on an interface, the switch considers that the multicast group always has members on the network segment of the interface. Therefore, the switch always forwards multicast data of the multicast group.
The mld static-group command is used on an interface connected to user hosts. The command can configure a single group or source-group binding on an interface or configure multiple groups or source-group bindings in a batch.
Prerequisites
Layer 3 IPv6 multicast has been enabled using the multicast ipv6 routing-enable command in the system view.
Precautions
After multicast groups are configured in batches for the first time, if you only modify the value of group-number but not the value of ipv6-group-address or ipv6-group-mask-length to configure multicast groups in batches again, the new configurations overwrite the corresponding original configurations.
When the interface that connects a multicast device to the user network segment joins a multicast group in both dynamic and static modes, the interface preferentially joins the multicast group in static mode if a conflict occurs.
Running the mld static-group command failed on the VLANIF interface because Layer 2 multicast querier or report-suppress is enabled for this VLAN.
# Configure static multicast group FF13::101 on VLANIF100.
<HUAWEI> system-view [HUAWEI] multicast ipv6 routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mld static-group ff13::101
# Configure the switch to forward multicast packets from multicast source FC00::101 to multicast group FF14::202 through VLANIF100.
<HUAWEI> system-view [HUAWEI] multicast ipv6 routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mld static-group ff14::202 source fc00::101
# Add VLANIF100 statically to two multicast groups in a batch. Set the start multicast group address to FF25::1 and the step mask length to 24.
<HUAWEI> system-view [HUAWEI] multicast ipv6 routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mld static-group ff25::1 inc-step-mask 24 number 2
# Add VLANIF100 statically to two multicast source/groups in a batch. Set the start multicast group address to FF33::1, the source address to FC00::101, and the step mask length to 24.
<HUAWEI> system-view [HUAWEI] multicast ipv6 routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] mld static-group ff33::1 inc-step-mask 24 number 2 source fc00::101
<HUAWEI> system-view [HUAWEI] multicast ipv6 routing-enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] mld static-group ff13::101