mld-snooping { enable | disable }

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

Use mld-snooping disable to disable MLD snooping for a VLAN.

Use undo mld-snooping to restore the MLD snooping status in a VLAN to the global MLD snooping status.

Syntax

mld-snooping { disable | enable }

undo mld-snooping

Default

The MLD snooping status in a VLAN is consistent with the global MLD snooping status.

Views

VLAN view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

You must enable the MLD snooping feature by using the mld-snooping command before you enable MLD snooping for a VLAN.

You can enable MLD snooping for a VLAN by using this command in VLAN view or for multiple VLANs by using the enable command. 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 the MLD snooping feature, and then enable MLD snooping for VLAN 2.

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

# Disable MLD snooping for VLAN 2.

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

Related commands

enable (MLD-snooping view)

mld-snooping