mld static-group

Function

The mld static-group command adds a sub-interface to an IPv6 multicast group statically.

The undo mld static-group command deletes the IPv6 multicast group to which an interface is statically added.

By default, an interface is not added to any IPv6 multicast group statically.

Format

mld static-group ipv6-group-address [ inc-step-mask ipv6-group-mask-length number group-number ] [ source ipv6-source-address ] { qinq pe-vid pe-vid ce-vid low-ce-vid [ to high-ce-vid ] | dot1q vid low-pe-vid [ to high-pe-vid ] }

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

undo mld static-group ipv6-group-address [ inc-step-mask ipv6-group-mask-length number group-number ] [ source ipv6-source-address ] { qinq pe-vid pe-vid ce-vid low-ce-vid [ to high-ce-vid ] | dot1q vid low-pe-vid [ to high-pe-vid ] }

Parameters

Parameter Description Value
ipv6-group-address

Specifies the IP address of the IPv6 multicast group to which an interface is statically added. In batch configuration mode, this parameter specifies the initial address of the multicast group range.

The value is a hexadecimal number in the format of FFxA:xxxx:xxxx::xxxx, where x ranges from 0 to F and A is 0 or ranges from 3 to F.

inc-step-mask ipv6-group-mask-length

Specifies the incremental mask step in batch configuration mode.

The value is an integer that ranges from 9 to 128.

number group-number

Specifies the number of IPv6 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. source-address specifies a multicast source address.

The value is in hexadecimal notation.

pe-vid pe-vid

Specifies the ID of the outer VLAN tag.

The value is an integer that ranges from 1 to 4094.

ce-vid low-ce-vid

Specifies the lower limit of the CE-VLAN ID (inner VLAN tag).

The value is an integer that ranges from 1 to 4094.

to high-ce-vid

Specifies the upper limit of the CE-VLAN ID (inner VLAN tag).

The value is an integer that ranges from 1 to 4094. The value cannot be smaller than the lower limit lowCeValue. By default, the value of lowCeValue is the same as that of lowCeValue.

to high-pe-vid

Specifies the upper limit of PE-VLAN ID (outer VLAN tag).

The value is an integer that ranges from 1 to 4094. The value of lowVidValue must be greater than or equal to the value of lowVidValue. By default, the values of lowVidValue and lowVidValue are the same.

vid low-pe-vid

Specifies the lower limit of PE-VLAN ID (outer VLAN tag).

The value is an integer that ranges from 1 to 4094.

Views

100ge sub-interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE sub-interface view, 400GE sub-interface view, 40GE sub-interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, GE sub-interface view, Global VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
igmp write

Usage Guidelines

Usage Scenario

If user hosts want to receive IPv6 multicast data for a Multicast Listener Discovery (MLD) group stably for a long time or to ensure that MLD group memberships on the user network segment are stable, run the mld static-group command to add the interface connected to user hosts to MLD groups statically. In this manner, the interface can fast respond to users' requests, thereby reducing the channel switch time.

If user hosts want to receive IPv6 multicast data for an MLD group from a specific multicast source for a long time, set the source ipv6-source-address parameter in the mld static-group command to specify the IPv6 multicast source address.

The mld static-group command is run on the interface connected to user hosts. The interface can be added to a single IPv6 multicast group or source/group, or be added to multiple IPv6 multicast groups or source/groups in batches.

Prerequisites

The multicast ipv6 routing-enable command is run in the public network instance view.

Configuration Impact

After the mld static-group command is run, the records about the MLD groups that the interface is added statically never time out. The router considers that this interface is always connected to IPv6 member hosts, and continues to forward qualified IPv6 multicast packets to the network segment where the interface resides.

If IPv6 multicast groups have been configured in batches and you modify only the value of group-number but not the value of ipv6-group-address or ipv6-group-mask-length to configure batch multicast groups again, the new batch configurations overwrite the previous batch configurations.

Follow-up Procedure

If user hosts no longer want to receive IPv6 multicast data for a group, manually delete the configurations of static MLD groups from the interface connected with user hosts.

Precautions

You are allowed to configure overlapped multicast group addresses in different batch configurations.

After batch static multicast groups are configured on an interface, you cannot perform the deletion operation before the system completes the batch join processing.

The command fails to be run in the VLANIF interface view in the following condition:

VLAN aggregation is enabled in the corresponding VLAN.

Example

# Configure GE 0/1/0 to forward the multicast packets sent from the multicast source 2001:DB8::101 to the multicast group FF04::202.
<HUAWEI> system-view
[~HUAWEI] multicast ipv6 routing-enable
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] mld static-group ff04::202 source 2001:DB8::101
# Add GE 0/1/0 to the multicast group FF03::101 statically.
<HUAWEI> system-view
[~HUAWEI] multicast ipv6 routing-enable
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] ipv6 enable
[*HUAWEI-GigabitEthernet0/1/0] mld static-group ff03::101
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >