enable (IGMP-snooping view)

Use enable to enable IGMP snooping for VLANs.

Use undo enable to disable IGMP snooping for VLANs.

Syntax

enable vlan vlan-list

undo enable vlan vlan-list

Default

IGMP snooping status in a VLAN is consistent with the global IGMP snooping status.

Views

IGMP-snooping view

Predefined user roles

network-admin

mdc-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 enable the IGMP snooping feature by using the igmp-snooping command before you enable IGMP snooping for VLANs.

You can enable IGMP snooping for multiple VLANs by using this command in IGMP-snooping view or for a VLAN by using the igmp-snooping enable command in VLAN view. The configuration in IGMP-snooping view has the same priority as the configuration in VLAN view, and the most recent configuration takes effect.

Examples

# Enable the IGMP snooping feature, and then enable IGMP snooping for VLAN 2 through VLAN 10.

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

Related commands

igmp-snooping

igmp-snooping enable