igmp-snooping enable

Use igmp-snooping enable to enable IGMP snooping for a VLAN or VSI.

Use undo igmp-snooping enable to disable IGMP snooping for a VLAN or VSI.

Syntax

igmp-snooping enable

undo igmp-snooping enable

Default

IGMP snooping is disabled for a VLAN or VSI.

Views

VLAN view

VSI view

Predefined user roles

network-admin

Usage guidelines

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

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

Examples

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

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

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

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

Related commands

enable (IGMP-snooping view)

igmp-snooping