enable (MLD-snooping view)

Use enable to enable MLD snooping for VLANs.

Use undo enable to disable MLD snooping for VLANs.

Syntax

enable vlan vlan-list

undo enable vlan vlan-list

Default

MLD snooping is disabled for a VLAN.

Views

MLD-snooping view

Predefined user roles

network-admin

Parameters

vlan vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN by its ID or a range of VLANs in the form of start-vlan-id to end-vlan-id. The VLAN ID is in the range of 1 to 4094.

Usage guidelines

You must globally enable MLD snooping before you execute this command.

You can enable MLD snooping for the specified VLANs in MLD-snooping view, for a VSI in VSI view, or for a VLAN in VLAN 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 through VLAN 10.

<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] enable vlan 2 to 10

Related commands

mld-snooping

mld-snooping enable