mld-snooping enable

Use mld-snooping enable to enable MLD snooping for a VLAN or VSI.

Use undo mld-snooping enable to disable MLD snooping for a VLAN or VSI.

Syntax

mld-snooping enable

undo mld-snooping enable

Default

MLD snooping is disabled for a VLAN or VSI.

Views

VLAN view

VSI view

Predefined user roles

network-admin

Usage guidelines

You must enable MLD snooping globally before you enable MLD snooping for a VLAN or VSI.

You can enable MLD snooping for a VLAN in VLAN view, for a VSI in VSI view, or for the specified VLANs in MLD-snooping view. For a VLAN, the configuration in VLAN view has the same priority as the configuration in MLD-snooping view, and the most recent configuration takes effect.

Examples

# Enable MLD snooping globally, and enable MLD snooping for VLAN 2.

<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable

# Enable MLD snooping globally, and enable MLD snooping for VSI aaa.

<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vsi aaa
[Sysname-vsi-aaa] mld-snooping enable

Related commands

enable (MLD-snooping view)

mld-snooping