mld-snooping enable (VSI view)

Function

The mld-snooping enable vlan command enables MLD snooping for VLANs.

The undo mld-snooping enable vlan command disables MLD snooping for VLANs.

By default, MLD snooping is disabled.

Format

mld-snooping enable

undo mld-snooping enable

Parameters

Parameter Description Value
enable

Enable·function·of·MLD·snooping.

-

Views

VSI-AUTO view, VSI-BD view, VSI-DEFAULT view, VSI-STATIC view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2mc write

Usage Guidelines

Usage Scenario

MLD snooping runs on a Layer 2 device that is deployed between a Layer 3 device and user hosts. The Layer 2 device can then maintain multicast forwarding entries by listening to multicast protocol messages transmitted between the upstream device and hosts, controlling multicast data packet forwarding. Enabling MLD snooping is the prerequisite for implementing Layer 2 multicast. To enable MLD snooping for specific VLANs, run the mld-snooping enable vlan command.

MLD snooping runs on a Layer 2 device that is deployed between a Layer 3 device and user hosts. The Layer 2 device can then maintain multicast forwarding entries by listening to multicast protocol messages transmitted between the upstream device and hosts, controlling multicast data packet forwarding. Enabling MLD snooping is the prerequisite for implementing Layer 2 multicast. To enable MLD snooping for a specific VLAN/VSI, run the mld-snooping enable command.

<NOTE:

  • Running the mld-snooping enable command or its undo form in the system view enables or disables MLD snooping globally.
  • Running the mld-snooping enable command or its undo form in the VLAN/VSI view enables or disables MLD snooping only for this VLAN/VSI. MLD snooping can be enabled for a VLAN/VSI only if MLD snooping is enabled globally. After MLD snooping is enabled in the system view, MLD snooping is still disabled for a VLAN/VSI by default.

Precautions

The command fails to be run in a VSI view in the following condition:

  • The VSI is bound to a BD.

Example

# Enable MLD snooping in VSI v1.
<HUAWEI> system-view
[~HUAWEI] mld-snooping enable
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal ldp
[*HUAWEI-vsi-vsi1-ldp] vsi-id 1
[*HUAWEI-vsi-vsi1-ldp] quit
[*HUAWEI-vsi-vsi1] mld-snooping enable
# Disable MLD snooping in VSI v1.
<HUAWEI> system-view
[*HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal ldp
[*HUAWEI-vsi-vsi1-ldp] vsi-id 1
[*HUAWEI-vsi-vsi1-ldp] quit
[*HUAWEI-vsi-vsi1] undo mld-snooping enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >