18.3 Commands for IGMP Snooping
18.3.1 ip igmp snooping
Command:ip igmp snooping
no ip igmp snooping
Function: Enable the IGMP Snooping function: the " no ip igmp snooping" command
disables this function.
Command mode: Global Mode
Default: IGMP Snooping is disabled by default.
Usage Guide: Use this command to enable IGMP Snooping, that is permission every
vlan config the function of IGMP snooping. the " no ip igmp snooping" command
disables this function.
Example: Enable IGMP Snooping.
Switch (Config) # ip igmp snooping
18.3.2 ip igmp snooping vlan
Command: ip igmp snooping vlan <vlan-id>
no ip igmp snooping vlan <vlan-id>
Function: Enable the IGMP Snooping function for the specified VLAN: the "no ip igmp
snooping vlan <vlan-id>" command disables the IGMP Snooping function for the
specified VLAN.
Parameter: <vlan-id> is the VLAN number.
Command mode: Global Mode
Default: IGMP Snooping is disabled by default.
Usage Guide: IGMP Snooping for the switch must be enabled first to enable IGMP
Snooping for the specified VLAN. This command cannot be used with ip igmp snooping
vlan <vlan-id> query command, i.e. either snooping or query can be enabled for one
VLAN, but not both.
Example: Enable IGMP Snooping for VLAN 100 in Global Mode.
Switch(C onfig)#ip igmp snooping vlan 100
18.3.3 ip igmp snooping vlan immediate-leave
Command: ip igmp snooping vlan <vlan-id> immediate-leave
no ip igmp snooping vlan <vlan-id> immediate-leave
Function: Enable the IGMP fast leave function for the specified VLAN: the "no ip igmp
636