< Home

mld-snooping version

Function

The mld-snooping version command sets the version of MLD messages that MLD snooping can process in a VLAN.

The undo mld-snooping version command restores the default MLD message version.

By default, MLD snooping can process only MLDv1 messages.

Format

mld-snooping version version

undo mld-snooping version

Parameters

Parameter

Description

Value

version

Specifies the version of MLD messages that MLD snooping can process.

The value is 1 or 2.
  • 1: Only MLDv1 messages can be processed.
  • 2: Both MLDv1 and MLDv2 messages can be processed.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The MLD protocol maintains group memberships between Layer 3 multicast devices and hosts. MLD has two versions: v1 and v2. This command specifies the version of MLD messages that MLD snooping can process. Generally, configure the same version on the Layer 2 device as that on the upstream Layer 3 multicast device. If MLD is not enabled on the Layer 3 multicast device, configure the MLD message version on the Layer 2 device to be later than or equal to the MLD version running on downstream hosts.

When hosts in a VLAN run different MLD versions, run the mld-snooping version command to enable the Layer 2 device to process MLD messages sent from all the hosts.

Prerequisites

MLD snooping has been enabled globally using the mld-snooping enable command.

Precautions

When the MLD snooping version is set to MLDv2:
  • The switch can use only the default Layer 2 multicast forwarding mode.
  • The S2720-EI, S5720-LI, S5720S-LI, S6720-LI, S6720S-LI, S5720-SI, S5720I-SI, S5720S-SI, S5730-SI, S5730S-EI, S6720-SI and S6720S-SI forward multicast data by looking up the forwarding table according to the VLAN ID and group address.

The configuration takes effect only after you run the mld-snooping enable command to enable MLD snooping in the VLAN.

Example

# Set the MLD message version to 2 in VLAN 2.

<HUAWEI> system-view
[HUAWEI] mld-snooping enable
[HUAWEI] vlan 2
[HUAWEI-vlan2] mld-snooping enable
[HUAWEI-vlan2] mld-snooping version 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >