igmp-snooping { enable | disable }

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

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

Use undo igmp-snooping to restore the IGMP snooping status in a VLAN or VSI to the global IGMP snooping status.

Syntax

igmp-snooping { disable | enable }

undo igmp-snooping

Default

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

Views

VLAN view

VSI view

Predefined user roles

network-admin

mdc-admin

Usage guidelines

You must enable the IGMP snooping feature by using the igmp-snooping command before you enable IGMP snooping for a VLAN or VSI.

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

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

# Disable IGMP snooping for VLAN 2.

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

# Enable the IGMP snooping feature, and then 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

# Disable IGMP snooping for VSI aaa.

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

Related commands

enable (IGMP-snooping view)

igmp-snooping