Usage guidelines
You must enable MLD snooping for a VLAN before you execute this command.
Examples
# In VLAN 2, enable MLD snooping, and enable dropping unknown IPv6 multicast data.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping drop-unknown
Related commands
• enable (MLD-snooping view)
• mld-snooping enable
mld-snooping enable
Use mld-snooping enable to enable MLD snooping for a VLAN.
Use undo mld-snooping enable to disable MLD snooping for a VLAN.
Syntax
mld-snooping enable
undo mld-snooping enable
Default
MLD snooping is disabled in a VLAN.
Views
VLAN view
Predefined user roles
network-admin
Usage guidelines
You must enable MLD snooping globally before you enable MLD snooping for a VLAN.
This command and the enable command in MLD-snooping view have the same function but different
effective ranges:
• The enable command in MLD-snooping view takes effect on the specified VLANs.
• The mld-snooping enable command takes effect on the current VLAN.
For a VLAN, the mld-snooping enable command and the enable command in MLD-snooping view have
the same priority, and the most recent configuration takes effect.
Examples
# Enable MLD snooping globally and for VLAN 2.
<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
215